<div dir="ltr">Hi,<div>I was thinking to use collectd notifications for JVM metrics, e.g. for monitoring committed heap.</div><div>JVM heap metrics are nicely gathered, and even I can see GenericJMX plugin threshold matching in logs, but Notification is never made.</div>
<div>Notifications for other plugins(df, etc) work nicely.<br></div><div><br></div><div>Would someone know if this suppose to work?<br></div><div><br></div><div>Here is my java plugin configuration:<br></div><div><Plugin "java"><br>
</div><div><div> JVMARG "-Djava.class.path=/blahblah/generic-jmx.jar"</div><div> LoadPlugin "org.collectd.java.GenericJMX"</div><div> <Plugin "GenericJMX"></div><div> <MBean "memory"></div>
<div> ObjectName "java.lang:type=Memory"</div><div> <Value><br></div><div> Type "jmx_memory"</div><div> Table true<br></div><div> Attribute "HeapMemoryUsage"</div>
<div> </Value></div><div> </MBean></div><div> <Connection></div></div><div><div> Host "xxxxxxxxxx"</div><div> ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:6666/jmxrmi"</div>
<div> Collect "memory"</div><div> </Connection></div><div> </Plugin></div><div></Plugin></div></div><div><div><br></div></div><div>My threshold definition:</div><div><div><Plugin "GenericJMX"></div>
<div> <Type jmx_memory><br></div><div> Instance committed</div><div> WarningMin 10</div><div> </Type></div><div></Plugin></div></div><div><br></div><div><div><br class="">
Log:</div><div>Check the last line -it appears only if value is out of range in other plugins.<br></div><div>So it *should* work also for this java plugin.</div><div><div><br></div><div><div>[2013-08-07 12:36:51] rrdtool plugin: rrd_cache_insert: file = /opt/openinfinity/2.0.0/healthmonitoring/collectd/var/lib/collectd/rrd/ip-10-99-97-26/GenericJMX/jmx_memory-committed.rrd;</div>
<div> values_num = 1; age = 0.000;</div><div>[2013-08-07 12:36:51] plugin: plugin_write: Writing values via threshold.</div><div>[2013-08-07 12:36:51] ut_check_threshold: Found matching threshold(s)</div></div></div></div>
</div>