ianand0204 wrote:
The template is fairly generic so hopefully it will work for everyone.
*NOTE* The screen shot is a little misleading. All values listed in the index are graphed, it just so happens that this screen shot was taken off an idle machine and thus doesn't display much difference in data.
This template was exported from cacti 0.8.6j so you will probably need the same version.[/url]
I'm having trouble importing this jvm_mem.xml.txt file you've attached, I get nothing back from cacti - no response it just uploads the file and returns nothing.
After some more digging I've found that when exporting a data template I don't see OIDs listed but the source xml file has OIDs as part of the template. In the ones coming out of cacti right now I see lots of <hash> tags but can't tell what they reference.
Something else to note here:
Code:
[root@btr-inf-cacti cacti]# snmpwalk -v2c -c public test.host.com 1.3.6.1.4.1.42 | grep -i G1
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.100.1.2.2 = STRING: "G1 Young Generation"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.100.1.2.3 = STRING: "G1 Old Generation"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.110.1.2.2 = STRING: "G1 Eden"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.110.1.2.3 = STRING: "G1 Survivor"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.110.1.2.4 = STRING: "G1 Old Gen"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.110.1.2.5 = STRING: "G1 Perm Gen"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.2.2.2 = STRING: "G1 Young Generation"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.2.2.3 = STRING: "G1 Young Generation"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.2.3.2 = STRING: "G1 Old Generation"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.2.3.3 = STRING: "G1 Old Generation"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.2.3.4 = STRING: "G1 Old Generation"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.2.3.5 = STRING: "G1 Old Generation"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.3.2.2 = STRING: "G1 Eden"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.3.2.3 = STRING: "G1 Survivor"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.3.3.2 = STRING: "G1 Eden"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.3.3.3 = STRING: "G1 Survivor"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.3.3.4 = STRING: "G1 Old Gen"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.2.120.1.3.3.5 = STRING: "G1 Perm Gen"
SNMPv2-SMI::enterprises.42.2.145.3.163.1.1.4.20.1.2.3 = STRING: "-XX:+UseG1GC"
[root@btr-inf-cacti cacti]# snmpwalk -m /usr/share/snmp/mibs/JVM-MANAGEMENT-MIB.txt -v2c -c public test.host.com 1.3.6.1.4.1.42 | grep -i G1
JVM-MANAGEMENT-MIB::jvmMemManagerName.2 = STRING: G1 Young Generation
JVM-MANAGEMENT-MIB::jvmMemManagerName.3 = STRING: G1 Old Generation
JVM-MANAGEMENT-MIB::jvmMemPoolName.2 = STRING: G1 Eden
JVM-MANAGEMENT-MIB::jvmMemPoolName.3 = STRING: G1 Survivor
JVM-MANAGEMENT-MIB::jvmMemPoolName.4 = STRING: G1 Old Gen
JVM-MANAGEMENT-MIB::jvmMemPoolName.5 = STRING: G1 Perm Gen
JVM-MANAGEMENT-MIB::jvmMemMgrRelManagerName.2.2 = STRING: G1 Young Generation
JVM-MANAGEMENT-MIB::jvmMemMgrRelManagerName.2.3 = STRING: G1 Young Generation
JVM-MANAGEMENT-MIB::jvmMemMgrRelManagerName.3.2 = STRING: G1 Old Generation
JVM-MANAGEMENT-MIB::jvmMemMgrRelManagerName.3.3 = STRING: G1 Old Generation
JVM-MANAGEMENT-MIB::jvmMemMgrRelManagerName.3.4 = STRING: G1 Old Generation
JVM-MANAGEMENT-MIB::jvmMemMgrRelManagerName.3.5 = STRING: G1 Old Generation
JVM-MANAGEMENT-MIB::jvmMemMgrRelPoolName.2.2 = STRING: G1 Eden
JVM-MANAGEMENT-MIB::jvmMemMgrRelPoolName.2.3 = STRING: G1 Survivor
JVM-MANAGEMENT-MIB::jvmMemMgrRelPoolName.3.2 = STRING: G1 Eden
JVM-MANAGEMENT-MIB::jvmMemMgrRelPoolName.3.3 = STRING: G1 Survivor
JVM-MANAGEMENT-MIB::jvmMemMgrRelPoolName.3.4 = STRING: G1 Old Gen
JVM-MANAGEMENT-MIB::jvmMemMgrRelPoolName.3.5 = STRING: G1 Perm Gen
JVM-MANAGEMENT-MIB::jvmRTInputArgsItem.3 = STRING: -XX:+UseG1GC
Notice that when I don't pass the
-m /path/JVM-MANAGEMENT-MIB.txt we don't get pretty names for the OIDs, could this be screwing stuff up?
I tried adding this to my snmpd.conf file in cacti
mibs +ALL and I tried
mibs +JVM-MANAGEMENT and a few others, but nothing seems to include this mib by default when running snmpwalk. Thanks in Advance.
edit: ok, so it looks like the file in question was actually a data_query and should be imported that way (as best I can tell) I started following the guide found here: http://forums.cacti.net/about4143.html but am still struggling a little bit to get everything to line up.