Page 2 of 2

Re: SNMP checks timing out

Posted: Wed Apr 15, 2015 2:02 pm
by tgriep
For the check_snmp command, the community string setting should be a capital -C try changing the command to

Code: Select all

/usr/local/nagios/libexec/check_snmp -H server -P 2c -C community -t 30 -o 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1

Re: SNMP checks timing out

Posted: Wed Apr 15, 2015 6:53 pm
by Box293
Good spotting Tom.

It's confusing when check_snmp and snmpget have different arguments.

Re: SNMP checks timing out

Posted: Fri Apr 17, 2015 1:00 pm
by OptimusB
Good find and thanks! This worked. I guess the others that I have configured work because those devices were using public as community string. so -c public was not working but it used the default public community string. Gave it the illusion that the check arguments are working.

Code: Select all

# /usr/local/nagios/libexec/check_snmp -H <IP> -P 2c -C <Community> -t 30 -o 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1
SNMP OK - 14 | iso.3.6.1.4.1.9.9.109.1.1.1.1.6.1=14

Re: SNMP checks timing out

Posted: Fri Apr 17, 2015 1:08 pm
by jdalrymple
Awesome! Did that solve all your issues then, OK to lock and mark solved?

Re: SNMP checks timing out

Posted: Fri Apr 17, 2015 6:07 pm
by OptimusB
Yes. Thanks and lock!