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 Custom EXE/Script Sensor Not Seeing Lookup

Votes:

0

I've created a custom script sensor, with a custom value lookup but the sensor only returns the data associated with the channel, and not the reference text. Neither my lookup or sensor fails. I have recreated it a number of times but no joy.

Here is an example of the sensor data: <?xml version="1.0" encoding="Windows-1252" ?>

<prtg>

<result> <channel>Status</channel> <unit>Custom</unit> <mode>Absolute</mode> <showChart>1</showChart> <showTable>1</showTable> <value>2</value> <ValueLookup>ms.sql.replication.state</ValueLookup> <LimitMode>1</LimitMode> </result>

<result> <channel>Latency</channel> <unit>TimeSeconds</unit> <mode>Absolute</mode> <showChart>1</showChart> <showTable>1</showTable> <warning>60</warning> <value>5</value> <LimitMaxError>80</LimitMaxError> <LimitMaxWarning>37</LimitMaxWarning> <LimitWarningMsg>Latency is Degraded.</LimitWarningMsg> <LimitErrorMsg>Latency is Critical.</LimitErrorMsg> <LimitMode>1</LimitMode> </result>

</prtg>

And here is my lookup: <?xml version="1.0" encoding="UTF-8"?> <ValueLookup id="ms.sql.replication.state" desiredValue="4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd"> <Lookups> <SingleInt state="Ok" value="4"> Idle </SingleInt> <SingleInt state="Ok" value="1"> Started </SingleInt> <SingleInt state="Error" value="2"> Stopped </SingleInt> <SingleInt state="Ok" value="3"> InProgress </SingleInt> <SingleInt state="Warning" value="5"> Retrying </SingleInt> <SingleInt state="Failed" value="6"> Failed </SingleInt> </Lookups> </ValueLookup>

custom lookup script

Created on Apr 6, 2014 6:48:57 PM



1 Reply

Accepted Answer

Votes:

0

So yeah... my bad. My lookup was wrong. There is no such thing as a SingleInt state = "Failed". The correct syntax is SingleInt state = "Error".

Thanks all.

Created on Apr 7, 2014 6:06:49 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.