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:[email protected]]
> Sent: Wednesday, 28 October 2009 10:35
> To: Stuart Browne; [email protected]
> 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
------------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
[email protected]
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