[collectd] Java plugin - Cannot find the API class "org.collectd.api.Collectd"

Dan Scott danieljamesscott at gmail.com
Wed Sep 18 15:38:16 CEST 2013


I'm running collectd 5.04 on AWS:


I'm trying to get the java plugin working to monitor tomcat. I have a
config file as follows:

LoadPlugin java

<Plugin "java">

        LoadPlugin "org.collectd.java.GenericJMX"
        <Plugin "GenericJMX">
# Heap memory usage
<MBean "memory-heap">
  ObjectName "java.lang:type=Memory"
  InstancePrefix "memory-heap"
    Type "jmx_memory"
    Table true
    Attribute "HeapMemoryUsage"

      Host "localhost"
      ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:17264/jmxrmi"
      Collect "memory_pool"

The log file says: Cannot find the API class "org.collectd.api.Collectd".
Please set the correct class path using 'JVMArg "-Djava.class.path=..."'

But as you can see, I already have this line added. The jar files exist and
contain the correct classes:

[root at localhost ~]# rpm -ql collectd-java

Can anyone help?


Dan Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20130918/2ed8ff89/attachment-0001.html>

More information about the collectd mailing list