<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">We use it with jdk7 openjdk6 or
java6-oracle<br>
<br>
If your java path is not in the path just export it with something
like (do a "locate libjvm.so" to know the path)<br>
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/java<br>
<br>
In Ubuntu/Debian just paste this in /etc/default/collectd<br>
On RHEL I put it in the init script, perhaps /etc/default/collectd
or /etc/sysconfig/collectd can also accept it<br>
<br>
Best regards<br>
<br>
<br>
<br>
Le 08/11/2012 16:52, martin a écrit :<br>
</div>
<blockquote
cite="mid:13ae0b88919.-2706001269883204174.-8216271638192634086@uncommonsense-uk.com"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div style="font-size:10pt;">Hi Poil,
<div><br>
</div>
<div>You were spot on I did this a few days ago and it showed
that libjvm.so was not found i.e. broken. </div>
<div><br>
</div>
<div>The problem was that I was using the Oracle JDK instead of
the OpenJDK installation.</div>
<div><br>
</div>
<div>What I've done is modify my existing tomcat installation
to point to the Oracle JDK and install the Java 1.7 OpenJDK
and let collectd use that.</div>
<div><br>
</div>
<div>Cheers</div>
<div><br>
</div>
<div>-Martin<br>
<div id="">
<div id="__$ehc">
<div id="__$ehc"><span style="font-weight: bold; color:
rgb(50, 205, 50); font-family:
verdana,arial,helvetica,sans-serif;"></span></div>
</div>
</div>
<br>
<div id="1"><br>
---- On Wed, 07 Nov 2012 19:26:56 +0000 <b>Poil<<a
moz-do-not-send="true" href="mailto:poil@quake.fr"
target="_blank">poil@quake.fr</a>></b> wrote ---- <br>
</div>
<br>
<blockquote style="border-left: 1px solid #0000FF;
padding-left: 6px;">
<div bgcolor="#FFFFFF" text="#000000">
<div>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.-466937493<a
href='mailto:1729612541.1027341050332307650@uncommonsense-uk.com'
target='_blank'>1729612541.1027341050332307650@uncommonsense-uk.com</a>"
type="cite">
<div style="font-size:10pt;"><font size="2"
face="courier new, courier, monospace">Hi all,</font>
<div>
<div>
<div><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></fieldset>
<br>
<pre wrap="">_______________________________________________ collectd mailing list <a moz-do-not-send="true" href="mailto:collectd@verplant.org" target="_blank" mailid="collectd%40verplant.org" subj="">collectd@verplant.org</a> <a moz-do-not-send="true" href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a> </pre>
</blockquote>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>