I'm using snmp to monitore some servers (win2k3 mostly) and during my journey on internet, I found a MIB done by Oracle for monitoring a JVM, JVM-MANAGEMENT-MIB. What I did so far to use it is :
- Configure the JVM with snmp.acl and management.properties
- Compile the JVM-MANAGEMENT-MIB with mibcc and replace the mib.bin.
With those steps, I think I'm good to try. So I made a java program with snmp4j and when I try to call an OID from the JVM mib, I have got an error Request timed out
.
The weird part is, I only compile the JVM-MANAGEMENT-MIB so I should have access to only those OIDs, right ? But it's not the case, I still have access to cpu usage, number of process...
So what did I miss ? Thanks
Add the following three parameters to the JVM and it should be all you need.
Well and you do not need to write a java program to verify if it works. net-snmp or some MIB browser is enough.