Page 1 of 1

Monitor Windows Server Reboots

Posted: Fri Nov 01, 2019 9:35 am
by Barber50701
Let me just start by saying NEMS is a entirely new concept to me. So far I am monitoring a few servers with the NScleint and it seems to be doing well for the default monitors Disk, Mem, Uptime.  I have alerts working...all is well so far.  I see that there is a check command for event_reboot_win.  I am correct in thinking that I could get an alert when a server gets rebooted?  I have tried to find some documentation on how to enable that check but have not had any success. Is that check part of WMI?

Thanks for any help!

Edit I did a little poking arround and was able to add the check to a host, but I get an error of  (No output on stdout) stderr: sudo: no tty present and no askpass program specified
Any idead on what I need to do?

RE: Monitor Windows Server Reboots

Posted: Mon Nov 25, 2019 3:39 am
by HeikoAdams
[quote="Barber50701" pid='2979' dateline='1572618929']I see that there is a check command for event_reboot_win.  I am correct in thinking that I could get an alert when a server gets rebooted?  I have tried to find some documentation on how to enable that check but have not had any success. Is that check part of WMI?[/quote]

No, you're dead wrong that "check" is triggering a reboot.

RE: Monitor Windows Server Reboots

Posted: Thu Dec 05, 2019 1:03 pm
by Barber50701
Do you have any suggestions on how to monitor for when a server is rebooted? Is there a way to use NEMS to look for an event id?

RE: Monitor Windows Server Reboots

Posted: Fri Jan 31, 2020 2:45 am
by HeikoAdams
Take a look at the "Uptime" advanced services. They return the current uptime of a system. If the uptime is i.e. lower 5 minutes the system probably did a reboot recently.