show warning when SNMP value is empty using check_snmp
Posted: Mon Apr 22, 2013 9:42 am
I love Nagios.
But I have one more challenge that I can not overcome.
I am using check_snmp to pull GPS location information from a router.
This works fine.
However, If the router can not get a GPS signal I want the service to turn red on my screen.
The problem is that the service stays green because check_snmp is able to successfully pull a "null value" .
After some experimentation I have found a way to turn the service to "Unknown" by doing the following:
check_snmp! C <community> -o <OID> -c :
I leave a blank space after the :
Does anyone know what parameters to pass it to generate a "Critical" or "Warning" ?
Thanks
But I have one more challenge that I can not overcome.
I am using check_snmp to pull GPS location information from a router.
This works fine.
However, If the router can not get a GPS signal I want the service to turn red on my screen.
The problem is that the service stays green because check_snmp is able to successfully pull a "null value" .
After some experimentation I have found a way to turn the service to "Unknown" by doing the following:
check_snmp! C <community> -o <OID> -c :
I leave a blank space after the :
Does anyone know what parameters to pass it to generate a "Critical" or "Warning" ?
Thanks