generic nagios snmp plugin

looking for a generic nagios plugin to test if an snmp oid is greater or less then a value.
Who is Participating?
martin_2110Connect With a Mentor Author Commented:
Found it on my own.
Perfect - but how to make nagios send an alter based on the value?

I get alerts when I use check_http and check for a value using '-s' to check for a string, I need the same kind of idea to check for a 0 or 1 from the SNMP result which looks like this:

I tried this:
[root@dev objects]# /usr/lib64/nagios/plugins/check_snmp -H 192.168.0.XX  -o . -C switchvox -P 2c
SNMP OK - 1 | iso.  

when the VoIP provider is up, and...

[root@dev objects]# /usr/lib64/nagios/plugins/check_snmp -H 192.168.0.XX  -o . -C switchvox -P 2c
SNMP CRITICAL - *0* | iso.  

when it's down

Naturally I want an alert when it's down :)

Any help appreciated!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.