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?
Add comment