The correct OID for system uptime
I use SNMP to track system uptime so I know when my hosts have recently rebooted, but I keep making a mistake when picking which OID to monitor and using sysUpTime.0
which is wrong I should be using hrSystem.hrSystemUptime.0
.
sysUpTime.0
- Timeticks (0.01s) since the snmpd started.
hrSystem.hrSystemUptime.0
- Timeticks since the hardware started.
You can verify that I've written this post by following the verification instructions:
curl -LO http://barkingiguana.com/2010/02/11/the-correct-oid-for-system-uptime.html.orig
curl -LO http://barkingiguana.com/2010/02/11/the-correct-oid-for-system-uptime.html.orig.asc
gpg --verify the-correct-oid-for-system-uptime.html.orig{.asc,}
If you'd like to have a conversation about this post, email craig@barkingiguana.com. I don't bite.