[Check_mk (english)] Check status to show Warning if not OK - check_snmp

Praveen Kumar Velpula praveen.velpula at gmail.com
Mon Feb 4 16:26:34 CET 2019


Hi All,

We are using check_snmp nagios to check the status for OID's shared.
We are checking if the result is not '0' then the check status should
change to warning instead of critical.
Tried using the attributes (these option i have got it from blogs)
-s, --string=STRING: Return OK state (for that OID) if STRING is an exact
match
-r, --ereg=REGEX: Return OK state (for that OID) if extended regular
expression REGEX matches
--invert-search: Invert search result (CRITICAL if found)
-w and -c as well but no luck

Please find the command line used:
*if -s attribute is used - $USER1$/check_snmp -H $HOSTADDRESS$ -P v2c -C
$ARG1$ -o $ARG2$ -s 1*
*if -r attribute is used - $USER1$/check_snmp -H $HOSTADDRESS$ -P v2c -C
$ARG1$ -o $ARG2$ -r 1*
*if * *--invert-search attribute is used - $USER1$/check_snmp -H
$HOSTADDRESS$ -P v2c -C $ARG1$ -o $ARG2$ *--invert-search -r* 1*

For some changes i got the below, even the OID is returning the same MIB.
*Check iscsid - SNMP CRITICAL - *"iscsid"* - Check_MK status.*

Could you please help me on this.

Thanks & Regards,
Praveen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20190204/5b0513a5/attachment.html>


More information about the checkmk-en mailing list