Answer the question
In order to leave comments, you need to log in
How to setup snmp for jvm?
You need to set up JVM monitoring for Cacti via the SNMP protocol
I realized that you need to create snmp.acl and edit management.properties that are in /usr/lib/jvm/jdk1.8.0_71/jre/lib/management
I did everything according to the instructions of oracle docs.oracle .com/javase/7/docs/technotes/guides/man... (not the fact that I didn't mess up)
The problem is that port 162 is not open for communication via SNMP. (also not a fact)
I can’t figure out how to open this port or how to properly configure management.properties and snmp.acl
Answer the question
In order to leave comments, you need to log in
With regard to glassfish, I do this:
create-jvm-options -Dcom.sun.management.snmp.port=1161
create-jvm-options -Dcom.sun.management.snmp.acl.file=/path/glassfish/config/snmp-jvm.conf
create-jvm-options -Dcom.sun.management.snmp.interface=0.0.0.0
acl = {
{
communities = public, private
access = read-only
managers = localhost,192.168.1.1
}
}
# Traps are sent to localhost only
trap = {
{
trap-community = public
hosts = localhost,192.168.1.1
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question