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?


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Hi,
please send the full output of the script and the script itself to support@paessler.com. 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


Aug, 2013 - Permalink