Page 1 of 1

Windows cluster storage service monitor

Posted: Mon Sep 10, 2018 12:26 pm
by ankashyap
Hello - We need help on "Check Failover Cluster Storage"

Enabled the plugin as per https://exchange.nagios.org/directory/P ... ge/details on Nagios XI server. This Plugin was tested with Icinga2 on CentOS7 as per the URL, can you confirm this will work on Windows platform?

NSclient++ was installed and added the below string to nsclient.ini on Windows server nodes & tried to enable “Check Failover Cluster Storage” monitoring using a plugin, getting SSL handshake error while executing the command check_cfs_storage.sh -H“ from Nagios XI to Windows cluster node.

[/modules]
CheckWMI=1

Below is the error for your reference :

./check_cfs_storage.sh: line 96: CHECK_NRPE: (ssl_err != 5) Error - Could not complete SSL handshake with 10.160.136.128: 1 / 100 * 90: syntax error in expression (error token is ": (ssl_err != 5) Error - Could not complete SSL handshake with 10.160.136.128: 1 / 100 * 90")
./check_cfs_storage.sh: line 97: CHECK_NRPE: (ssl_err != 5) Error - Could not complete SSL handshake with 10.160.136.128: 1 / 100 * 95: syntax error in expression (error token is ": (ssl_err != 5) Error - Could not complete SSL handshake with 10.160.136.128: 1 / 100 * 95")

Re: Windows cluster storage service monitor

Posted: Mon Sep 10, 2018 2:43 pm
by npolovenko
@ankashyap, I assume you already replaced the plugin location path in the check_cfs_storage.sh:
pluginlocation="/usr/local/nagios/libexec/"
I'm attaching a working nsclient.ini config file with all the right settings included. Just add the nagios XI IP address to the allowed_hosts and change the password from "welcome" to whatever your current password is.
Replace the existing ini file with mine and restart the nslcient++ service from the windows services menu.

Re: Windows cluster storage service monitor

Posted: Wed Sep 12, 2018 10:54 am
by ankashyap
Thanks for your reply. I replaced the nsclient.ini config file provided by you, however, we are seeing the below error. Any inputs to fix it please..

./check_cfs_storage.sh -H 192.X.X.X STATUS UNKNOWN - No Cluster found

Re: Windows cluster storage service monitor

Posted: Wed Sep 12, 2018 1:30 pm
by npolovenko
@ankashyap, This looks like the plugin can actually connect to the NSClient but it's not able to find a cluster.

Have you changed the plugin location in the script?
pluginlocation="/usr/lib64/nagios/plugins"
Can you run the following queries from the Nagios server and show me the output? But make sure to replace the IP address with the windows servers IP address.
/usr/local/nagios/libexec/check_nrpe -c check_wmi -H 192.X.X.X -a "query=select FreeSpace from win32_volume where caption LIKE '%Cluster%'"

/usr/local/nagios/libexec/check_nrpe -c check_wmi -H 192.X.X.X -a "query=select capacity from win32_volume where caption LIKE '%Cluster%'"

Re: Windows cluster storage service monitor

Posted: Thu Sep 13, 2018 4:56 pm
by ankashyap
Yes, we updated the plugin location in check_cfs_storage.sh

Please find the output :

[root@ohcinxnagiosxi1 libexec]# ./check_nrpe -c check_wmi -H 192.X.X.X -a "query=select FreeSpace from win32_volume where caption LIKE '%Cluster%'"
CHECK_NRPE: No output returned from daemon.
[root@ohcinxnagiosxi1 libexec]# ./check_nrpe -c check_wmi -H 192.X.X.X -a "query=select capacity from win32_volume where caption LIKE '%Cluster%'"
CHECK_NRPE: No output returned from daemon.
[root@ohcinxnagiosxi1 libexec]#

Re: Windows cluster storage service monitor

Posted: Fri Sep 14, 2018 10:26 am
by npolovenko
@ankashyap, This particular plugin may have an outdated query.

Please show me the output of the following query. Are you able to see the info on your cluster storage?
./check_nrpe -c check_wmi -H 192.X.X.X -a "query=select Name, FreeSpace, Capacity, Caption, Drivetype from win32_volume"

Re: Windows cluster storage service monitor

Posted: Fri Sep 14, 2018 10:40 am
by ankashyap
Please find the output

./check_nrpe -c check_wmi -H 192.X.X.X -a "query=select Name, FreeSpace, Capacity, Caption, Drivetype from win32_volume"
93089427456, D:\, 3, 46861422592, D:\, 53687087104, C:\, 3, 6262321152, C:\

Re: Windows cluster storage service monitor

Posted: Fri Sep 14, 2018 11:25 am
by npolovenko
@ankashyap, Looks like the person who developed this plugin called his cluster storage "Cluster...". Here's from the description of the plugin:
If you have not named your clusterstorage like something with "Cluster" in it, you have to adjust the script.
So if the drive caption does not contain the word "Cluster" this whole plugin won't work.

Have you considered using the generic check_drivesize command with the NSClient?
https://support.nagios.com/kb/article/d ... s-770.html