feat: Remove verbose "state unchanged" messages and bump version to 1.2.2

This commit is contained in:
2025-09-25 18:42:43 +02:00
parent e083c5b749
commit 2549ccf250
2 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/bash
# Version: 1.2.1
# Version: 1.2.2
# =============================================================================
# SAP HANA Monitoring Script
#
@@ -74,7 +74,6 @@ send_notification_if_changed() {
else
# No alert, and no previous alert to resolve, so just update state silently
set_state "${alert_key}" "$current_value"
echo " State for ${alert_key} updated to ${current_value}. No notification sent."
return
fi
fi
@@ -84,7 +83,7 @@ send_notification_if_changed() {
set_state "${alert_key}" "$current_value"
echo "🔔 Notification sent for ${alert_key}: ${full_message}"
else
echo " State for ${alert_key} unchanged. No notification sent."
# State unchanged, no notification needed.
fi
}