Hello.. I have an snmp device that sends the input status as a STRING in the form of "0" or "1". I would like to use Lookups but they only support INTEGERS. I need to change the displayed status to a different string, ie "0" --> OK and "1" --> Failure.
I have tried using the SNMP custom string with Lookups but it only works for integers.. Any other way to make this work?
Thanks
Article Comments
Hello Rob,
we appreciate your contact.
Let's say this is the data you're working with:
1.3.6.1.4.1.1.2.3.4.5.6.1.0 = "1" [ASN_OCTET_STR] |
Although the SNMP Datatype is indeed string, PRTG is smart enough to read this as a numerical value, for example if you employ the SNMP Custom sensor.
And once the sensor was deployed, click on settings gear for the "Value" channel (to open the channel settings and associate it with a lookup that translates 0 and 1. That's all there is to it.
You would only need to use the SNMP Custom String Lookup sensor if the device delivered values like:
1.3.6.1.4.1.1.2.3.4.5.6.1.0 = "OK" [ASN_OCTET_STR] |
1.3.6.1.4.1.1.2.3.4.5.6.2.0 = "Failure" [ASN_OCTET_STR] |
For more information on this subject, please refer to:
Best Regards,
Luciano Lingnau [Paessler Support]
Mar, 2018 - Permalink
Luciano Lingnau ROCKS!
Thank you Sir.. Your solution works as described and meets my needs perfectly..
Best Regards,
Rob
Mar, 2018 - Permalink
Hello Rob,
we appreciate your contact.
Let's say this is the data you're working with:
Although the SNMP Datatype is indeed string, PRTG is smart enough to read this as a numerical value, for example if you employ the SNMP Custom sensor.
And once the sensor was deployed, click on settings gear for the "Value" channel (to open the channel settings and associate it with a lookup that translates 0 and 1. That's all there is to it.
You would only need to use the SNMP Custom String Lookup sensor if the device delivered values like:
For more information on this subject, please refer to:
Best Regards,
Luciano Lingnau [Paessler Support]
Mar, 2018 - Permalink