Page created: 26 Jul 2021
|
Page updated: 14 Jan 2022
| 1 min read
9.0 Product PingDirectory Directory Capability Product documentation Content Type Administration User task Monitoring and Management IT Administrator Administrator Audience Software Deployment Method System Administrator
Set up JConsole to monitor the Directory Server using a remote process.
-
Start the Directory Server.
$ bin/start-server
-
Enable the Java Management Extensions (JMX) Connection handler
usingdsconfig with the
set-connection-handler-prop option.
Note:
The handler is disabled by default.
Include the LDAP connection parameters, such as host name, port, bindDN, and bindPassword.
$ bin/dsconfig set-connection-handler-prop \ --handler-name "JMX Connection Handler" --set enabled:true
-
Assign privileges to a regular user account with the ldapmodify
tool.
Warning:
Do not use a root user account, as using a root user account would be a security risk.
This example grants
jmx-read
,jmx-write
, andjmx-notify
privileges to the user.$ bin/ldapmodify --hostname server1.example.com --port 1389 \ --bindDN "cn=Directory Manager" --bindPassword secret dn: uid=admin,dc=example,dc=com changetype: modify replace: ds-privilege-name ds-privilege-name: jmx-read ds-privilege-name: jmx-write ds-privilege-name: jmx-notify
-
In the Java Monitoring & Administrative Console, click
Remote Process, and enter the following JMX URL using the
host and port of your Directory Server.
service:jmx:rmi:///jndi/rmi://<host>:<port>/com.unboundid.directory.server.protocols.jmx.client-unknown
-
In the Username and Password fields,
enter the bind distinguished name (DN) and password for a user that has at least the
jmx-read
privilege. - Click Connect.
- Click com.unboundid.directory.server, and expand the rootDSE node and the cn-monitor sub-node.
- Select a monitoring entry.