I'm trying to monitor and graph how much memory is being used on a JVM memory pool. I've been able to enable SNMP for the JVM instance, query it, and create the necessary data queries, data template, etc. But when I go to create the graphs they show up as NaN.
In the cacti.log I see
07/28/2006 12:50:04 PM - CMDPHP: Poller[0] Host[29] DS[492] SNMP: v2: my-system, dsname: jvmMemPoolUsed, oid: .1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.11.1, output: 2641728
So it is getting the correct information and returning a value, but for some reason it is not being graphed. I checked all the values in the rrd and they are all NaN.
The .xml file I'm using is
<interface>
<name>Get jvmMemPoolTable Information</name>
<description>Get SNMP based JVM Memory Pool Table Information</description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110</oid_index>
<fields>
<jvmMemPoolName>
<name>Memory Pool Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.2</oid>
</jvmMemPoolName>
<jvmMemPoolType>
<name>Memory Pool Type</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.3</oid>
</jvmMemPoolType>
<jvmMemPoolUsed>
<name>Memory Pool Used</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.11</oid>
</jvmMemPoolUsed>
</fields>
</interface>
Any suggestion on things to check would be appreciated.
Thanks,
Len
JVM / SNMP and NaN graphs
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please check http://forums.cacti.net/viewtopic.php?t=15136 for debugging this
Reinhard
Reinhard
This can be enabled in every JDK version 1.5 (aka 5.0) or greater:
http://java.sun.com/j2se/1.5.0/docs/gui ... /SNMP.html
http://java.sun.com/j2se/1.5.0/docs/gui ... /SNMP.html
Who is online
Users browsing this forum: No registered users and 3 guests