This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
tgriep
Madmin
Posts: 9190 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Wed Apr 15, 2015 2:02 pm
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!
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Wed Apr 15, 2015 6:53 pm
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:
Post
by OptimusB » Fri Apr 17, 2015 1:00 pm
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
Post
by jdalrymple » Fri Apr 17, 2015 1:08 pm
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:
Post
by OptimusB » Fri Apr 17, 2015 6:07 pm
Yes. Thanks and lock!