[collectd] GenericJMX replace whitespace
Poil
poil at own-you.com
Fri Jul 6 11:11:36 CEST 2012
Hi,
I'm trying to replace whitespace in PluginInstance on Plugin GenericJMX
Example : "GenericJMX-memory_pool-Code Cache" must be "GenericJMX-memory_pool-Code_Cache"
So I've tried this but this is doing nothing.
########################################"
LoadPlugin java
LoadPlugin "target_replace"
<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">
# Memory usage by memory pool.
<MBean "memory_pool">
ObjectName "java.lang:type=MemoryPool,*"
InstancePrefix "memory_pool-"
InstanceFrom "name"
<Value>
Type "memory"
#InstancePrefix ""
#InstanceFrom ""
Table true
Attribute "Usage"
</Value>
</MBean>
<Connection>
Host "doc01t"
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:8086/jmxrmi"
Collect "memory_pool"
</Connection>
</Plugin>
</Plugin>
<Chain "PreCache">
<Rule "strip_space">
<Match "regex">
Plugin "GenericJMX"
</Match>
<Target "replace">
PluginInstance " " "_"
</Target>
</Rule>
</Chain>
########################################"
In logfile I've got only this which is speaking about replace
[2012-07-06 11:07:48] type = java
[2012-07-06 11:07:48] type = target_replace
[2012-07-06 11:07:48] fc_register_target (replace);
[2012-07-06 11:07:48] type = target_replace
[2012-07-06 11:07:48] fc_register_target (replace);
Note : I'm using network plugin and there is no rules on the target server
Any help ? :)
Best regards,
More information about the collectd
mailing list