FQDNLookup false
Interval 300

LoadPlugin logfile

<Plugin logfile>
        LogLevel "info"
        File "/var/log/collectd.log"
        Timestamp true
</Plugin>

LoadPlugin java
LoadPlugin ping
LoadPlugin perl

<Plugin java>
       JVMArg "-verbose:jni"
       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 "localhost"
      ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:9010/jmxrmi"
      Collect "memory_pool"
    </Connection>
  </Plugin>
</Plugin>

<Plugin ping>
        Host 8.8.8.8
</Plugin>

<Plugin perl>
        IncludeDir "/usr/share/"
        BaseName "collectd::plugins"
        LoadPlugin "WriteFile"
</Plugin>
