If you are trying to enable JAVA plugin on Ubuntu platform and facing issues the following is something you can try to fix it.
Since JAVA plug-in is not enabled by default, collectd need to be compiled from the code.
Download the source code and configure collectd with the following options
1
|
|
Note: JAVA_HOME is something like /usr/lib/jvm/java-1.7.0-openjdk-amd64. Also without the option “force” for enable-java, configure will fail
- Once configure is complete, compile and install collectd
1
|
|
collectd gets installed by default under /opt/collectd in Ubuntu
- Start collectd using the following command assuming that the PWD is /opt/collectd/sbin
1
|
|
Verify that collectd is running using “ps” command. If it is not running check the syslog by default located at /var/log/syslog.
If there are no entries in syslog try starting the collectd process in the foreground which will write any errors on the console
1
|
|
Have fun with collectd and JMX stats collection!!