Page 2 of 2

Re: check_snmp Plugin timed out while executing system

Posted: Tue Dec 08, 2015 5:27 pm
by cg28oh
[root@uzsp libexec]# ./check_snmp -V
check_snmp v2.1.1 (nagios-plugins 2.1.1)

I don't get the Plugin timeout alert if the site responds. I only see the Plugin timeout alert if the site goes down (comm. outage) or if the snmp timeouts (responds on the next poll). How I'm able to replicate is to query a host or ip address that isn't active. Could you try that to see if the Plugin timeout alert comes up?

[root@uzsp libexec]# ./check_snmp -C COMM -H 10.1.1.1 -o sysName.0 -vvv -t 10
/usr/bin/snmpget -Le -t 3 -r 5 -m ALL -v 1 [authpriv] 10.1.1.1:161 sysName.0
CRITICAL - Plugin timed out while executing system call

tcpdump
17:24:17.655250 IP xx.xx.xx.xx.44394 > 10.1.1.1.snmp: C=COMM GetRequest(28) system.sysName.0
17:24:20.658778 IP xx.xx.xx.xx.44394 > 10.1.1.1.snmp: C=COMM GetRequest(28) system.sysName.0
17:24:23.662983 IP xx.xx.xx.xx.44394 > 10.1.1.1.snmp: C=COMM GetRequest(28) system.sysName.0
17:24:26.667088 IP xx.xx.xx.xx.44394 > 10.1.1.1.snmp: C=COMM GetRequest(28) system.sysName.0
Here is where the plugin timeouts
17:24:29.671205 IP xx.xx.xx.xx.44394 > 10.1.1.1.snmp: C=COMM GetRequest(28) system.sysName.0
17:24:32.675334 IP xx.xx.xx.xx.44394 > 10.1.1.1.snmp: C=COMM GetRequest(28) system.sysName.0

Re: check_snmp Plugin timed out while executing system

Posted: Tue Dec 08, 2015 5:50 pm
by hsmith
I can replicate the behavior on 2.1.1.

Re: check_snmp Plugin timed out while executing system

Posted: Wed Dec 09, 2015 10:12 am
by hsmith
Issue has been submitted to GitHub.

https://github.com/nagios-plugins/nagio ... issues/129