I'm looking to convert an up time value that's displayed in seconds to something like Days:Hours:Mins:Seconds.
I use SNMP oid value to display up time on devices in the Dude. I use the appearance of the device to show the uptime value. For example:
I believe a formula like this should work but I do not know how to implement it into the Dude.
time = "OID value"
days = time / 86400
hours = (time / 3600) - (days * 24)
minutes = (time / 60) - (days * 1440) - (hours * 60)
seconds = time mod 60
Do i need to make a script? Or right out some sort of logic in the Dude functions? Any guidance would be appreciated.