<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
what's this command return ?<br>
<br>
ldd /var/lib64/collectd/java.so<br>
<br>
Best regards, <br>
Le 01/11/2012 18:35, martin a écrit :<br>
</div>
<blockquote
cite="mid:13abd0abe51.-4669374931729612541.1027341050332307650@uncommonsense-uk.com"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div style="font-size:10pt;"><font size="2" face="courier new,
courier, monospace">Hi all,</font>
<div id="">
<div id="__$ehc">
<div id="__$ehc"><font size="2" face="courier new, courier,
monospace"><span style="font-weight: bold; color:
rgb(50, 205, 50); "></span></font></div>
</div>
</div>
<div><font size="2" face="courier new, courier, monospace"><br>
</font></div>
<div><font size="2" face="courier new, courier, monospace">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 size="2" face="courier new, courier, monospace"><br>
</font></div>
<div><font size="2" face="courier new, courier, monospace">---Start
Here</font></div>
<div>
<div><font size="2" face="courier new, courier, monospace">#
cat collectd5.conf</font></div>
<div><font size="2" face="courier new, courier, monospace">BaseDir
"/var/lib/collectd5"</font></div>
<div><font size="2" face="courier new, courier, monospace">PIDFile
"/var/run/collectd5.pid"</font></div>
<div><font size="2" face="courier new, courier, monospace">LoadPlugin
syslog</font></div>
<div><font size="2" face="courier new, courier, monospace">LoadPlugin
cpu</font></div>
<div><font size="2" face="courier new, courier, monospace">LoadPlugin
interface</font></div>
<div><font size="2" face="courier new, courier, monospace">LoadPlugin
load</font></div>
<div><font size="2" face="courier new, courier, monospace">LoadPlugin
memory</font></div>
<div><font size="2" face="courier new, courier, monospace">Include
"/etc/collectd5.d/*.conf"</font></div>
<div><font size="2" face="courier new, courier, monospace"><br>
</font></div>
<div><font size="2" face="courier new, courier, monospace">#
cat collectd5.d/graphite.conf </font></div>
<div><font size="2" face="courier new, courier, monospace">LoadPlugin
write_graphite</font></div>
<div><font size="2" face="courier new, courier, monospace"><br>
</font></div>
<div><font size="2" face="courier new, courier, monospace"><Plugin
write_graphite></font></div>
<div><font size="2" face="courier new, courier, monospace">
<Carbon></font></div>
<div><font size="2" face="courier new, courier, monospace">
Host "myhost1"</font></div>
<div><font size="2" face="courier new, courier, monospace">
Port "2003"</font></div>
<div><font size="2" face="courier new, courier, monospace">
Prefix "collectd."</font></div>
<div><font size="2" face="courier new, courier, monospace">
StoreRates false</font></div>
<div><font size="2" face="courier new, courier, monospace">
AlwaysAppendDS false</font></div>
<div><font size="2" face="courier new, courier, monospace">
EscapeCharacter "_"</font></div>
<div><font size="2" face="courier new, courier, monospace">
</Carbon></font></div>
<div><font size="2" face="courier new, courier, monospace"></Plugin></font></div>
<div><font size="2" face="courier new, courier, monospace"><br>
</font></div>
<div><font size="2" face="courier new, courier, monospace">#
cat collectd5.d/genericjmx.conf </font></div>
<div><font size="2" face="courier new, courier, monospace">LoadPlugin
java</font></div>
<div><font size="2" face="courier new, courier, monospace"><br>
</font></div>
<div><font size="2" face="courier new, courier, monospace"><Plugin
"java"></font></div>
<div><font size="2" face="courier new, courier, monospace">
JVMARG "-Djava.class.path=/usr/share/collectd/java"</font></div>
<div><font size="2" face="courier new, courier, monospace">
LoadPlugin "org.collectd.java.GenericJMX"</font></div>
<div><font size="2" face="courier new, courier, monospace">
<Plugin "GenericJMX"></font></div>
<div><font size="2" face="courier new, courier, monospace">
<MBean "memory_pool"></font></div>
<div><font size="2" face="courier new, courier, monospace">
ObjectName "java.lang:type=MemoryPool,*"</font></div>
<div><font size="2" face="courier new, courier, monospace">
InstancePrefix "memory_pool-"</font></div>
<div><font size="2" face="courier new, courier, monospace">
InstanceFrom "name"</font></div>
<div><font size="2" face="courier new, courier, monospace">
<Value></font></div>
<div><font size="2" face="courier new, courier, monospace">
Type "memory"</font></div>
<div><font size="2" face="courier new, courier, monospace">
#InstancePrefix ""</font></div>
<div><font size="2" face="courier new, courier, monospace">
#InstanceFrom ""</font></div>
<div><font size="2" face="courier new, courier, monospace">
Table true</font></div>
<div><font size="2" face="courier new, courier, monospace">
Attribute "Usage"</font></div>
<div><font size="2" face="courier new, courier, monospace">
</Value></font></div>
<div><font size="2" face="courier new, courier, monospace">
</MBean></font></div>
<div><font size="2" face="courier new, courier, monospace">
<Connection></font></div>
<div><font size="2" face="courier new, courier, monospace">
ServiceURL
"service:jmx:rmi:///jndi/rmi://localhost:8686/jmxrmi"</font></div>
<div><font size="2" face="courier new, courier, monospace">
Host "vmapp1"</font></div>
<div><font size="2" face="courier new, courier, monospace">
Collect "memory_pool"</font></div>
<div><font size="2" face="courier new, courier, monospace">
</Connection></font></div>
<div><font size="2" face="courier new, courier, monospace">
</Plugin></font></div>
<div><font size="2" face="courier new, courier, monospace"></Plugin></font></div>
</div>
<div><font size="2" face="courier new, courier, monospace">--end
here</font></div>
<div><font size="2" face="courier new, courier, monospace"><br>
</font></div>
<div><font size="2" face="courier new, courier, monospace">I've
got collectd-java and multiple versions of java installed
i.e.</font></div>
<div><font size="2" face="courier new, courier, monospace"><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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
collectd mailing list
<a class="moz-txt-link-abbreviated" href="mailto:collectd@verplant.org">collectd@verplant.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.verplant.org/listinfo/collectd">http://mailman.verplant.org/listinfo/collectd</a>
</pre>
</blockquote>
<br>
</body>
</html>