Monitor for pending Windows server reboots
Posted: Thu Nov 08, 2018 5:27 pm
Is there any way I can monitor Windows servers (actually, any Windows OS host) for a pending reboot? We want to know when Windows hosts are pending reboots after patches and updates have been installed and are awaiting a reboot to complete the install.
Before anyone says to use PowerShell, I know there are plenty of scripts in PowerShell that I can run to get this info, but am I correct in assuming that I would need to use the Nagios client to do this? I'm trying to refrain from having to install the Nagios client because I have about 200 of these hosts that I want to monitor, and I really don't want to have to tap each host to install software and configure settings. We've been using WMI to monitor the Windows hosts, and we've had really good luck with this, as it involves nothing to install at the host end - just configuration at the Nagios server when adding the host to be monitored.
I saw a plugin that utilizes SNMP to convert event viewer to SNMP, but that looked like it would have a licensing cost per host? Is there any way to use WMI to monitor the Setup Event Log? I have the WMI setup with the Nagios Windows WMI hosts wizard that will monitor the Application and System event logs, but those look for event ID levels of critical, info, warning, etc. There doesn't appear to be a way to effectively monitor the Setup event log, as every event appears to be info level. All I would need is to be able to query the Setup event log for event ID 4, which shows that an update requires a reboot.
Before anyone says to use PowerShell, I know there are plenty of scripts in PowerShell that I can run to get this info, but am I correct in assuming that I would need to use the Nagios client to do this? I'm trying to refrain from having to install the Nagios client because I have about 200 of these hosts that I want to monitor, and I really don't want to have to tap each host to install software and configure settings. We've been using WMI to monitor the Windows hosts, and we've had really good luck with this, as it involves nothing to install at the host end - just configuration at the Nagios server when adding the host to be monitored.
I saw a plugin that utilizes SNMP to convert event viewer to SNMP, but that looked like it would have a licensing cost per host? Is there any way to use WMI to monitor the Setup Event Log? I have the WMI setup with the Nagios Windows WMI hosts wizard that will monitor the Application and System event logs, but those look for event ID levels of critical, info, warning, etc. There doesn't appear to be a way to effectively monitor the Setup event log, as every event appears to be info level. All I would need is to be able to query the Setup event log for event ID 4, which shows that an update requires a reboot.