Add Oracle HTTP Server
You can add Oracle HTTP Server entities using the Add Entity UI or using the cloud agent command line interface (omcli
) with the appropriate JSON files.
Step 1: Prepare Oracle HTTP Server for monitoring.
Prerequisites |
---|
OHS 12 : Node Manager credentials are required. Also, the following prerequisites must be met:
|
Step 2: Decide how you want to add the Oracle HTTP Server.
You can add Oracle HTTP Server 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 Oracle HTTP Server Entity Type.
- Enter the following UI properties.
Oracle HTTP Server (OHS) UI Fields - Entity Name: Name of your Oracl HTTP Server.
- Host Name: Host Name of the Oracle HTTP Server
- Oracle Home: Absolute path of the Oracle Home.
- Instance Home(11g) / Domain Home: Absolute pathe of the Instance Home (11g)/Absolute pathe of the Domain Home (12c and later)
- Component Name: Oracle HTTP Server component name.
- Version: Oracle HTTP Server installed version.
- Configuration Path: httpd:conf file directory path.
- Listen Port: Port of the Oracle HTTP Server.
- Protocol: Protocol used to connect to the Oracle HTTP Server. (HTTP/HTTPS)
- Cloud Agent: Cloud agent monitoring the hoste where Oracle HTTP Server is installed.
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.
Oracle HTTP Server (OHS) Files and Properties Definition File: omc_oracle_apache_sample.json
- host_name: Host Name of the Oracle HTTP Server
- port: Port of the Oracle HTTP Server
- ohs_home: Absolute path of the Instance Home (11g)/ Absolute Path of the Domain Home (12c)
- component_name: Component Name
- protocol: Protocol for connecting to the Oracle HTTP Server
- config_path: httpd.conf file directory path - file name not to be appended.
- oracle_home: Absolute path of the Oracle Home
- version: Version of OHS installed.
Credential Files
omc_oracle_apache_sample_creds_ohs12.json
Use this credential JSON file if you are running OHS 12
- nm_user_name: Node Manager username
- nm_password: Node Manager password
omc_oracle_apache_sample_creds_ohs11.json
Use this credential JSON file if you are running OHS 11 (optional)
- HostUserName: Host username
- HostPassword: Host password
- 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 Oracle HTTP Server, see the following: