Hello,
I need to change returned SNMP values from numbers 1,4,6,... to names. For example this is an APC OID with possible answers:
.1.3.6.1.4.1.318.1.1.1.4.1.1.0
Syntax INTEGER {unknown(1), onLine(2), onBattery(3), onSmartBoost(4), timedSleeping(5), softwareBypass(6), off(7), rebooting(8), switchedBypass(9), hardwareFailureBypass(10), sleepingUntilPowerReturn(11), onSmartTrim(12) }
It's very good to see 2 as normal, 3 as warning and upper than 3 as alarm. But as you can see there are a lot of different values will be missed if i use this settings. We have 4 big monitors which show us real time statistics and maps. But when HDD Controller change status from 2 to 3 and become as alarm status I just only guess that it down and not rebuild or somethig else.
I read that you recommed use EXE/Script in this case. But I use SNMP and I have to install external SNMP-poller as I understand it. Can I use internal SNMP PRTG NM poller? For example powershell command:
$value = "cmd /c <PRTG_SUPER_POLLER>.exe -oid .1.3.6.1.4.1.318.1.1.1.4.1.1.0"; and use returned value in this file for change it to name.
OR
Can I use some XML file with name/ID as my sensor for change returned values?
Thank you.
Article Comments
Torsten - I see there is now a "Value Lookup" choice on the Channel properties - can user-configurable lists be added? If not now, hopefully it is planned in the near future?
Dec, 2012 - Permalink
Yes it is planned. Actually it is already implemented and part of our preview release.
You can already test the feature with installing a PRTG freeware version und updateing it to the latest preview version.
This feature will soon be documented here.
We will give you a quick overview so you can already try to use it.
- Go to your PRTG directory. (Default: C:\Program Files (x86)\PRTG Network Monitor)
- Open the lookups directory. You will find our predefined lookups here. You can use them as an example, what the files must look like.
- open the subdirectory "custom" and place your own lookupfile there. If you use the same id as one of the predefined lookups, you will overwrite it.
- restart the PRTG services (there will be a way to load lookups without restarting the services)
We will never delete or overwrite any file in the "custom" directory, we might change or overwrite the files, that are placed directly in the lookups directory, though.
Dec, 2012 - Permalink
Johannes - Thank you for the update - exciting news.
I'm running 12.4.7.3507 and don't see the lookups folder. Did you mean the latest Canary version?
Dec, 2012 - Permalink
Dear Steve, "12.4.7.3507" should be the latest stable, however, Johannes mentioned it's so far only available up to the Preview-Builds.
Dec, 2012 - Permalink
I have 13.1.1.1088 - the most recent stable and it looks like the "lookups" directory is not in this build either.
Feb, 2013 - Permalink
Hi,
at the moment lookups are only available in the Preview Channel of PRTG. We plan to release this version as stable soon.
Best regards
Feb, 2013 - Permalink
Hello,
these SNMP lookups are not yet possible, and I'm afraid you cannot use the "PRTG SNMP Polling" engine to gather the values.
best regards.
Sep, 2012 - Permalink