Instead of parsing the output from nodetool (running nodetool is quite intensive) maybe you could have a java program that would monitor via JMX (org.apache.cassandra.net.FailureDetector).
You have less burden compared to running periodically nodetool and more control on the things that you could do.
On fre, 2018-10-26 at 09:15 -0400, Saha, Sushanta K wrote:I have script that parses "nodetool status" output and emails alerts if any node is down. So, when I stop cassandra on a node for maintenance, all nodes stats emailing alarms.
Any way to temporarily make the node under maintenance invisible from "nodetool status" output?
Sushanta Saha|MTS IV-Cslt-Sys Engrg|WebIaaS_DB Group|HQ -
O 770.797.1260 C 770.714.6555 Iaas Support Line 949-286-8810