<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;'><font face="courier new, courier, monospace" size="2">Hi all,</font><div id=""><div id="__$ehc"><div id="__$ehc"><font face="courier new, courier, monospace" size="2"><span style="font-weight: bold; color: rgb(50, 205, 50); "></span></font></div></div></div><div><font face="courier new, courier, monospace" size="2"><br></font></div><div><font face="courier new, courier, monospace" size="2">I wonder if someone can help me I'm migrating from jmxtrans to collectd-java/genericjmx, I've configured it as follows but I'm getting a "Found a configuration for the `java' plugin, but the plugin isn't loaded or didn't register a configuration callback." error</font></div><div><font face="courier new, courier, monospace" size="2"><br></font></div><div><font face="courier new, courier, monospace" size="2">---Start Here</font></div><div><div><font face="courier new, courier, monospace" size="2"># cat collectd5.conf</font></div><div><font face="courier new, courier, monospace" size="2">BaseDir "/var/lib/collectd5"</font></div><div><font face="courier new, courier, monospace" size="2">PIDFile "/var/run/collectd5.pid"</font></div><div><font face="courier new, courier, monospace" size="2">LoadPlugin syslog</font></div><div><font face="courier new, courier, monospace" size="2">LoadPlugin cpu</font></div><div><font face="courier new, courier, monospace" size="2">LoadPlugin interface</font></div><div><font face="courier new, courier, monospace" size="2">LoadPlugin load</font></div><div><font face="courier new, courier, monospace" size="2">LoadPlugin memory</font></div><div><font face="courier new, courier, monospace" size="2">Include "/etc/collectd5.d/*.conf"</font></div><div><font face="courier new, courier, monospace" size="2"><br></font></div><div><font face="courier new, courier, monospace" size="2"># cat collectd5.d/graphite.conf </font></div><div><font face="courier new, courier, monospace" size="2">LoadPlugin write_graphite</font></div><div><font face="courier new, courier, monospace" size="2"><br></font></div><div><font face="courier new, courier, monospace" size="2"><Plugin write_graphite></font></div><div><font face="courier new, courier, monospace" size="2"> <Carbon></font></div><div><font face="courier new, courier, monospace" size="2"> Host "myhost1"</font></div><div><font face="courier new, courier, monospace" size="2"> Port "2003"</font></div><div><font face="courier new, courier, monospace" size="2"> Prefix "collectd."</font></div><div><font face="courier new, courier, monospace" size="2"> StoreRates false</font></div><div><font face="courier new, courier, monospace" size="2"> AlwaysAppendDS false</font></div><div><font face="courier new, courier, monospace" size="2"> EscapeCharacter "_"</font></div><div><font face="courier new, courier, monospace" size="2"> </Carbon></font></div><div><font face="courier new, courier, monospace" size="2"></Plugin></font></div><div><font face="courier new, courier, monospace" size="2"><br></font></div><div><font face="courier new, courier, monospace" size="2"># cat collectd5.d/genericjmx.conf </font></div><div><font face="courier new, courier, monospace" size="2">LoadPlugin java</font></div><div><font face="courier new, courier, monospace" size="2"><br></font></div><div><font face="courier new, courier, monospace" size="2"><Plugin "java"></font></div><div><font face="courier new, courier, monospace" size="2"> JVMARG "-Djava.class.path=/usr/share/collectd/java"</font></div><div><font face="courier new, courier, monospace" size="2"> LoadPlugin "org.collectd.java.GenericJMX"</font></div><div><font face="courier new, courier, monospace" size="2"> <Plugin "GenericJMX"></font></div><div><font face="courier new, courier, monospace" size="2"> <MBean "memory_pool"></font></div><div><font face="courier new, courier, monospace" size="2"> ObjectName "java.lang:type=MemoryPool,*"</font></div><div><font face="courier new, courier, monospace" size="2"> InstancePrefix "memory_pool-"</font></div><div><font face="courier new, courier, monospace" size="2"> InstanceFrom "name"</font></div><div><font face="courier new, courier, monospace" size="2"> <Value></font></div><div><font face="courier new, courier, monospace" size="2"> Type "memory"</font></div><div><font face="courier new, courier, monospace" size="2"> #InstancePrefix ""</font></div><div><font face="courier new, courier, monospace" size="2"> #InstanceFrom ""</font></div><div><font face="courier new, courier, monospace" size="2"> Table true</font></div><div><font face="courier new, courier, monospace" size="2"> Attribute "Usage"</font></div><div><font face="courier new, courier, monospace" size="2"> </Value></font></div><div><font face="courier new, courier, monospace" size="2"> </MBean></font></div><div><font face="courier new, courier, monospace" size="2"> <Connection></font></div><div><font face="courier new, courier, monospace" size="2"> ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:8686/jmxrmi"</font></div><div><font face="courier new, courier, monospace" size="2"> Host "vmapp1"</font></div><div><font face="courier new, courier, monospace" size="2"> Collect "memory_pool"</font></div><div><font face="courier new, courier, monospace" size="2"> </Connection></font></div><div><font face="courier new, courier, monospace" size="2"> </Plugin></font></div><div><font face="courier new, courier, monospace" size="2"></Plugin></font></div></div><div><font face="courier new, courier, monospace" size="2">--end here</font></div><div><font face="courier new, courier, monospace" size="2"><br></font></div><div><font face="courier new, courier, monospace" size="2">I've got collectd-java and multiple versions of java installed i.e.</font></div><div><font face="courier new, courier, monospace" size="2"><br></font></div><div><font face="courier new, courier, monospace"># rpm -ql collectd-java</font></div><div><font face="courier new, courier, monospace">/usr/lib64/collectd/java.so</font></div><div><font face="courier new, courier, monospace">/usr/share/collectd/java</font></div><div><font face="courier new, courier, monospace">/usr/share/collectd/java/collectd-api.jar</font></div><div><font face="courier new, courier, monospace">/usr/share/collectd/java/generic-jmx.jar</font></div><div><font face="courier new, courier, monospace">/usr/share/man/man5/collectd-java.5.gz</font></div><div><font face="courier new, courier, monospace"># rpm -qa | grep -i -e java -e jre -e jdk</font></div><div><font face="courier new, courier, monospace">collectd-java-5.1.0-1.el6.x86_64</font></div><div><font face="courier new, courier, monospace">java-1.7.0-openjdk-1.7.0.3-2.1.el6.7.x86_64</font></div><div><font face="courier new, courier, monospace">java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64</font></div><div><font face="courier new, courier, monospace">jre-1.7.0_07-fcs.x86_64</font></div><div><font face="courier new, courier, monospace">java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64</font></div><div><font face="courier new, courier, monospace">gcc-java-4.4.6-3.el6.x86_64</font></div><div><font face="courier new, courier, monospace">jdk-1.7.0_07-fcs.x86_64</font></div><div><br></div><div><font face="courier new, courier, monospace">but I get the following errors:</font></div><div><div><font face="courier new, courier, monospace">Nov 1 17:33:14 ip-10-39-3-223 collectd[20610]: collectd: Stopping 5 read threads.</font></div><div><font face="courier new, courier, monospace">Nov 1 17:33:14 ip-10-39-3-223 collectd[20809]: Found a configuration for the `java' plugin, but the plugin isn't loaded or didn't register a configuration callback.</font></div><div><font face="courier new, courier, monospace">Nov 1 17:33:14 ip-10-39-3-223 collectd[20809]: Found a configuration for the `java' plugin, but the plugin isn't loaded or didn't register a configuration callback.</font></div><div><font face="courier new, courier, monospace">Nov 1 17:33:14 ip-10-39-3-223 collectd[20809]: There is a `Plugin' block within the configuration for the java plugin. The plugin either only expects "simple" configuration statements or wasn't loaded using `LoadPlugin'. Please check your configuration.</font></div><div><font face="courier new, courier, monospace">Nov 1 17:33:14 ip-10-39-3-223 collectd[20810]: Initialization complete, entering read-loop.</font></div></div><div><font face="courier new, courier, monospace"><br></font></div><div><div><font face="courier new, courier, monospace"># collectd5 -t</font></div><div><font face="courier new, courier, monospace">Could not find plugin java.</font></div><div><font face="courier new, courier, monospace"># collectd5 -T</font></div><div><font face="courier new, courier, monospace">Could not find plugin java.</font></div></div><div><font face="courier new, courier, monospace"><br></font></div><div><font face="courier new, courier, monospace">Can anyone help me fix this?</font></div><div><font face="courier new, courier, monospace"><br></font></div><div><font face="courier new, courier, monospace">-Martin</font></div></div></body></html>