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

XML sensor - Invalid data

Votes:

0

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

ignore sample xml

Created on Dec 19, 2020 2:19:30 AM

Last change on Dec 21, 2020 7:09:37 AM by  Florian Lesage [Paessler Support]



1 Reply

Votes:

0

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

Created on Dec 23, 2020 12:59:16 PM by  Birk Guttmann [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.