O
O
Osklizg2016-11-18 17:30:35
linux
Osklizg, 2016-11-18 17:30:35

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

1 answer(s)
L
lukashin, 2016-11-25
@Osklizg

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

# cat /path/glassfish/config/snmp-jvm.conf; file permissions 600; requests are only allowed from 192.168.1.1
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 question

Ask a Question

731 491 924 answers to any question