Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_cassandra_netstats.pl examples for all options pls #385

Open
johnfelipe opened this issue Jun 11, 2022 · 2 comments
Open

check_cassandra_netstats.pl examples for all options pls #385

johnfelipe opened this issue Jun 11, 2022 · 2 comments

Comments

@johnfelipe
Copy link

root@ubuntu20dockers:~/Dockerfiles/nagios-plugins-cassandra# docker run harisekhon/nagios-plugins check_cassandra_netstats.pl --user
Option user requires an argument
Hari Sekhon - https://github.com/harisekhon/nagios-plugins

check_cassandra_netstats.pl

Nagios Plugin to fetch Cassandra's netstats per node by parsing 'nodetool netstats'.

Checks Pending commands and responses against warning/critical thresholds.

Can specify a remote host and port otherwise it checks the local node's stats (for calling over NRPE on each Cassandra node)

Tested on Cassandra 1.2, 2.0, 2.1, 2.2, 3.0, 3.5, 3.6, 3.7, 3.9, 3.10, 3.11

usage: check_cassandra_netstats.pl [ options ]

-n  --nodetool    Path to 'nodetool' command if not in $PATH (/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/local/cassandra/bin:/opt/cassandra/bin:/cassandra/bin)
-H  --host        Cassandra node         ($CASSANDRA_HOST, $HOST)
-P  --port        Cassandra JMX port     ($CASSANDRA_PORT, $PORT, default: 7199)
-u  --user        Cassandra JMX user     (optional, $CASSANDRA_USERNAME, $CASSANDRA_USER, $USERNAME, $USER)
-p  --password    Cassandra JMX password (optional, $CASSANDRA_PASSWORD, $PASSWORD)
-w  --warning     Warning  threshold or ran:ge (inclusive, default: 5)
-c  --critical    Critical threshold or ran:ge (inclusive, default: 10)
-t  --timeout     Timeout in secs ($TIMEOUT, default: 10)
-v  --verbose     Verbose level ($VERBOSE=<int>, or use multiple -v, -vv, -vvv)
-h  --help        Print description and usage options
-V  --version     Print version and exit

@HariSekhon
Copy link
Owner

It's pretty much the same as all other nagios plugins, just give the --user switch a username argument, or leave it out, depending on whether you have auth configured.

@johnfelipe
Copy link
Author

johnfelipe commented Sep 10, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants