RV: check_snmp : External command error with no output (return code: 3) [SOLVED]

Ricardo Melendez rmelendez at utep.com.mx
Wed Oct 28 18:00:34 CET 2009


Thanks, that was the problem.

 

I compile the plugins with "--with-snmpget-command=/usr/local/bin"  instead
of "with-snmpget-command=/usr/local/bin/snmpget"

 

Now, check_snmp and check_hpjd work.

 

 

 

 

> From: Ricardo Melendez [mailto:rmelendez at utep.com.mx]

> Sent: Wednesday, 28 October 2009 10:35

> To: Stuart Browne; nagios-users at lists.sourceforge.net

> Subject: RE: [Nagios-users] RV: check_snmp : External command error 

> with no output (return code: 3)

> 

> Hi, Stuart

> 

> Well, I download and install "net-snmp-5.4.2.1",  and run:

> 

> ./configure

> make

> make install

> 

> No more config in net-snmp.

> 

> 

> Next, I launch compilation for nagios-plugins with quickstart 

> instructions but the "check_hpjd" and "check_snmp" do not compile.

> 

> Then I launch the ./configure script for nagios-plugins with 

> "--with-snmpget-command=/usr/local/bin" , because the snmpget binary 

> lies here.

> 

> All my snmp enabled host work fine with snmpwalk.

 

The switch '--with-snmpget-command' needs the full path to the binary, not
just the directory name.. So try compiling the plugins with:

 

--with-snmpget-command=/usr/local/bin/snmpget

 

This will populate the PATH_TO_SNMPGET in the Makefile, which will then
compile it into 'check_snmp'.

 

Stuart Browne

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091028/6b0215f7/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list