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

How to evaluate string values

Votes:

0

Hi,

I'd like to monitor an Easyraid storage subsystem. I've got a MIB, saved an oidlib and created quite number of sensors. One sensor for example monitors the logical drive's overall status und returns OPTIMAL as a value. How can I tell the sensor to go into warning or error if the value is anything else than OPTIMAL? Or is it even possible to change the state to Warning if the value is DEGRADED and to Error if the value is FAIL?

KInd regards, P. Zinckgraf

prtg sensor-string-value snmp

Created on Nov 7, 2013 1:31:07 PM



12 Replies

Votes:

0

Hello,

thank you very much for your KB-Post. This is possible by using the according options in the "Settings" of the "SNMP Custom String"-Sensor, like shown in the attached screenshot: http://abload.de/img/snmpstring50sb6.png

best regards.

Created on Nov 8, 2013 9:16:33 AM by  Torsten Lindner [Paessler Support]



Votes:

0

Thanks for your quick reply. I was hoping I could use the sensors I created using my oidlib. Those sensors don't show any OID I could use to create matching custom string sensors. In their settings they just show for instance "EASYRAID-P-SNMP-MIB/raid log drv: 0/raid ld state", which is not accepted by the custom string sensor.

Will I have to dig through over 500 oidlib entries to find the matching OIDs?

Created on Nov 8, 2013 9:41:43 AM



Votes:

0

Can you please upload a screenshot showing the settings of this sensor?

Created on Nov 8, 2013 10:13:46 AM by  Torsten Lindner [Paessler Support]



Votes:

0

sure:

Sensor Settings

Created on Nov 8, 2013 10:23:29 AM

Last change on Nov 8, 2013 2:28:24 PM by  Patrick Hutter [Paessler Support] (7,225) 3 3



Votes:

0

This actually is not a String based SNMP Sensor, but a normal SNMP Custom Sensor. On those Lookups can be used to "translate" numerical results into readable messages. If the MIB was imported with the most recent version of the MIB Importer 3.4.7 the lookup file most likely, was added automatically. You can change it though to have it also use the states you want of course.

Created on Nov 8, 2013 2:20:01 PM by  Torsten Lindner [Paessler Support]



Votes:

0

I used MIB importer 3.4.6. The SNMP Library sensor is the only sensor type I think that makes use of oidlibs. And sorry, I don't get your last sentence. What exactly can I change to have something using the states if the lookup file was - most likely - added?

I opened the original MIB in the MIB Importer, found the "raid ld state" in the tree. There are strings and values in the lokkup-field. I created a new custom string sensor with the OID from the MIB. The sensor so far gives me "no such name", though.

Created on Nov 8, 2013 2:53:49 PM



Votes:

0

You can change the Lookup used on the sensor, to influence the sensors state (depending on the result). Or create a lookup for this sensor, if none is used yet.

Created on Nov 8, 2013 3:14:03 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Ok, what I have to do is create a custom string sensor with the OID from the MIB, make sure that there is a suitable (edited) lookup file that translates numerical responses back to the strings I can parse to determine warning and error conditions.

As a long shot, I added .0 to the OID that previously gave me the no such name error, and the sensor went into warning state "String not found [OPTIMAL]". I can't figure out what the actual response was, the sensor only has channels for response time and availability.

(Still, it would be much easier if one could parse responses of SNMP library sensors for strings.)

Created on Nov 8, 2013 3:45:54 PM



Votes:

0

You do not need the OID and use it one a SNMP Custom String sensor. Just use the existing "SNMP Library Sensor", and check if a Lookup is used, and edit it your needs. Or if none is used, create a suiting one.

Created on Nov 8, 2013 3:51:56 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Ok, got it. I had missed that the lookup is a channel property, not a sensor property.

I found the lookup field in the channel settings and for testing puposes edited the corresponding .ovl lookup file to give a Warning state if the snmp response is "3", which the lookup file resolves to "OPTIMAL". And I changed the channel unit to "Custom". Is there anything else I have to take care of to trick the sensor into Warning state?

Created on Nov 8, 2013 4:28:36 PM



Votes:

0

If you've edited the lookup file correctly, the only necessary step then is to 're-load' the lookup files, under "Setup"->"System Administration"->"Administrative Tools".

Created on Nov 11, 2013 10:58:00 AM by  Torsten Lindner [Paessler Support]



Votes:

0

Thank you very much, everything is running smooth now. Sorry for the shallow learning curve...

Created on Nov 11, 2013 12:44:53 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.