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/Script Sensor - Return value

Votes:

0

Hi,

We have build a custom exe/script sensor (using JAVA) and getting it executed using windows bat file. when executing, scripts generates some output and we need to PASS or FAIL the sensor based on text output.

PRTG always complaint "Response not wellformed"

How do we correct this problem.

Thanks, Nikesh

custom-script-exe custom-sensor exe-script-sensor

Created on Aug 8, 2017 4:30:18 PM



1 Reply

Votes:

0

Hi Nikesh,

Please make sure that output is as expected by PRTG. You can find the proper output syntax in your Webinterface under "Setup > PRTG API > Custom Sensors". An example for the normal "EXE/Script Sensor" would be:

1024:This is a message

For the "EXE/Script Advanced" it would be:

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

Best Regards

Created on Aug 8, 2017 7:56:17 PM by  Dariusz Gorka [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.