generic nagios snmp plugin

Posted on 2009-05-01
Last Modified: 2012-06-27
looking for a generic nagios plugin to test if an snmp oid is greater or less then a value.
Question by:martin_2110
    LVL 7

    Accepted Solution

    Found it on my own.

    Expert Comment

    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!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    #Citrix #Citrix Netscaler #HTTP Compression #Load Balance
    Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now