While trying to add a cassandra monitor, why am i getting "Unable to connect to the host / port" error message?

While trying to add a cassandra monitor, why am i getting "Unable to connect to the host / port" error message?

Solution:
  • Check if the host name is correct.
  • Check if the port number given is the JMX port number. We need JMX port number and not Cassandra DB port number for monitoring. The JMX port number will be available in cassandra-env.sh file.
  • if cassandra is running in authenticated mode, then enable "Is Authentication required" and give correct username and password.