[collectd] Issue with Java plugin and custom data
Tribolet Luc
luc.tribolet at atos.net
Mon Aug 1 16:15:14 CEST 2011
Hi,
I've been playing with collectd since two weeks. I have one server and one client. On my client I have a Java application with Jetty which I can grab some data from my server. But there is one thing I can't manage to get is my own data.
I made a very simple MBean class in my app which provide me the number of refresh of my index page.
On my server I configured my java plugin like this :
<Plugin "java">
# required JVM argument is the classpath
# JVMArg "-Djava.class.path=/installpath/collectd/share/collectd/java"
# Since version 4.8.4 (commit c983405) the API and GenericJMX plugin are
# provided as .jar files.
JVMARG "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar:/usr/share/collectd/java/generic-jmx.jar"
LoadPlugin "org.collectd.java.GenericJMX"
<Plugin "GenericJMX">
################
# MBean blocks #
################
# MBean perso compteur de refresh
<MBean "counter_refresh">
ObjectName "com.example.newapp.jmx:type=Count"
<Value>
Type "counter"
Table false
Attribute "Count"
</Value>
</MBean>
#####################
# Connection blocks #
#####################
<Connection>
ServiceURL "service:jmx:rmi:///jndi/rmi://10.24.68.113:8005/jmxrmi"
Host "10.24.68.113"
Collect "counter_refresh"
</Connection>
</Plugin>
</Plugin>
I can see from the jconsole my class and the value of the attribute without any problems but collectd can't grab the data so far.
So I was wondering what should I do to be able to see my data ?
Thank you,
Regards,
Luc
________________________________
Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? d'Atos ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20110801/d3ce83c4/attachment.htm>
More information about the collectd
mailing list