Skip to content

Powershell Script for NSClient++ to monitor WSUS Health and implement as Nagios Check

License

Notifications You must be signed in to change notification settings

svenkuegler/check_wsus_health

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Check WSUS Health Script for NSClient++ and Nagios

Add the PowerShell script to NSClient++

Modify nsclient.ini file, to declare the external scripts. It is imperative to store it in the "scripts" directory of the NSClient++ installation folder.

Here is the line of code to include:

[/settings/external scripts/scripts]
check_wsus_health = cmd /c echo scripts\check_wsus_health.ps1; exit($lastexitcode) | powershell.exe -command -

Please be sure that CheckExternalScripts=enabled

Add the Check to Nagios

Command Template

define command{
        command_name    check_wsus_health
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c check_wsus_health
        }

Service Check

define service{
        use                     generic-service
        host_name               wsusserver
        service_description     WSUS Healthcheck
        check_command           check_wsus_health
        }

About

Powershell Script for NSClient++ to monitor WSUS Health and implement as Nagios Check

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages