feat: Remove verbose "state unchanged" messages and bump version to 1.2.2
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user