check_snmp not working but snmpget works
-
Kerflumpre
- Posts: 30
- Joined: Fri Apr 22, 2011 6:50 pm
Re: check_snmp not working but snmpget works
attached
- Attachments
-
putty-nagios-plugins1.log- (136.86 KiB) Downloaded 478 times
Re: check_snmp not working but snmpget works
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?
Can you run the check again with -vvv and post the command and result output?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: check_snmp not working but snmpget works
I believe you are missing the openssl-devel package. That provides the header files for openssl.
-
Kerflumpre
- Posts: 30
- Joined: Fri Apr 22, 2011 6:50 pm
Re: check_snmp not working but snmpget works
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
Which version are using now? I never found the output of /usr/bin/snmpget -V
Rob Hassing


Re: check_snmp not working but snmpget works
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:
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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
Kerflumpre
- Posts: 30
- Joined: Fri Apr 22, 2011 6:50 pm
Re: check_snmp not working but snmpget works
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
Why are you not using the latest version? 5.4.3 seems to be the version that was not working from the start.
Rob Hassing


-
Kerflumpre
- Posts: 30
- Joined: Fri Apr 22, 2011 6:50 pm
Re: check_snmp not working but snmpget works
Sorry. I've rebuilt it several times. Missed that on this build.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_snmp not working but snmpget works
Let us know once you've re-compiled it and give it a shot.