feat(monitor): Implement state-based notifications to prevent alert spam

Introduces state management to 'monitor.sh' to send notifications only when a monitored status changes (e.g., from healthy to alert, or alert to resolved). This prevents repetitive alerts for persistent issues. Creates a 'monitor_state' directory for tracking. Updates script version to 1.2.0.
This commit is contained in:
2025-09-25 18:15:01 +02:00
parent a6150467e5
commit eeb5b2eb7b
3 changed files with 88 additions and 24 deletions

View File

@@ -2,13 +2,13 @@
# --- Company Information ---
# Used to identify which company the alert is for.
COMPANY_NAME="Your Company Name"
COMPANY_NAME="Company"
# --- Notification Settings ---
# Your ntfy.sh topic URL
NTFY_TOPIC_URL="https://ntfy.technopunk.space/sap"
# Your ntfy.sh bearer token (if required)
NTFY_TOKEN="your_ntfy_token_here"
NTFY_TOKEN="tk_xxxxx"
# --- HANA Connection Settings ---
# Full path to the sapcontrol executable