Page 1 of 1

SNMP Question

Posted: Tue Jun 16, 2015 12:57 pm
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?

Re: SNMP Question

Posted: Tue Jun 16, 2015 2:11 pm
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