Windows cluster storage service monitor

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ankashyap
Posts: 5
Joined: Mon Sep 10, 2018 12:17 pm

Windows cluster storage service monitor

Post 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")
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Windows cluster storage service monitor

Post 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.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ankashyap
Posts: 5
Joined: Mon Sep 10, 2018 12:17 pm

Re: Windows cluster storage service monitor

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Windows cluster storage service monitor

Post 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%'"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ankashyap
Posts: 5
Joined: Mon Sep 10, 2018 12:17 pm

Re: Windows cluster storage service monitor

Post 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]#
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Windows cluster storage service monitor

Post 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"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ankashyap
Posts: 5
Joined: Mon Sep 10, 2018 12:17 pm

Re: Windows cluster storage service monitor

Post 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:\
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Windows cluster storage service monitor

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked