Configuring SAP HANA direct connection setup


After you have installed the PATROL for SAP HANA, you must configure a monitoring policy.

You can use the information in this topic to configure SAP HANA Direct connection setup monitoring policy with the TrueSight console.

This topic includes the following information:

To configure the monitor type

In the Add Monitoring Configuration panel, select the following parameters for the SAP HANA KM:

Parameter

Selection

Monitoring Solution

SAP HANA

Monitor Profile

SAP HANA

Monitor Type

SAP HANA Direct connection setup

You see the option to configure environment configuration and global monitoring setting. In the Global monitoring setting, you can select the Logging check box to enable logging for all of the configured PATROL Agent environments to confirm that all of the PATROL for SAP HANA environments are correctly configured.

To add an environment configuration

Click Add and enter the Environment Configuration details.

Field

Description

Environment name

Enter a unique environment name for monitoring the SAP HANA database. A container is created with this environment name that holds all the TrueSight instances.

Note

  • The name cannot include blank spaces or any of the following special characters: # $ \ ' | ~ ! @ % ^ ; ` ( ) { } ? \ " [ ] + = & : > < * /
  • Do not use non-English characters.
  • When you save the environment configuration, you cannot change the name without losing the environment's historical data. You can change the environment name by making a copy of the monitoring solution and then you can change the environment name.

The remaining environment details are in the following sections:

Direct instance connection details

Click Add and enter the direct instance connection details.

Field

Description

Host

Enter the host name or IP address of the monitored SAP HANA database. The value must not contain any of the following characters: '#|~@%^;`(){}?\\"[]+=\&><*/

Connection method

Specify the connection method:

  • Instance number
  • Instance port

SAP HANA index server SQL port uses 3XX15 and 3XX13.

Instance number or port

Enter the SAP HANA database instance number or SQL port to monitor.


Custom SQL Query details

Click Add and enter the custom SQL query details

Custom SQL Query

Query name

Enter a SQL query name.

Note

The name cannot include blank spaces or any of the following special characters: # $ \ ' | ~ ! @ % ^ ; ` ( ) { } ? \ " [ ] + = & : > < * /
After you save the environment configuration, you cannot change the name without losing the environment's historical data. You can change the environment name by making a copy of the monitoring solution and then changing the environment name.

SQL query

Enter the SQL query. Do not end the query with a semi-colon (;).

Collection time (min)

Specify the collection time interval in minutes. Default value is 10 minutes.

Enable number of records annotation

Select this check box to display the query result as an annotation on the number of records metric.

SAP HANA connection details

Field

Description

JDBC driver location

Enter the path of the JDBC driver file. For more details about installing the JDBC driver, see Connect to SAP HANA via JDBC.

For example: /home/ptest/JDBC_Driver/ngdbc.jar

Credentials

User name

Enter the user name to access the SAP HANA database.

Password
Confirm password

Enter the password to connect to the SAP HANA database.

Secure communication details

Connect using SSL

Select the check box to connect to SAP HANA database by using SSL.

Validate SSL certificate

Select the check box to validate the SSL certificate. If you want to validate the SSL certificate, enter values in the Values required for certificate validation section.

Values required for certificate validation

Host name

Enter the host name of the SAP HANA database server to be validated in the certificate. To not validate the host name in the certificate, retain the default value (*) in the field or leave it blank.

TrustStore file path

Enter the path of the TrustStore file. The file format must be JKS as supported by SAP HANA database.

TrustStore password

Enter the password to connect to the TrustStore file.

KeyStore file path

Enter the path of the KeyStore file.

KeyStore file format

Select the format of the KeyStore file.

KeyStore password

Enter the password to connect to the KeyStore file.

Monitoring categories details

Select the SAP HANA Database activity categories that you want to monitor.

Monitoring Categories

Description

Files

Select the check box to monitor performance and availability of files usage.

For more details, see the Files-SHM_FILES monitoring category.

Services

Select the check box to monitor performance and availability of services.

For more details, see the Services-SHM_SERVICES monitoring category.

Health

Health

Select the check box to monitor performance and availability of health indicators like CPU utilization and disk usage.

For more details, see the Health-SHM_HEALTH monitoring category.

Minimum alerts severity for monitoring

Select the severity level at which you want the KM to generate alerts.

Environment settings details

Field

Description

Logging 

Select the check box to enable debugging operations for all SAP HANA instances configured on this environment.

The log files are created in the following PATROL_HOME directories:

  • JavaPATROL_HOME/Patrol3/shmkm/logs/java
  • PSLPATROL_HOME/Patrol3/log/shm-*.kmlog

Device mapping

By default, device mapping is enabled and all the SAP HANA database instances are discovered under the SAP HANA host device.

If the check box is clear, all the SAP HANA database instances are discovered under the PATROL Agent host device.

Java collector settings

Java path

Enter the path to the JRE directory on the PATROL Agent host. The Java version must be 8 or later. 
For example:

  • Windows: C:\Program Files (x86)\Java\jre8
  • Unix\LINUX: /usr/java8_64/

Alternatively, you can also use the $JAVA_HOME environment variable in this field. If you use the $JAVA_HOME variable, the Java location depends on the following:

  • If the user name and password are not entered for the Java collector settings; the KM uses the Java location of the user that is running the PATROL Agent
  • A user name and password are entered for the Java collector settings; the KM uses Java location of the user entered in the collector settings.
  • If this field is left blank, the KM looks for the Java executable in the Patrol3\openjdk\ and Patrol3\jre64 location
    If you enter a path for the JRE directory, you must enter the full path. Do not use the short path format.

JVM arguments

Enter the Java Virtual Machine (JVM) arguments for the Java collector.

User name

Enter the local user name to start the Java process.

Password

Confirm password

Enter the user password to start the Java process.

Collection settings 

Availability collection interval (min)

Enter the time interval to check for the environment's availability for collecting data.

The default interval is one minute.

Data collection interval (min)

Enter the time interval for data collection from the environment.

The default interval is five minutes.

Note: Entering a data collection time that is less than 5 minutes results in a performance issue for the KM.

Long running data collection queries (min)

Enter the time interval to determine when a running query is blocked. The query is blocked because its execution duration is equal to or greater than this interval's threshold.

The default interval is 30 minutes.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*