plugins for nsclient (nagios monitoring)
nsclient is a free daemon to monitor Windows Server from nagios through nrpe, as many others usages.
The key is that nsclient allow then PowerShell, vbscript & co to be executed on Windows and then report result to nagios/centreon.
Powershell Policy should be set to Remotesigned or you will have to sign all scripts: Set-ExecutionPolicy RemoteSigned
They should be added as wrapped scripts in nsclient.ini:
[/settings/external scripts]
allow arguments = true
allow nasty characters = true
script path =
timeout = 60
[/settings/external scripts/wrapped scripts]
check_updates=check_updates.vbs
check_ad_account=lotp_check_ad_accounts.ps1
check_hyper-v=lotp_check_hyper-v.ps1
check_sharepoint=lotp_check_sharepoint.ps1
check_certificate=lotp_check_certificate.ps1 -checkMyStore
check_time=lotp_check_time.ps1 -refTimeServer
check_multiping=lotp_check_multiping.ps1 -targets
check_windows_updates=check_windows_updates.ps1
check_tcp_port=lotp_check_tcp_port.ps1 -Target