How can I enable the JVM-built-in SNMP for EAP 6 instances?
Issue
-
Documentation on what I'm trying to achieve can be found here. I have tried adding the required parameters to the system properties in the end of
$JBOSS_HOME/bin/standalone.conf
like this.JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.snmp.acl.file=/path/to/snmp.acl" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.snmp.acl=true" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.snmp.port=1161" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.snmp.interface=0.0.0.0"
However, EAP failed to start by printing the following stacktrace in the standard error.
WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager") at org.jboss.logmanager.Logger.getLogger(Logger.java:61) at org.jboss.as.server.Main.main(Main.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.jboss.modules.Module.run(Module.java:270) at org.jboss.modules.Main.main(Main.java:294)
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.