CHECK_WINDOWS_UPDATES - NRPE ERROR
Posted: Wed May 15, 2019 3:39 pm
Hi Everyone,
I set up a plugin I found on Nagios Exchange called, "Check Windows Updates using Powershell" (link below) on my Nagios Core 4 server.
It is working for all but one of my 28 Windows 2016/2008 R2 servers and I can't figure out why. I set it up exactly the same way as all the other servers. I'm hoping someone here can give help.
Here is the link to the plugin https://exchange.nagios.org/directory/P ... ll/details
I have attached the script, as well as the nsclient.ini file. Any help would be greatly appreciated. Thanks!
Here is the result of running the following command:
[root@nagioscore objects]# /usr/local/nagios/libexec/check_nrpe -H 10.0.0.xxx -c check_updates
Missing expression after unary operator '-'.
At line:1 char:2
+ -j <<<< oin $htReplace.Keys
$htReplace[$args[0].value] U$htReplace[$args[0].value] p$htReplace[$args[0].value] d$htReplace[$args[0].value] a$htReplace[$args[0].value] t$htReplace[$args[0].value] e$htReplace[$args[0].value] s$htReplace[$args[0].value] :$htReplace[$args[0].value] $htReplace[$args[0].value] 6$htReplace[$args[0].value] $htReplace[$args[0].value] c$htReplace[$args[0].value] r$htReplace[$args[0].value] i$htReplace[$args[0].value] t$htReplace[$args[0].value] i$htReplace[$args[0].value] c$htReplace[$args[0].value] a$htReplace[$args[0].value] l$htReplace[$args[0].value] ,$htReplace[$args[0].value] $htReplace[$args[0].value] 2$htReplace[$args[0].value] 5$htReplace[$args[0].value] $htReplace[$args[0].value] o$htReplace[$args[0].value] p$htReplace[$args[0].value] t$htReplace[$args[0].value] i$htReplace[$args[0].value] o$htReplace[$args[0].value] n$htReplace[$args[0].$htRe] a$htReplace[$args[0].value] l$htReplace[$args[0].value]
I set up a plugin I found on Nagios Exchange called, "Check Windows Updates using Powershell" (link below) on my Nagios Core 4 server.
It is working for all but one of my 28 Windows 2016/2008 R2 servers and I can't figure out why. I set it up exactly the same way as all the other servers. I'm hoping someone here can give help.
Here is the link to the plugin https://exchange.nagios.org/directory/P ... ll/details
I have attached the script, as well as the nsclient.ini file. Any help would be greatly appreciated. Thanks!
Here is the result of running the following command:
[root@nagioscore objects]# /usr/local/nagios/libexec/check_nrpe -H 10.0.0.xxx -c check_updates
Missing expression after unary operator '-'.
At line:1 char:2
+ -j <<<< oin $htReplace.Keys
$htReplace[$args[0].value] U$htReplace[$args[0].value] p$htReplace[$args[0].value] d$htReplace[$args[0].value] a$htReplace[$args[0].value] t$htReplace[$args[0].value] e$htReplace[$args[0].value] s$htReplace[$args[0].value] :$htReplace[$args[0].value] $htReplace[$args[0].value] 6$htReplace[$args[0].value] $htReplace[$args[0].value] c$htReplace[$args[0].value] r$htReplace[$args[0].value] i$htReplace[$args[0].value] t$htReplace[$args[0].value] i$htReplace[$args[0].value] c$htReplace[$args[0].value] a$htReplace[$args[0].value] l$htReplace[$args[0].value] ,$htReplace[$args[0].value] $htReplace[$args[0].value] 2$htReplace[$args[0].value] 5$htReplace[$args[0].value] $htReplace[$args[0].value] o$htReplace[$args[0].value] p$htReplace[$args[0].value] t$htReplace[$args[0].value] i$htReplace[$args[0].value] o$htReplace[$args[0].value] n$htReplace[$args[0].$htRe] a$htReplace[$args[0].value] l$htReplace[$args[0].value]