Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
Galipoli
byGalipoli, March 11, 2016
The plugin is good but has some problems which are easy to fix.
I changed line 42 and 58 to
$desc = "$desc" + $healthCheck.Name +","
Without this i only get the Powershell object in output text.
Changed line 40 to
foreach($healthCheck in DegradedHealthChecks) {
and line 56 to
foreach($healthCheck in $OKHealthChecks) {
to get the correct counting of OK and Degraded Checks.
Very Important with this and all other Checks is that you use the 64bit verion of NSClient. Without you get an error that it cant load the needed Powershell commands.
Took me some time to figure this out ...
I changed line 42 and 58 to
$desc = "$desc" + $healthCheck.Name +","
Without this i only get the Powershell object in output text.
Changed line 40 to
foreach($healthCheck in DegradedHealthChecks) {
and line 56 to
foreach($healthCheck in $OKHealthChecks) {
to get the correct counting of OK and Degraded Checks.
Very Important with this and all other Checks is that you use the 64bit verion of NSClient. Without you get an error that it cant load the needed Powershell commands.
Took me some time to figure this out ...