Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Nimble Storage Hardware Pool Disk Space API Check Script
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
The script is written in Python 2.7, check the shebang line at the start of the file to ensure the path to your interpreter is correct.
The script monitors the chosen pool, typically this will be the "default" pool, but you can specify to monitor different pools if you have them on your array.
Example usage:
./check_nimble_space_api.py -e https://array.domain.co.uk:5392 -u username -p password -w warningthreshold -c criticalthreshold -q poolname
The warning and critical thresholds should be given as integers of unit TB. And the pool name as the pool name as it appears in the Nimble Storage GUI or CLI, typically this is "default".
Within NagiosXI configuration you can use the -e as an argument and enter the URL as written, NagiosXI appears to deal with the escapes correctly.
You may need to put the password in single quotes (if it contains weird characters).
There is a debug mode, add "-d" to the end of the command string for more detailed output for troubleshooting operation of the script, this is best run from the command line of the NagiosXI server.
# Version History
# 1.0 - 20/01/2020 - First Release
# 1.1 - 20/01/2020 - Feature Added - Added the performance monitoring statistics for Free space, so NagiosXI can graph these metrics overtime.
# 1.2 - 02/02/2020 - Feature Added - Added the performance monitoring for all the ouputs, so NagiosXI can graph these metrics overtime; thanks to "42bios" for the suggestion and code.
Reviews (1)
i comment out line 156 and added the following line at 157, so all values can be used as perfdata:
strCheckOutputPerfData = "| used="+str(intPoolUsageTB)+"TB; capacity="+str(intPoolCapacityTB)+"TB; free="+str(intPoolFreeSpaceTB)+"TB; CompRatio="+str(fltPoolCompRatio)+"X; SavingRatio="+str(fltPoolSavingsRatio)+"X"
strCheckOutputPerfData = "| used="+str(intPoolUsageTB)+"TB; capacity="+str(intPoolCapacityTB)+"TB; free="+str(intPoolFreeSpaceTB)+"TB; CompRatio="+str(fltPoolCompRatio)+"X; SavingRatio="+str(fltPoolSavingsRatio)+"X"