Home Directory Plugins Clustering and High-Availability Check Failover Cluster Storage

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check Failover Cluster Storage

Rating
0 votes
Favoured:
0
Current Version
2.0
Last Release Date
2017-01-30
License
GPL
Hits
9605
Files:
FileDescription
check_cfs_storage.shcheck_cfs_storage.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check Failover Cluster Storage
Plugin to check your Failover Cluster without installing any Scripts on your Windows Server.
Plugin to check your Failover Cluster without installing any Scripts on your Windows Server.
Make sure that you have NSclient++ installed and add this to nsclient.ini:

[/modules]
CheckWMI=1

To test this plugin run from the Line and just add the Host:

./check_cfs_storage.sh -H 192.168.1.1

Default thresholds are 80% of warning and 90% for critical you can overrun them with -w 90 -c 95 arguments

Change default value for pluginlocation="/usr/lib64/nagios/plugins" wherever you have installed the nagios plugins.

This Plugin was tested with Icinga2 on CentOS7

Command definition in commands.conf:

object CheckCommand "check_cluster" {
import "plugin-check-command"
command = [ PluginDir + "/check_cfs_storage.sh" ]
arguments = {
"-H" = "$address$"
"-w" = "$cfs.warn$"
"-c" = "$cfs.crit$"
}
}

service.conf:

apply Service "ClusterStorage" {
import "generic-service"
check_command = "check_cluster"
assign where host.name == "cluster"
//vars.cfs.warn = "90" //optional
//vars.cfs.crit = "95"
}

Thats it. Since I am not a pro on programming, feel free to use this script and develop it.

If you have not named your clusterstorage like something with "Cluster" in it, you have to adjust the script.
Otherwise it should work and tells. Only problem is, that you have rounded numbers for example, we have 10,8TB storage but plugin shows only 10TB for total storage. Well it's bash, and as I said, you can change if you want.
Let me know your thoughts in comment section or send mail.

Updateinfo:

Made the Script a little bit smaller. Also made a better Output where it shows exactly how much Space you have for example: 10.82 TB

https://exchange.nagios.org/components/com_mtree/img/listings/m/2495.png