From dstrebushnyi at priocom.com Tue Nov 3 14:52:39 2020 From: dstrebushnyi at priocom.com (Dmitro Strebushnyi) Date: Tue, 3 Nov 2020 13:52:39 +0000 Subject: check_snmp plugin usage Message-ID: <2bb61eee13484257bcd6aba6067d1ebf@KV-EXCH-01.priocom.loc> Hello! I use check_snmp plugin with Icinga2 for controlling loop state (dry contacts) on my device. OID may have only 3 conditions: 1,2,3. Look output: root at debian:/usr/lib/nagios/plugins# /usr/lib/nagios/plugins/check_snmp --protocol=2c --community=public --hostname=192.168.88.5 --oid=1.3.6.1.4.1.33199.5.3.1.1.3.0 --critical=0:1 SNMP CRITICAL - *2* | iso.3.6.1.4.1.33199.5.3.1.1.3.0=2;;0:1 root at debian:/usr/lib/nagios/plugins# I need to transmit to Icinga message with state like this example^ State of Loop ? OPENED ? when value is 2. State of Loop ? NORMAL ? when value is 1. State of Loop ? ERROR ? when value is 3. How can I insigne some Label to state? I not found any examples which can help me. Thank you very much in advance! Best Regards, Dmitry Strebushnyi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4482 bytes Desc: not available URL: