check_snmp plugin usage

Dmitro Strebushnyi dstrebushnyi at priocom.com
Tue Nov 3 14:52:39 CET 2020


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: <https://www.monitoring-plugins.org/archive/help/attachments/20201103/85fd4b6e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4482 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20201103/85fd4b6e/attachment.bin>


More information about the Help mailing list