fix monitor

This commit is contained in:
2025-09-24 17:14:48 +02:00
parent 781c4654e5
commit 817fc83763
2 changed files with 3 additions and 3 deletions

View File

@@ -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!"