• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 842
  • Last Modified:

generic nagios snmp plugin

looking for a generic nagios plugin to test if an snmp oid is greater or less then a value.
1 Solution
martin_2110Author 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!

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now