| Hi All, Just in case you need to do this, here is how to convert a time in seconds to something a little nicer. <snmp-device-variables> ---- Uptime, 1.3.6.1.4.1.17219.1.9.0, DEFAULT, "Service up-time" --Calculated Values UpDays, (sprintf( "%2d", ($Uptime/(3600*24)) )), CALCULATION UpHours, (sprintf( "%2d", ( ($Uptime % (3600*24)) / 3600) )), CALCULATION UpMinuts, (sprintf( "%2d", ($Uptime % (3600*24) % 3600)/60 )), CALCULATION UpSecs, (sprintf( "%2d", ($Uptime % (3600*24) % 3600)%60 )), CALCULATION </snmp-device-variables> <snmp-device-display> Uptime: ${eval: $UpDays > "0" ? "$UpDays days, " : ""}$UpHours hours $UpMinuts minuts $UpSecs seconds </snmp-device-display> I use this to tell if the service monitored has been running as long as the host OS... Hope it helps somewhere, PS: Dartware, could this be added to the documentation for reference? Jakob Peterhänsel "Tell me why, don't we try, not to break our hearts and make it so hard for our selfs" P.S.B. 1987 Email: [EMAIL PROTECTED] AIM: Marook Phone: +45 22684961 |
smime.p7s
Description: S/MIME cryptographic signature
