Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
Blue17
byBlue17, October 9, 2014
For those who have NSClient 0.4.1 +
1) Place check_windows_updates.ps1 in NSclient "scripts" folder
Copy these lines in nsclient.ini :
[/settings/external scripts/scripts]
check_updates = cmd /c echo scripts\check_windows_updates.ps1; exit($LastExitCode) | powershell.exe -command -
2) In nagios put your command line like this :
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_updates
Hope this could help someone.
1) Place check_windows_updates.ps1 in NSclient "scripts" folder
Copy these lines in nsclient.ini :
[/settings/external scripts/scripts]
check_updates = cmd /c echo scripts\check_windows_updates.ps1; exit($LastExitCode) | powershell.exe -command -
2) In nagios put your command line like this :
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_updates
Hope this could help someone.