Page 6 of 7

Re: check_snmp not working but snmpget works

Posted: Wed Nov 12, 2014 8:20 pm
by Kerflumpre
attached

Re: check_snmp not working but snmpget works

Posted: Thu Nov 13, 2014 4:11 pm
by abrist
Hmmm, well the build log looks clean this time around. I presume you did run a "make install", correct?
Can you run the check again with -vvv and post the command and result output?

Re: check_snmp not working but snmpget works

Posted: Thu Nov 13, 2014 4:15 pm
by cmerchant
I believe you are missing the openssl-devel package. That provides the header files for openssl.

Re: check_snmp not working but snmpget works

Posted: Fri Nov 14, 2014 6:19 am
by Kerflumpre
Installed libssl-dev and recompiled, no change (did make install).

Code: Select all

root@nagios-core:/usr/local/nagios/libexec# ./check_snmp -P 1 -C COMMUNITY -H 192.168.1.1 -vvv -o iso.3.6.1.2.1.31.1.1.1.16.1
/usr/bin/snmpget -Le -t 1 -r 5 -m ALL -v 1 [authpriv] 192.168.1.1:161 iso.3.6.1.2.1.31.1.1.1.16.1
CRITICAL - Plugin timed out while executing system call

Re: check_snmp not working but snmpget works

Posted: Fri Nov 14, 2014 6:43 am
by rhassing
Which version are using now? I never found the output of /usr/bin/snmpget -V

Re: check_snmp not working but snmpget works

Posted: Fri Nov 14, 2014 1:20 pm
by abrist
Yeah, It may be important if the installed plugin is not getting overwritten.
OP, can you post the version of the plugin you are using:
rhassing wrote:Which version are using now? I never found the output of /usr/bin/snmpget -V

Re: check_snmp not working but snmpget works

Posted: Sat Nov 15, 2014 9:41 am
by Kerflumpre

Code: Select all

root@nagios-core:/usr/local/nagios/libexec# /usr/bin/snmpget -V
NET-SNMP version: 5.4.3


Re: check_snmp not working but snmpget works

Posted: Sun Nov 16, 2014 8:20 am
by rhassing
Why are you not using the latest version? 5.4.3 seems to be the version that was not working from the start.

Re: check_snmp not working but snmpget works

Posted: Sun Nov 16, 2014 6:17 pm
by Kerflumpre
Sorry. I've rebuilt it several times. Missed that on this build.

Re: check_snmp not working but snmpget works

Posted: Mon Nov 17, 2014 11:56 am
by slansing
Let us know once you've re-compiled it and give it a shot.