feat(monitor): Bump version to 1.2.3 and refactor notification logic
Updated monitor/monitor.sh to version 1.2.3. Removed the redundant else block in the send_notification_if_changed() function in monitor/monitor.sh as it provided no functional change. Updated the "Monitor Suite" version in packages.conf to 1.2.3 to reflect the script update.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Version: 1.2.2
|
||||
# Version: 1.2.3
|
||||
# =============================================================================
|
||||
# SAP HANA Monitoring Script
|
||||
#
|
||||
@@ -82,8 +82,6 @@ send_notification_if_changed() {
|
||||
curl -H "Authorization: Bearer ${NTFY_TOKEN}" -H "Title: ${full_title}" -d "${final_message}" "${NTFY_TOPIC_URL}" > /dev/null 2>&1
|
||||
set_state "${alert_key}" "$current_value"
|
||||
echo "🔔 Notification sent for ${alert_key}: ${full_message}"
|
||||
else
|
||||
# State unchanged, no notification needed.
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user