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

Custom Sensor Error Message

Votes:

0

I'm trying to include a message in our custom sensor, however the Error Limit Message doesn't seem to be coming through. There is a good chance that I have no idea what i'm doing though.

Here is the xml output from the script

<prtg>
<result>
<channel>Oldest Snapshot</channel>
<value>65</value>
<CustomUnit>Days</CustomUnit>
<LimitMaxError>30</LimitMaxError>
<LimitMode>1</LimitMode>
<LimitErrorMsg>
SWW-DMZ-LAMP-01 - presendmail : 12/6/2013 12:26:51 PM  and  65  days old
</LimitErrorMsg>
</result>
</prtg>

custom-notification custom-sensor prtg

Created on Feb 10, 2014 4:13:39 PM

Last change on Feb 11, 2014 1:19:31 PM by  Torsten Lindner [Paessler Support]



3 Replies

Votes:

0

Hello,

thank you very much for your KB-Post. The problem is that if the measured value, is above the error-limit, the sensor message is overwritten (with the note, that the value is above the limit). I'm afraid this can't be changed. The only work-around would be removing the limit, and instead working with Threshold-Triggers.

best regards.

Created on Feb 11, 2014 1:21:07 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Here is what i'm trying to do. Maybe a little advice on how to implement this is what I need.

Basically i'm looking at our VMware servers for snapshots that are older than 30 days. If there are old shapshots I would like the message to be displayed with the systems that have the old snapshots. It appears however that the error message doesn't get updated each time the sensor is run, however i'm not sure if that's correct.

Another option is that I could have a channel for each guest VM, however i'm not sure what happens if a VM were to migrate from one ESX server to another.

What do you think the best option would be?

Created on Feb 11, 2014 1:30:15 PM



Votes:

0

Hi,

thank you for the clarification.

At the moment there are two ways to implement the sensor for your needs:

- you can define a threshold-notification in combination with the '<text>your message here</text>'-tag. This is OK to be notified but there is no visible state-change in the PRTG UI.
- you can define the limit in your sensor-script and set the result to 'warning' by using the '<warning>1</warning>' in your result-set and return the message you want to return as '<text>your message here</text>'.
This is fine to get a changed state AND the value AND a custom message in one.
If you are using the '<error>1</error>'-tag the value itself can't be used as PRTG is using this state to indicate a severe error like connection-problems or similar.

Kind Regards

Created on Feb 11, 2014 3:55:35 PM by  Dieter Loskarn [Paessler Support]




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.