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


SNMP Custom String sensor

Votes:

0

Your Vote:

Up

Down

I setup this sensor to monitor a custom OID that returns a number depending on error/warning. if the result is 1 set to warning, and if it's 2 set to error. Well if there's no error or warning the value is NULL or not set. How do I program this in the Custom String Sensor?

-> Error state: Must not include 2

-> Warning state Must not include 1

Both are set to plain text and both "Must include" fields are blank. I've tried entering what PRTG reports "NULL2" or just "NULL" along with Regex to match empty string "()", sensor still errors or shows down.

custom-oid null oid snmpcustomstringsensor

Created on Mar 4, 2015 7:07:52 PM by  mouseware (0) 1



3 Replies

Votes:

0

Your Vote:

Up

Down

Dear Mousware

This kind of condition cannot be used to trigger an error or warning. PRTG always compares a numeric sensor value against a numeric limit value.

For complex value evaluations please write a script for the Exe/Script sensor, and return a numeric value which you then use to trigger different sensor states. Using the free net-snmp package, you can query SNMP values from a powershell script or other programs.

Created on Mar 6, 2015 12:06:00 PM by  Arne Seifert [Paessler Support]



Votes:

0

Your Vote:

Up

Down

I didn't think this was complex. How about any value returned error/down state, NULL or nothing green/OK? Will that work?

Created on Mar 6, 2015 9:41:35 PM by  mouseware (0) 1



Votes:

0

Your Vote:

Up

Down

Dear Mousware

PRTG compares a numeric sensor value against a numeric limit value. If the OID returns nothing (an empty string) the sensor will turn into alarm state caused by a typecast error.

Created on Mar 9, 2015 10:40:58 AM by  Arne Seifert [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.