Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_cassandra_balance.pl (Advanced Nagios Plugins Collection) Popular
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
744168
Part of the Advanced Nagios Plugins Collection.
Download it here:
https://github.com/harisekhon/nagios-plugins
check_cassandra_balance.pl
Nagios Plugin to check the balance of ownership of tokens across nodes
Uses nodetool's status command to find token % across all nodes and alerts if the largest difference is greater than warning/critical thresholds. Returns perfdata of the max imbalance % for graphing.
Can specify a remote host and port otherwise it checks the local node's stats (for calling over NRPE on each Cassandra node)
Written and tested against Cassandra 2.0, DataStax Community Edition
usage: check_cassandra_balance.pl [ options ]
-n --nodetool Path to 'nodetool' command if not in $PATH (/bin:/usr/bin)
-H --host Cassandra node to connect to (optional, default: localhost)
-P --port Cassandra JMX port to connect to (default: 7199)
-u --user Cassandra JMX User (optional)
-p --password Cassandra JMX Password (optional)
-w --warning Warning threshold max (inclusive. Default: 5)
-c --critical Critical threshold max (inclusive. Default: 10)
-h --help Print description and usage options
-t --timeout Timeout in secs (default: 10)
-v --verbose Verbose mode (-v, -vv, -vvv ...)
-V --version Print version and exit
Download it here:
https://github.com/harisekhon/nagios-plugins
check_cassandra_balance.pl
Nagios Plugin to check the balance of ownership of tokens across nodes
Uses nodetool's status command to find token % across all nodes and alerts if the largest difference is greater than warning/critical thresholds. Returns perfdata of the max imbalance % for graphing.
Can specify a remote host and port otherwise it checks the local node's stats (for calling over NRPE on each Cassandra node)
Written and tested against Cassandra 2.0, DataStax Community Edition
usage: check_cassandra_balance.pl [ options ]
-n --nodetool Path to 'nodetool' command if not in $PATH (/bin:/usr/bin)
-H --host Cassandra node to connect to (optional, default: localhost)
-P --port Cassandra JMX port to connect to (default: 7199)
-u --user Cassandra JMX User (optional)
-p --password Cassandra JMX Password (optional)
-w --warning Warning threshold max (inclusive. Default: 5)
-c --critical Critical threshold max (inclusive. Default: 10)
-h --help Print description and usage options
-t --timeout Timeout in secs (default: 10)
-v --verbose Verbose mode (-v, -vv, -vvv ...)
-V --version Print version and exit
Reviews (0)
Be the first to review this listing!