Files
hana-scripts/hana.conf
Tomi Eckert 7495ebcd78 refactor(monitoring): remove hardcoded tool paths
Remove SAPCONTROL_PATH and HDBSQL_PATH variables from configuration.
Update scripts to rely on the system PATH environment variable when
executing as the <sid>adm user. Remove redundant existence checks for
these commands.
2026-03-12 22:24:02 +01:00

46 lines
1.2 KiB
Bash

#!/bin/bash
# =============================================================================
# SAP HANA Common Configuration
# =============================================================================
# --- HANA Instance Configuration ---
# HANA SID (e.g., "NDB") - used to derive the HANA user (<sid>adm)
HANA_SID="NDB"
# Derived HANA Linux user (automatically computed from HANA_SID)
HANA_USER="$(echo "$HANA_SID" | tr '[:upper:]' '[:lower:]')adm"
# HANA Instance Number (e.g., "00")
HANA_INSTANCE_NR="00"
# HANA User Key for hdbsql (hdbuserstore key)
HANA_USER_KEY="CRONKEY"
# --- Paths ---
# Commands are executed as <sid>adm user without full paths
# --- Monitoring Directories ---
DIRECTORIES_TO_MONITOR=(
"/hana/shared"
"/hana/log"
"/hana/data"
"/usr/sap"
)
# --- Thresholds ---
DISK_USAGE_THRESHOLD=85
TRUNCATED_PERCENTAGE_THRESHOLD=50
FREE_PERCENTAGE_THRESHOLD=10
STATEMENT_QUEUE_THRESHOLD=10
BACKUP_THRESHOLD_HOURS=32
# --- Notification Configuration ---
NTFY_TOKEN=""
NTFY_TOPIC_URL=""
COMPANY_NAME="My Company"
# --- Logging Configuration ---
LOG_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
LOG_FILE="${LOG_DIR}/hana_monitor.log"