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

Lookup in customsensor

Votes:

0

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.

custom-lookup snmpcustomsensor state

Created on Jun 30, 2020 6:55:55 AM



6 Replies

Votes:

0

Hi there,

everything seems to be fine and the lookup works as defined. Please let me know what certain issue you experience?

Created on Jun 30, 2020 7:02:36 AM by  Moritz Heller [Paessler Support]



Votes:

0

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"

Created on Jun 30, 2020 7:23:08 AM

Last change on Jun 30, 2020 11:34:46 AM by  Moritz Heller [Paessler Support]



Votes:

0

Hi there,

Please let me know what you want to achieve?

Created on Jun 30, 2020 8:00:14 AM by  Moritz Heller [Paessler Support]



Votes:

0

I need to see this result: https://ibb.co/84S6Vb2

Created on Jun 30, 2020 8:16:40 AM



Votes:

0

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".

Created on Jun 30, 2020 8:26:57 AM by  Moritz Heller [Paessler Support]



Votes:

0

I can't edit my messages (I don't know why), post again normal images: When sensor get "1": OK (https://ibb.co/mb85YVp)

When sensor get "2": Error (https://ibb.co/t30gjXX)

I need this result (when sensor get "2"): Normal error (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!

Created on Jun 30, 2020 8:46:58 AM




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.