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.
This commit is contained in:
@@ -17,8 +17,7 @@ HANA_INSTANCE_NR="00"
|
||||
HANA_USER_KEY="CRONKEY"
|
||||
|
||||
# --- Paths ---
|
||||
SAPCONTROL_PATH="/usr/sap/hostctrl/exe/sapcontrol"
|
||||
HDBSQL_PATH="/usr/sap/HDB/HDB${HANA_INSTANCE_NR}/exe/hdbsql"
|
||||
# Commands are executed as <sid>adm user without full paths
|
||||
|
||||
# --- Monitoring Directories ---
|
||||
DIRECTORIES_TO_MONITOR=(
|
||||
|
||||
Reference in New Issue
Block a user