check_snmp Plugin timed out while executing system

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.
cg28oh
Posts: 31
Joined: Mon Aug 18, 2014 9:38 am

Re: check_snmp Plugin timed out while executing system

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_snmp Plugin timed out while executing system

Post by hsmith »

I can replicate the behavior on 2.1.1.
Former Nagios Employee.
me.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_snmp Plugin timed out while executing system

Post by hsmith »

Issue has been submitted to GitHub.

https://github.com/nagios-plugins/nagio ... issues/129
Former Nagios Employee.
me.
Locked