このコンテンツは選択した言語では利用できません。
30.2. Enabling the Agent to Connect to Secured JMX Servers
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=5222 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/jmxremote.access
Note
The agent generally reads the connection credentials from the jmx-console-*.properties
file in the JbossASInstallDir/server/default/conf/props/
directory.
jmx-console-users.properties
file, so there is no way for the agent to get the credentials.
- Open the
jmx-console-*.properties
file for editing. For example:[root@server ~]# vim JbossASInstallDir/server/default/conf/props/jmx-console-users.properties
- Uncomment or add a line for the admin user.
admin=admin
By default, the agent uses the jmx-console-*.properties
file for a username, not the access files. It is possible to change the connection settings for the resource so that the agent uses the access files, going through the remote endpoint, which were specified in the JMX server's command line.
- Click the Inventory tab in the top menu.
- Search for the JMX server in the Servers area of the Inventory, or open the JBoss EAP instance and navigate through its children to find the JMX server instance.
- On the JMX server's entry page, open the Inventory tab, and select the Connection Settings subtab.
- Enter the user name and password to set in the JMX remote access files.
- Click thebutton.
JBoss ON can connect to the parent resource, and then use that to connect to the JMX server, rather than connecting through the remoting endpoint. This does not require using any user credentials, since the parent can connect to the child resource using internal authentication.
- Click the Inventory tab in the top menu.
- Search for the JMX server in the Servers area of the Inventory, or open the JBoss EAP instance and navigate through its children to find the JMX server instance.
- On the JMX server's entry page, open the Inventory tab, and select the Connection Settings subtab.
- Unset all of the connection properties except for the Type property.
- For the Type property, select the Parent value.
- Click thebutton.