windows updates - dont get it working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
marnix
Posts: 7
Joined: Wed Jul 20, 2016 8:44 am

windows updates - dont get it working

Post by marnix »

hey guys

system:
ubuntu server
nagios core 4
nsclient 0.4.4.19

i want to monitor the windows updates from some windows servers.
i did it with this guide here:
i edited folliwing parts:
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

Nagios gives me this error now:
The file "C:NSClientscriptscheck_windows_updates.ps1" cannot be loaded
Whats the problem here? How can i fix that?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: windows updates - dont get it working

Post by rkennedy »

The file "C:NSClientscriptscheck_windows_updates.ps1" cannot be loaded
Are you able to run the script manually on the windows machine?
Former Nagios Employee
Locked