Home Directory Plugins Hardware Storage Systems SAN and NAS Nimble Storage Replication Health API Check Script

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

Nimble Storage Replication Health API Check Script

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2020-01-17
Compatible With
  • Nagios XI
License
GPL
Hits
907
Files:
FileDescription
check_nimble_repl_api.pycheck_nimble_repl_api.py
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
The script utilises the Nimble Storage API to monitor the state of any lagged volumes, i.e. replicas that are still in a copying state. The user can specify when a lagged volume breaches a specific threshold in seconds to generate an error. Its normal for there to be a small amount of lag when the replication occurs, so you set it to a threshold after which you care. For example if a volume collection normally replicates within about 60 minutes (3600 seconds), then set the threshold for 3600, that way if it goes over that you'll know. The script uses the Nimble Storage API, so setting it to check every 30 minutes is normally sufficient.

The script makes use of the Nimble Storage API, it is recommended to create a read-only account on the Nimble Storage array(s), this can be AD/LDAP or local.

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.

Example usage:

./check_nimble_repl_api.py -e https://array.domain.co.uk:5392 -u username -p password -c theshold(in seconds)

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.