Skip to content

Files

Latest commit

2c9fda8 · May 18, 2022

History

History
This branch is 295 commits behind zabbix/community-templates:main.

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 18, 2022
May 18, 2022

Number of Windows Updates available for installation

Overview

The template monitors the number of available updates for installation.
To get data about updates, the template calls a custom script zbx.winupdate.vbs. The script and a detailed description of the template connection are located in this repository.

Author

Roman Rynkovich

Macros used

Name Description Default Type
{$ZCONF}

Absolute path to zabbix_agentd.conf

`` Text macro
{$ZSENDER}

Absolute path to zabbix_sender.exe

`` Text macro

Template links

There are no template links in this template.

Discovery rules

There are no discovery rules in this template.

Items collected

Name Description Type Key and additional info
WU - WinupdatesCheckLast

Launch windows update check script

Zabbix agent system.run[c:\zabbix\plugins\zbx.winupdate.vbs "{$ZSENDER}" "{$ZCONF}",nowait]

Update: 4h

WU - All

All available Windows updates

Zabbix trapper zbx.winupdate.vbs.all
WU - Critical

Critical Windows updates

Zabbix trapper zbx.winupdate.vbs.critical
WU - Definition

Definition Windows updates

Zabbix trapper zbx.winupdate.vbs.definition
WU - Security

Security Windows updates

Zabbix trapper zbx.winupdate.vbs.security
WU - ServicePacks

ServicePacks Windows updates

Zabbix trapper zbx.winupdate.vbs.servicepacks
WU - UpdateRollUps

UpdateRollUps Windows updates

Zabbix trapper zbx.winupdate.vbs.updaterollups
WU - WSUS availability

WSUS server availability

Zabbix trapper zbx.winupdate.vbs.wsusavailability
WU reboot - Required now

Is reboot required: 1 - true, 0 - false.

Zabbix trapper zbx.winupdate.vbs.rebootrequired
WUz - DateTime

Return last check Date and Time

Zabbix trapper zbx.winupdate.vbs.datetime
WUz - Startup

Windows Update service startup mode: 0 - automatic, 1 - automatic delayed, 2 - manual, 3 - disabled, 4 - unknown, 5 - automatic trigger start, 6 - automatic delayed trigger start, 7 - manual trigger start

Zabbix trapper zbx.winupdate.vbs.all

Triggers

Name Description Expression Priority
Detected manual startup state of Windows Updates Service on {HOST.NAME}

Expression: {windows_updates_vbscript:service.info[wuauserv,startup].last()}=2

Recovery expression:

info
Windows Updates Service startup state is "unknown" on {HOST.NAME}

Expression: {windows_updates_vbscript:service.info[wuauserv,startup].last()}=4

Recovery expression:

warning
Windows Updates Service was been disabled on {HOST.NAME}

Expression: {windows_updates_vbscript:service.info[wuauserv,startup].last()}=3

Recovery expression:

warning
Unable to get full list of Windows updates for {HOST.NAME} Perhaps WSUS server is unavailable

Expression: {windows_updates_vbscript:zbx.winupdate.wsusavailability.last()}=0

Recovery expression:

warning
There are many Windows updates for {HOST.NAME}

Expression: {windows_updates_vbscript:zbx.winupdate.all.last()}>10

Recovery expression:

average
There are many critical Windows updates for {HOST.NAME}

Expression: {windows_updates_vbscript:zbx.winupdate.critical.last()}>5

Recovery expression:

average
There are many security Windows updates for {HOST.NAME}

Expression: {windows_updates_vbscript:zbx.winupdate.security.last()}>5

Recovery expression:

average
Reboot required to finish installing Windows updates for {HOST.NAME}

Expression: {windows_updates_vbscript:zbx.winupdate.rebootrequired.last()}<>0

Recovery expression:

average