[Nagiosplug-help] check_snmp plugin always showing OK
David Callahan
dwcallahan at gmail.com
Sat Jul 23 00:00:24 CEST 2011
I'm having some difficulty with check_snmp. This is probably something
rather simple but I'm stumped. I have 2 nagios servers one running OMD 48
and the other was a compile of nagios 3.2.3 with the plugin package.
Basically I have a temp probe that I'm trying to monitor warning and
critical temps. Here goes..
define host{
use generic-host
host_name sensor1
max_check_attempts 1
alias Temp Sensor 1
check_command check_snmp!-C public -p 161 -o 1.3.6.1.4.1.17095.1.1.0
normal_check_interval 10
retry_check_interval 1
address x.x.x.x
hostgroups sensors
}
define service{
use generic-service
host_name sensor1
service_description Room Temp
check_command check_snmp! -o 1.3.6.1.4.1.17095.3.2.0 -w at 75:79 -c:80
}
This is what is displayed in check_mk with the -v
/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] x.x.x.x:161
1.3.6.1.4.1.17095.3.2.0 Long output of check plugin
(multiline)iso.3.6.1.4.1.17095.3.2.0
= STRING: "77.68"
SNMP OK - "77.68" Service performance data
Service check commandcheck_snmp! -o 1.3.6.1.4.1.17095.3.2.0 -w at 75:79 -c:80
-v
I have another command such as check_snmp!-c public -p 161 -o
1.3.6.1.4.1.17095.3.6.0 -r "PWR OK" that works fine so I have no idea why
the other check command is not giving a warning in nagios.
Any help is welcome!!
Thanks!
--
Dave Callahan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20110722/af362e20/attachment.html>
More information about the Help
mailing list