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@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@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
smime.p7s
Description: S/MIME cryptographic signature