# Configuration

The configuration file of the plugin \[plugin name\] is divided into blocks:  
  
**Paths to binaries**

```
# Command paths
hdbsql = /hana/shared/DBH/hdbclient/hdbsql
sapcontrol = /usr/sap/hostctrl/exe/sapcontrol
```

**hdbsql**  
Path to find the binary hdbsql (SQL client for SAP Hana)  
**sapcontrol**  
Path to find the binary sapcontrol. It will be used to obtain the health status of the SAP Hana services.  
  
**User data**

```
# Creds
hana_user = system
hana_password = EncryptedOrPlainPasswordHere
hana_hostport = 172.17.0.2:39017
hana_instance = 90

# 0 to use unencrypted password
use_encrypted_password = 1
```

<p class="callout info">To generate encrypted password, run the plugin with -v, the plugin will return an output with the password defined in the encrypted conf.  
  
./pandora\_hana pandora\_hana.conf -v</p>

**hana\_user**  
Hana user  
**hana\_password**   
Hana password  
**hana\_hostport**  
Hana host and port  
**hana\_instance**  
Hana instance  
**use\_encrypted\_password**   
Enable with 1 for using encrypted password

**Customization of the monitoring**

```
# Use the custom module header
module_header = SAP Hana
# To run in SAP Hana v1 environments
#compat_mode = 1
# To run as plugin server / in cron please set as_agent_plugin = 0
# and fulfill tentacle/local copy options
as_agent_plugin = 1
mode = local
tentacle_ip = yourpandora.lab.artica.lan
tentacle_port = 41121
tentacle_opts =
tentacle_client = "tentacle_client"
local_folder = /var/spoo//pandora / data_in
tmp = /tmp
```

  
**module\_header**  
Use custom headers for the modules generated by the plugin.  
**compat\_mode**  
Set compatibility mode to run on environments SAP Hana v1. By setting this token,  
module ‘STATUS’ of disk monitorization won’t be available. Also hdbsql parameters will be  
adjusted.  
**as\_agent\_plugin**  
Set the value to 1 if you run the plugin with module\_plugin from a Pandora FMS  
EndPoint.  
If you want to run it without an agent, from the CRON of the system, set it to 0.  
**mode**  
Mode of transfer of XML files, which can be:  
● local: it copies the files to local\_folder  
● tentacle: it transfers the files to tentacle\_ip by tentacle\_port  
**tentacle\_ip**  
IP address or FQDN where Pandora FMS is working.  
**tentacle\_port**  
Port where the Tentacle service associated to your Pandora FMS server is listening.  
**tentacle\_opts**  
Extra options for the Tentacle client.  
**tentacle\_client**  
Path to find the binary customer's Tentacle.  
**local\_folder**  
Location to move the files to in the local mode.  
**tmp**  
Temporary location to store the files before being sent.