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

What is the XML Schema for EXEXML sensor?

Votes:

0

I'd like to create a custom sensor that uses multiple channels.

Sample that I've found echoes some XML data that is correctly inserted into sensor history.

My question: What is the exact XML Schema of this output?

Thanks.

custom-exe custom-sensor exexml prtg

Created on Mar 19, 2012 12:37:06 PM



3 Replies

Accepted Answer

Votes:

0

Hi,
I'm afraid there is no Schema to validate (This would require havein a XML Header and more).
Please see yourPRTGInstallation/api.htm#Tab7 for details on the EXEXML Sensor. Please fin also below a example of the output XML:

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

Best regards

Created on Mar 19, 2012 12:49:45 PM by  Konstantin Wolff [Paessler Support]

Last change on May 10, 2012 12:12:29 PM by  Manischa Mittal [Paessler Support]



Votes:

0

Thanks, I've also found this example.

<prtg>
   <result>
       <channel>Demo Minimum Example</channel>
       <value>3</value>
   </result>
   <result>
       <channel>Demo Disk Free</channel>
       <unit>Percent</unit>
       <mode>Absolute</mode>
       <showChart>1</showChart>
       <showTable>1</showTable>
       <warning>0</warning>
       <float>1</float>
       <value>38.4487</value>
   </result>
   <result>
       <channel>Demo Network Speed</channel>
       <unit>SpeedNet</unit>
       <volumeSize>MegaBit</volumeSize>
       <mode>Absolute</mode>
       <showChart>1</showChart>
       <showTable>1</showTable>
       <warning>0</warning>
       <float>0</float>
       <value>124487000</value>
   </result>
   <result>
       <channel>Demo Custom</channel>
       <unit>Custom</unit>
       <customUnit>Pieces</customUnit>
       <mode>Absolute</mode>
       <showChart>1</showChart>
       <showTable>1</showTable>
       <warning>0</warning>
       <float>0</float>
       <value>855</value>
   </result>
   <text>Demo values. OS: Windows_NT</text>
</prtg>

Is there any help for these extra fields? Like showChart, showTable, units and stuff?

Created on Mar 19, 2012 12:58:05 PM



Votes:

0

Oh never mind, these fields are indeed described in the "Advanced EXE/Script Sensor" section.

Thanks

Created on Mar 19, 2012 1:04:27 PM




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.