incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Bailey <n...@datastax.com>
Subject Re: Issues with JMX monitoring -- v0.8.7
Date Tue, 22 Nov 2011 17:47:07 GMT
The StorageServiceMBean is only created once some reads/writes
actually go to that node. Do a couple reads/writes from the CLI and
you should see the MBean afterwards.

This also means your monitoring application should handle this error
in the case of nodes restarting.

On Tue, Nov 22, 2011 at 7:51 AM, David McNelis
<dmcnelis@agentisenergy.com> wrote:
> 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