SNMP Question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

SNMP Question

Post by derekb »

I have a question regarding SNMP. I have setup a number of services that use check_snmp to monitoring specific OID's on a QNAP device for things like HDD Temp, storage space, CPU usage, etc.

These services are working correctly, and are pulling the correct data.

Is there any way to specify what values would be considered "warning" or "critical", or does this type of service only report OK when the SNMP query is successful, and critical when the SNMP query fails?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Question

Post by ssax »

You can use these options:

Code: Select all

 -w, --warning=THRESHOLD(s)
    Warning threshold range(s)
 -c, --critical=THRESHOLD(s)
    Critical threshold range(s)
 -r, --ereg=REGEX
    Return OK state (for that OID) if extended regular expression REGEX matches
 -R, --eregi=REGEX
    Return OK state (for that OID) if case-insensitive extended REGEX matches
 --invert-search
    Invert search result (CRITICAL if found)
You can view them all by running:

Code: Select all

/usr/local/nagios/libexec/check_snmp --help
Locked