Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Plugin to check your Failover Cluster without installing any Scripts on your Windows Server.
Current Version
2.0
Last Release Date
2017-01-30
Owner
Christian Kirsten
License
GPL
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
http://localhost/components/com_mtree/img/listings/m/2495.png
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!