What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Lookups when value is a String

Votes:

0

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

custom-lookup lookups prtg

Created on Mar 14, 2018 4:29:45 PM

Last change on Mar 15, 2018 7:57:06 AM by  Luciano Lingnau [Paessler]



2 Replies

Accepted Answer

Votes:

0

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]

Created on Mar 15, 2018 8:08:16 AM by  Luciano Lingnau [Paessler]



Votes:

1

Luciano Lingnau ROCKS!

Thank you Sir.. Your solution works as described and meets my needs perfectly..

Best Regards, Rob

Created on Mar 15, 2018 12:09:46 PM




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.