I know that this topic is existing : (Windows Service Restart, Detected as Reboot) but i have a question :
Doing an snmpwalk on a standard Windows in a fresh install of LibreNMS can give the real uptime of the machine, not of the service.
Why using the uptime of the SNMP service from this “DISMAN-EVENT-MIB::sysUpTimeInstance” ?
Knowing AND using this “HOST-RESOURCES-MIB::hrSystemUptime.0” that give the real uptime of the windows ?
It come from the standard MIB HOST-RESOURCES-MIB.
The actual way of working create some false postiv alert if a service restart for any reason (as it can occur)
This is not a stringent approach that keep away a large community of potentials users and contributers.
And i can garantee you, that this simple topic makes a huge amout of users abandon.
As we say in my place, “the devil hide in details”
Hope it will be heard, and good fututre for LibreNMS !