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:
2025-09-25 18:44:59 +02:00
parent 2549ccf250
commit 6b2132a7ab
2 changed files with 2 additions and 4 deletions

View File

@@ -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
}