Nagios-Plugins
Nagios-Plugins copied to clipboard
check_cassandra_netstats.pl examples for all options pls
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
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.
Pls guide me with markdown or video, for more clear...
El vie, 9 de sep. de 2022, 1:17 p. m., Hari Sekhon @.***> escribió:
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.
— Reply to this email directly, view it on GitHub https://github.com/HariSekhon/Nagios-Plugins/issues/385#issuecomment-1242318267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADIWFCQ7X6FDB2IX3ULOOTV5N5NNANCNFSM5YPPYQGQ . You are receiving this because you authored the thread.Message ID: @.***>