Hi all!
PRTG is so convenient and simple that the need to ask a question arises very rarely. However, this is the situation right now.
In my case, there is a completely ordinary sensor created using oidlib. The sensor has several channels. This is the monitoring of the UPS by APC.
There is one rather interesting channel that provides negative values for statuses, and positive values for knowing the efficiency factor. I used KB and set up a lookup like this:
<?xml version="1.0" encoding="UTF-8"?> <ValueLookup id="deltinos.apc_output_kpd.ua" desiredValue="90" undefinedState="Warning"> <Lookups> <Range state="Warning" from="-1" to="-1"> Результат недоступний </Range> <Range state="Warning" from="-2" to="-2"> Замале навантаження </Range> <Range state="Warning" from="-3" to="-3"> Вихід вимкнено </Range> <Range state="Warning" from="-4" to="-4"> Живлення від батареї </Range> <Range state="Warning" from="-5" to="-5"> У режимі байпасу </Range> <Range state="Warning" from="-6" to="-6"> Заряджання АКБ </Range> <Range state="Warning" from="-7" to="-7"> Аварія входу </Range> <Range state="Warning" from="0" to="0"> ККД дорівнює 0% </Range> <Range state="Ok" from="1" to="1000"> ККД в нормі </Range> <Range state="Error" from="1001" to="10000"> Неможливе значення ККД </Range> </Lookups> </ValueLookup>
So, I created a lookup, read the files, and then I was able to assign this lookup to the desired channel.
The problem is that this lookup works for the first data update. After updating the data (even if the value has not changed) it is reset and I have to assign it again.
My version of PRTG is 19.4.54.1506+. If it matters, monitoring is performed from a remote probe.
OS of the server and a probe - Microsoft Windows Server 2016.
Updates have been installed recently.
Microsoft .NET Framework 4.8 on the server and remote probe.
The server and the remote probe are virtual PCs located on different physical vmware servers.
Add comment