Details
-
Improvement
-
Resolution: Won't Fix
-
Minor
-
None
-
None
-
None
-
None
Description
Java allows for snmp monitoring. There are no ports or temperatures, but there are some interesting applications metricks, like heap size, classes loaded, threads and so on. Currently observium states that there is "no reply" from the snmp agent. A simple walk tells nothing:
snmpwalk -v1 -c public java-server:1161
|
but, if you use the MIB and the correct OID, this is what we get:
snmpwalk -v1 -c public java-server:1161 -m JVM-MANAGEMENT-MIB -M /etc/mrtg/mib/:/usr/share/snmp/mibs/ .1.3.6.1.4.1.42.2.145.3.163.1.1
|
|
...
|
JVM-MANAGEMENT-MIB::jvmThreadCount.0 = Gauge32: 105
|
JVM-MANAGEMENT-MIB::jvmThreadDaemonCount.0 = Gauge32: 71
|
JVM-MANAGEMENT-MIB::jvmThreadPeakCount.0 = Counter32: 139
|
JVM-MANAGEMENT-MIB::jvmThreadContentionMonitoring.0 = INTEGER: disabled(4)
|
...
|
http://docs.oracle.com/javase/7/docs/jre/api/management/JVM-MANAGEMENT-MIB.mib