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.
Article Comments
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?
Mar, 2012 - Permalink
Oh never mind, these fields are indeed described in the "Advanced EXE/Script Sensor" section.
Thanks
Mar, 2012 - Permalink
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
Mar, 2012 - Permalink