SNMP checks timing out

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP checks timing out

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SNMP checks timing out

Post by Box293 »

Good spotting Tom.

It's confusing when check_snmp and snmpget have different arguments.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
OptimusB
Posts: 146
Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:

Re: SNMP checks timing out

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: SNMP checks timing out

Post by jdalrymple »

Awesome! Did that solve all your issues then, OK to lock and mark solved?
OptimusB
Posts: 146
Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:

Re: SNMP checks timing out

Post by OptimusB »

Yes. Thanks and lock!
Locked