Hi, I'm requesting an UPS with SNMP to get for example "Battery time left in minutes". I'm getting the value of 198 minutes. Is there a way to display it like 3h 18 minutes ?

Thx in advance


Article Comments

Hi cyrilepiney,

you could use a custom snmp sensor with that OID and display the time in hours. You would have to calculate the exact time yourself, but I think that won't be a problem. In your case this would lead to the output "3,3 h". I don't think its possible divide this in hours and minutes. But you can always proof me wrong. ;)


Jul, 2015 - Permalink

Hello cyrilepiney.

Unfortunately PRTG can currently not convert time, you can use Multiplication and Division within the channel's settings to have the output in hours or in seconds, but PRTG will not be able to provide you with an output of Hours : Minutes : Seconds.

More setup details: Manual: SNMP Custom Sensor

In example:

If the device responds with 150 (minutes):
dividing 150 by 60 would yield the result of 2.5 (hours), which is 2 hours + 50% of one hour(30 minutes), not to be confused with 2 hours and 50 minutes.


Jul, 2015 - Permalink