I like to add uptime to a SNMP Custom Advanced (System health sensor for a Cisco Router)

OID1.3.6.1.2.1.1.3.0

the value that is 1/100 of seconds

  • How can i make it like the current standard PRTG sensor? So that i can see uptime in days hours or minutes instead of a long value and set lower warning limit in seconds

Found this post:

Don't know where to apply it in PRTG SNMP Custom Advanced sensor

retrieved_value / (100 (seconds) * 60 (minutes) * 60 (hours) * 24 (days))

Article Comments

Hello there,

You may want to use the standard sensor since it does all the calculation internally. When working with the SNMP Custom Advanced sensor, you need to set the Unit to Custom, then you'll be able to enter a division factor in the channel's settings afterwards. For instance dividing by 100 will give you the value in seconds, dividing it by 6000 will give the value in minutes. You won't be able to get a value in the "pretty" format of the standard sensor (like 2 d 18 h 45 m because this is only possible with units that are supported by PRTG natively. Timeticks aren't.)

Alternatively, since you've mentioned that you're using a Cisco device, you may be able to deploy a sensor which polls the snmpEngineTime(1.3.6.1.6.3.10.2.1.3.0), this will give you a reading in seconds. In this case, set the unit in the settings of the sensor to TimeSeconds.

Best Regards,
Luciano Lingnau [Paessler Support]


Dec, 2016 - Permalink