JVM / SNMP and NaN graphs

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
lrsmith
Posts: 16
Joined: Thu Jun 29, 2006 9:15 am

JVM / SNMP and NaN graphs

Post by lrsmith »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please check http://forums.cacti.net/viewtopic.php?t=15136 for debugging this
Reinhard
sboisson
Posts: 1
Joined: Mon Aug 21, 2006 10:37 am

Post by sboisson »

How did you enabled SNMP for the JVM?
jeperon
Posts: 1
Joined: Wed Sep 27, 2006 10:25 am

Post by jeperon »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests