What OID is polled by NPM to determine that a Windows server (or any other device type) has rebooted? Is it 1.3.6.1.2.1.25.1.1?
yes.
Use the following alerts and UnDP if you want to use the HOST-RESOURCES MIB variables instead (which indicate the ACTUAL system reboot, rather simply the restart of the SNMP agent)
hrSystemReboot.AlertDefinition
/RjL
Yes, and I then tested the OID against a server I rebooted manually. The funny thing is, the number does not make sense unless you calculate a "time tick" as 1/1000 of a second, rather than 1/100. In other words, if I test the OID every 5 seconds and look at the output, it is definitely coming back in thousandths of a second.
It should be TimeTicks (CentiSeconds), at least that is what the MIB says it should be:
Object | hrSystemUptime |
OID | 1.3.6.1.2.1.25.1.1 |
Type | TimeTicks |
Permission | read-only |
Status | current |
MIB | HOST-RESOURCES-MIB |
Description | "The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system." |
I'm unsurprised by software writers being unable to interpret MIBS correctly: if your system returns it in thousands of a second adjust accordingly (and file a bug-report with the vendor).
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.