From 817fc837630e9bc81557d8d178cea2c9c792080a Mon Sep 17 00:00:00 2001 From: Tomi Eckert Date: Wed, 24 Sep 2025 17:14:48 +0200 Subject: [PATCH] fix monitor --- monitor/monitor.sh | 4 ++-- packages.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/monitor/monitor.sh b/monitor/monitor.sh index 888bfaf..d9a3b3c 100644 --- a/monitor/monitor.sh +++ b/monitor/monitor.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Version: 1.0.1 +# Version: 1.0.2 # ============================================================================= # SAP HANA Monitoring Script # @@ -40,7 +40,7 @@ send_notification() { # --- HANA Process Status --- echo "⚙️ Checking HANA process status..." -non_green_processes=$(sapcontrol -nr "${HANA_INSTANCE_NR}" -function GetProcessList | tail -n +5 | grep -v 'GREEN') +non_green_processes=$(sapcontrol -nr "${HANA_INSTANCE_NR}" -function GetProcessList | tail -n +6 | grep -v 'GREEN') if [ -n "$non_green_processes" ]; then echo "🚨 Alert: One or more HANA processes are not running!" diff --git a/packages.conf b/packages.conf index fc11b38..a1827f7 100644 --- a/packages.conf +++ b/packages.conf @@ -9,7 +9,7 @@ declare -A SCRIPT_PACKAGES # The version should match the "# Version: x.x.x" line in the main script file. SCRIPT_PACKAGES["Aurora Suite"]="1.1.0|https://git.technopunk.space/tomi/Scripts/raw/branch/main/aurora/aurora.sh https://git.technopunk.space/tomi/Scripts/raw/branch/main/aurora/aurora.conf" SCRIPT_PACKAGES["Backup Suite"]="1.0.5|https://git.technopunk.space/tomi/Scripts/raw/branch/main/backup/backup.sh https://git.technopunk.space/tomi/Scripts/raw/branch/main/backup/backup.conf" -SCRIPT_PACKAGES["Monitor Suite"]="1.0.1|https://git.technopunk.space/tomi/Scripts/raw/branch/main/monitor/monitor.sh https://git.technopunk.space/tomi/Scripts/raw/branch/main/monitor/monitor.conf" +SCRIPT_PACKAGES["Monitor Suite"]="1.0.2|https://git.technopunk.space/tomi/Scripts/raw/branch/main/monitor/monitor.sh https://git.technopunk.space/tomi/Scripts/raw/branch/main/monitor/monitor.conf" SCRIPT_PACKAGES["Key Manager"]="1.2.1|https://git.technopunk.space/tomi/Scripts/raw/branch/main/hdb_keymanager.sh" SCRIPT_PACKAGES["File Cleaner"]="1.1.0|https://git.technopunk.space/tomi/Scripts/raw/branch/main/clean.sh" SCRIPT_PACKAGES["HANA Tool"]="1.4.2|https://git.technopunk.space/tomi/Scripts/raw/branch/main/hanatool.sh"