Hello,
I want to monitor a JVM server using SNMP, so I have added the
following opts to the JVM:
JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.snmp.interface=164.0.0.5
-Dcom.sun.management.snmp.port=1161
-Dcom.sun.management.snmp.acl=false"
And I've tested it, e.g:
# snmpget -v2c -c public 164.0.0.5:1161 jvmOSName.0
JVM-MANAGEMENT-MIB::jvmOSName.0 = STRING: Linux
or the equivalent:
# snmpget -v2c -c public 164.0.0.5:1161 .1.3.6.1.4.1.42.2.145.3.163.1.1.6.1.0
JVM-MANAGEMENT-MIB::jvmOSName.0 = STRING: Linux
The main snmpd is using the same IP:
# netstat -anup | grep 161
udp 0 0 164.0.0.5:161 0.0.0.0:* 30851/snmpd
udp 0 0 127.0.0.1:161 0.0.0.0:* 30851/snmpd
udp6 0 0 164.0.0.5:1161 :::* 8165/java
I need to proxy the JVM specific OID in the snmpd.conf file, so following
the advice in snmpd.examples I'm using:
proxy -v2c -c public udp:164.0.0.5:1161 .1.3.6.1.4.1.42.2.145.3.163.1.1
However, it's not working:
# snmpget -v2c -c public 164.0.0.5 .1.3.6.1.4.1.42.2.145.3.163.1.1.6.1.0
JVM-MANAGEMENT-MIB::jvmOSName.0 = No Such Object available on this agent at this OID
What am I doing wrong?
--
Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56
Attachment:
signature.asc
Description: Digital signature