Hi!
I'm create lookup, like this:
<?xml version="1.0" encoding="UTF-8"?>
<ValueLookup id="prtg.device.interface.updown" desiredValue="3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd">
<Lookups>
<SingleInt state="Ok" value="1">
Up
</SingleInt>
<SingleInt state="Error" value="2">
Down
</SingleInt>
</Lookups>
</ValueLookup>
After this, I add snmpcustomsensor (return number) to device and "value" lookup select this.
When sensor get "1" - all fine, prtg write "OK" on green. When sensor get "2" sensor write "Error by lookup value "Down" in channel "value"" on the red background (like error). If I change state="Error" to state="Warning" in the lookup - I get error "Warning by lookup value "Down" in channel "value"" on the yellow background.
Lookup in customsensor
Votes:
0
6 Replies
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.
Add comment