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.
Article Comments
When sensor get "1": https://ibb.co/mb85YVp
When sensor get "2": https://ibb.co/t30gjXX
- "?????? ? ???????? ??????????? "Down" ? ??????" it "Error by lookup value "Down" in channel value" (key from language file: pas.datastatecheckcustom.work.lookuperror)
- "????? ???????" it "Downtime" (key from language file: pas.notification.downtime)
- "??????" it "Value"
Jun, 2020 - Permalink
If I understand you correctly, you want only to have the word "Down" and not the sentence "Error by lookup value "Down" in channel value""?
Please note that this message is not adjustable, you can only change the string configured in your lookup file which is currently "Down".
Jun, 2020 - Permalink
I can't edit my messages (I don't know why), post again normal images:
When sensor get "1": (https://ibb.co/mb85YVp)
When sensor get "2": (https://ibb.co/t30gjXX)
I need this result (when sensor get "2"): (https://ibb.co/84S6Vb2)
Moritz Heller, yes, I want see in this message only "Down".
I thinked it's error PRTG about wrong lookup file.
I can see only one way to resolve this issue: edit language file =)
thx for replay!
Jun, 2020 - Permalink
Hi there,
everything seems to be fine and the lookup works as defined. Please let me know what certain issue you experience?
Jun, 2020 - Permalink