New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Monitor and "Lookup" a SNMP String value

Votes:

0

Your Vote:

Up

Down

Hi,

I'm using an oid which return a string value as of complete, in-progress and pending

I've tried to play with snmp sensor for string but I can't make it run.

Can someone please help me on this ? At the end, I would like that sensor to be presented as a gauge with 3 states.

Thx in advance Cyril

custom-lookup custom-string-sensor lookup prtg snmp

Created on Sep 5, 2016 1:57:57 PM by  cyrilepiney (0) 1

Last change on Sep 6, 2016 7:56:40 AM by  Luciano Lingnau [Paessler Support]



1 Reply

Accepted Answer

Votes:

0

Your Vote:

Up

Down

Hello Cyril and thank you for your KB-Post.

The "correct" sensor in this case is the SNMP Custom String Lookup Sensor. As you've mentioned, these are the "possible" outputs of the OID that you're monitoring:

complete
in-progress
pending

First of all, we need to tell PRTG what the possible outputs are, for this we need to create a slightly different lookup that will look like this:

<?xml version="1.0" encoding="UTF-8"?>
<ValueLookup id="prtg.custom.string.progress" desiredValue="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd">
	<Lookups>
		<SingleInt state="Ok" value="0">complete</SingleInt>
		<SingleInt state="Warning" value="1">in-progress</SingleInt>
		<SingleInt state="Error" value="2">pending</SingleInt>
	</Lookups>
</ValueLookup>

Once the lookup was created/stored, head to Setup > Administrative Tools and issue a "Re-load Lookups". Then head back to the Device in PRTG and deploy the SNMP Custom String Lookup Sensor. During the sensor's creation select the previously created lookup from the list.

The sensor will have a Gauge to which it will map the 3 possible states via the lookup. If there are more possible states, they have to be added within the <Lookups> tag in the ovl lookup-file.

For further information regarding lookups:
Other SNMP-related topics:

Best Regards,
Luciano Lingnau [Paessler Support]

Created on Sep 6, 2016 6:12:31 AM by  Luciano Lingnau [Paessler Support]

Last change on Sep 7, 2016 7:13:58 AM by  Luciano Lingnau [Paessler Support]



Please log in or register to enter your reply.


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.