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

How to display time value for sensor



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

prtg snmp-sensor time

Created on Jul 30, 2015 3:17:30 PM

2 Replies



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. ;)

Created on Jul 31, 2015 8:01:16 AM



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.

Created on Jul 31, 2015 9:13:14 AM by  Luciano Lingnau [Paessler]

Last change on Jul 31, 2015 12:57:54 PM by  Luciano Lingnau [Paessler]

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.