Using Powershell with a EXE/Script Advanced, which works fine.

Occasionally the source device sends invalid data. The script knows when this happens.

Looking to understand what XML should be returned to PRTG, so that PRTG knows to ignore the data. Currently, PRTG displays 'ERROR' in the sensor data log for that sample time.

At the moment, the returned XML in the case of invalid data is :

<?xml version="1.0" encoding="UTF-8" ?>
<PRTG>
<text>TX600V1 status via COM2 RS232</text>
</PRTG>

How should the XML format be modified to indicate that the sample should be ignored?

Thanks


Article Comments

Hello there,

The minimum information a script advanced sensor needs is the following:

<prtg>
<result>
<channel>First channel</channel>
<value>123</value>
</result>
</prtg>

You can get more information about this here.


Kind regards,
Birk Guttmann, Tech Support Team


Dec, 2020 - Permalink