Skip to content

Gathers the node status based on a computergroup, and outputs into html format + nagios check

Notifications You must be signed in to change notification settings

sjors101/wsus_report.ps1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

wsus_report.ps1

Gathers the node status based on a computergroup, and outputs into html format + nagios check

Instructions:

  • Match the ComputerGroup with the computergroup name you configured in the WSUS GUI.
  • Make sure the application can write the output file to the requested location.

Example:

Run without Nagios output

.\wsus_report.ps1 -ComputerGroup 'Production' -OutputFile 'C:\output.html'

Run with Nagios output

.\wsus_report.ps1 -ComputerGroup 'Production' -OutputFile 'C:\output.html' -Nagios True

NRPE config:

Add these lines to NRPE:

; POWERSHELL WRAPPING -
ps1 = cmd /c echo scripts\\%SCRIPT% %ARGS%; exit($lastexitcode) | powershell.exe -command -

[/settings/external scripts/wrapped scripts]
wsus_report = wsus_report.ps1 $ARG1$ $ARG2$ $ARG3$

About

Gathers the node status based on a computergroup, and outputs into html format + nagios check

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published