cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McNelis <dmcne...@agentisenergy.com>
Subject Issues with JMX monitoring -- v0.8.7
Date Tue, 22 Nov 2011 13:51:30 GMT
Good morning,

I'm trying to set up a simple monitoring application (that is a plugin to
Nagios), code can be found here:
https://github.com/so-net-developer/Cassandra/blob/master/nagios/CheckNode.java

However, when I try to run the CheckNode.java program I get an error that:
Exception in thread "main" javax.management.InstanceNotFoundException:
org.apache.cassandra.service:type=StorageService

According to the docs on Cassandra and JMX this should be a valid Instance
to create.  I've tried running this from both on the cassandra node and
remotely, with no difference in outcome.

I don't know if it matters, but these are the domains listed as available
when I make a JMX getDomains call:
org.apache.cassandra.internal
JMImplementation
com.sun.management
org.apache.cassandra.request
org.apache.cassandra.net
java.lang
java.util.logging
org.apache.cassandra.db

Because I get a  response when iterating over
MBeanServerConection.getDomains():

JMXConnector connector = JMXConnectorFactory.connect(new
JMXServiceURL(JMXURL));
MBeanServerConnection connection = connector.getMBeanServerConnection();

for(String d : connection.getDomains())
     System.out.println(d);

I am disinclined to think its an issue with not being able to connect to
JMX in general.

-- 
*David McNelis*
Lead Software Engineer
Agentis Energy
www.agentisenergy.com
c: 219.384.5143

*A Smart Grid technology company focused on helping consumers of energy
control an often under-managed resource.*

Mime
View raw message