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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user