Applications Systems

SAM Windows Update Monitoring template updated to support Windows Server 2019 and resolve "Days passed from last Windows update" component monitor failure

This SAM template was updated in August 2019 to support Windows Server 2008 — 2019. This version resolves an issue that occurred when running on Windows Server 2019 -- a zero was returned for the number of days since the last Windows update.

First published date

8/13/2019 9:09 PM

Last published date

4/8/2025 10:06 PM

Overview

The SAM Windows Update Monitoring template was updated to support Windows Server 2019 and resolve the following error for the "Days passed from last Windows update" component:
Test failed with Unknown status

Product section

Server Application Monitor

Cause

PowerShell commands in the template did not support Windows Server 2019. The "Days passed from last Windows update" component monitor failed.

Each application monitor template contains one or more component monitors that gather performance data and evaluate it against a set of thresholds and/or other criteria. If a component monitor (in this case, Days passed from last Windows update) breaches a threshold, fails to respond, or otherwise fails to satisfy criteria, its status changes from OK to Warning/Critical/Down/etc. and the parent application monitor's status changes from OK to Warning/Critical/Down/etc.

Resolution

PowerShell commands for component monitors were updated to support Windows Server 2019.

Download the updated template from the SolarWinds online IT community, THWACK. See Windows Update Monitoring.

Note: With the exception of AppInsight templates, SAM templates are not updated automatically when you upgrade SAM, to avoid overwriting custom changes that may have been made to existing templates. Download the latest versions from THWACK instead. 

Please note that Thwack is a community space where users may post any content as a suggestion or recommendations to you for your internal use. The information set forth herein may come from third-party websites or customers. SolarWinds is not liable for any downtime or any issue that may occur if you perform the following suggestions on the link provided. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.