check_snmp not working but snmpget works

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Kerflumpre
Posts: 30
Joined: Fri Apr 22, 2011 6:50 pm

Re: check_snmp not working but snmpget works

Post by Kerflumpre »

attached
Attachments
putty-nagios-plugins1.log
(136.86 KiB) Downloaded 478 times
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_snmp not working but snmpget works

Post 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?
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.
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: check_snmp not working but snmpget works

Post by cmerchant »

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

Post 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
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: check_snmp not working but snmpget works

Post by rhassing »

Which version are using now? I never found the output of /usr/bin/snmpget -V
Rob Hassing
Image
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_snmp not working but snmpget works

Post 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
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.
Kerflumpre
Posts: 30
Joined: Fri Apr 22, 2011 6:50 pm

Re: check_snmp not working but snmpget works

Post by Kerflumpre »

Code: Select all

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

User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: check_snmp not working but snmpget works

Post 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.
Rob Hassing
Image
Kerflumpre
Posts: 30
Joined: Fri Apr 22, 2011 6:50 pm

Re: check_snmp not working but snmpget works

Post by Kerflumpre »

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

Post by slansing »

Let us know once you've re-compiled it and give it a shot.
Locked