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 Exe/Xml sensor status not resetting to green/ok



I have a custom sensor that returns:

<?xml version="1.0" encoding="WINDOWS-1252"?> -<prtg>-<result><channel>AO 3 COPPER</channel></result> <result><channel>AO 3 COPPER Status</channel></result> </prtg>

(I've eldided the data) when OK, but returns:

<?xml version="1.0" encoding="WINDOWS-1252"?> -<prtg><text>No recent values</text><error>1</error></prtg>

when there is a problem.

When I start getting data again, the sensor seems to get stuck in 'warning'/yellow status.

Similarly, if I run my custom sensor under a debugger and interrupt it, I get the 'error status' (red), and 'Last Message: Error reading response: missing /prtg'.

When I start sending valid xml to PRTG again, the 'last message' persists, and the sensor stays red (error).

Any ideas how to rectify this?

prtg sensor xml

Created on Aug 19, 2013 11:55:40 AM

1 Reply



please send the full output of the script and the script itself to [email protected]. Additional, please activate the debug option for the script in the tab Settings of the sensor. Therefore just set the option Result Handling to Write Result to Disk. This will create a file called REsult of Sensor XXXX.txt in the \Logs (Sensors) sub folder of your data directory. Please include this file as well.
Best regards

Created on Aug 19, 2013 1:53:31 PM by  Konstantin Wolff [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.