Add Tomcat
You can add Tomcat entities using the Add Entity UI or using the cloud agent command line interface (omcli
) with the appropriate JSON files.
Step 1: Prepare Tomcat for monitoring.
Prerequisites and Credentials |
---|
Tomcat is monitored using JMX. You must configure Tomcat for JMX remote monitoring even if you are using a local agent. Tomcat can be monitored with or without authentication. If a JMX credential is created, then it’s assumed you’re monitoring this entity with credentials. To create a JMX credential for monitoring:
If you have enabled the Tomcat JMX with SSL, you must export the certificate from its keystore and import it in the Cloud Agent keystore. Perform the following steps:
|
Step 2: Decide how you want to add the Tomcat.
You can add Tomcat entities using one of two ways:
- Add them from UI
- Use the agent's
omcli add_entity
command with the appropriate JSON files
Adding Entities from the UI
- From the Management Cloud main menu, select Administration, Discovery, and then Add Entity. The Add Entity page displays.
- Select the Tomcat Entity Type.
- Enter the following UI properties.
Tomcat UI Fields - Discover Using Credentials: Discover Tomcat using Tomcat credentials (on by default).
- Entity Name: Name of this entity displayed in the Oracle Management Cloud console.
- Host Name: The fully-qualified host name where the Tomcat entity is installed.
- JMX Port Number: The JMX port used by the Tomcat entity.
- Cloud Agent: The cloud agent monitoring the host where Tomcat is installed.
Monitoring Credentials
- JMX Username: The Tomcat user name.
- JMX Password: The Tomcat user name password.
See Add Entities from the Console for detailed instructions on using the Add Entity UI.
Using omcli
and the Appropriate JSON Files
- Download and extract the required JSON file(s) from the master JSON zip file. See the table below for the specific JSON files you'll need.
- Edit the file(s) and specify the requisite properties shown below.
Tomcat JSON Files and Properties Definition File: omc_tomcat_secure_sample.json
- name: Your Tomcat name.
- displayName: Name displayed in the Oracle Infrastructure Monitoring User Interface.
- timezoneRegion: Time zone of your entity. It is recommended that you use the long values IANA-maintained TZ database time zones. For example: America/New_York
- host_name: Under “value”, provide the fully-qualified Tomcat host name where the Tomcat entity is installed.
- jmx_port: Under “value”, provide the JMX port used by the Tomcat entity.
Credential Files
omc_tomcat_secure_creds.json
- jmx_username: Under “value”, within the square brackets, provide the Tomcat user name. Leave this field blank and still include the credential JSON file for credential-less discovery. Do not remove the square brackets.
- jmx_password: Under “value”, within the square brackets, provide the Tomcat user name password. Leave this field blank and still include the credential JSON file for credential-less discovery.
omc_tomcat_secureSSL_creds.json
- ssl_trust_store: Under “value”, within the square brackets, provide the full path to the Cloud Agent truststore, AgentTrust.jks. For example, <agent base directory>/sysman/config/montrust/AgentTrust.jks
- ssl_trust_store_password: Under “value”, within the square brackets, provide the Cloud Agent truststore password, the default is "welcome".
Do not remove the square brackets.
Note:
To add a Tomcat entity that does not require credentials, simply add the entity without any credentials. And, if you do not provide any credentials, make sure input JSON file also does not contain any references to credentials.To add a Tomcat entity without credentials, you will still need to provide the credentials file (omc_tomcat_secure_creds.json) but keep the
jmx_username
value blank, as shown in the following example.{ "credentials": [{ "id": "TomcatCredsNormal", "name": "tomcat_creds", "credType": "TomcatCreds ", "properties": [{ "name": "jmx_username", "value": "CLEAR[]" }, { "name": "jmx_password", "value": "CLEAR[]" }] }] }
Note:
Beginning with Oracle Management Cloud 1.30, Tomcat discovery will always use the Agent Trust Store. User-provided SSL Trust Store will no longer be accepted. - Add the entity using
omcli
.omcli add_entity agent DEFINITION_FILE [-credential_file CREDENTIAL_FILE [-encryption_method_gpg]]
- Verify the status of the newly added entity.
omcli status_entity agent DEFINITION_FILE
See step 4. Adding Entities to Your Service of Add Entities Using JSON Files for more information.
Step 3: (Optional but recommended) Set up alerts.
To enable lights-out monitoring, you can set up alert rules to generate alerts and send notifications if your entities have performance issues.
See Set Up Alert Rules and Set Up Alert Thresholds and Notifications.Troubleshooting
If you run into any issues regarding discovery or monitoring of Tomcat, see the following: