Send follow up alarms when the initial status matches the notification (#9698)
Chris Akritidis committed
Aug 14, 2020 at 08:11 UTC
676cf1801c2e741282186c98c6c6933fc66277f1
1 file changed
+2
health/notifications/alarm-notify.sh.in
+2
@@ -452,6 +452,7 @@ filter_recipient_by_criticality() {
452
if [ -f "${NETDATA_CACHE_DIR}/alarm-notify/${method}/${r}/${alarm_id}" ]; then
453
# we do not remove the file, so that he will get future notifications of this alarm
454
debug "SEVERITY FILTERING for ${x} VIA ${method}: ALLOW: recipient has been notified for this alarm in the past (will still receive next status change)"
455
+ return 0
456
fi
457
;;
458
@@ -460,6 +461,7 @@ filter_recipient_by_criticality() {
461
# remove the file, so that he will only receive notifications for CRITICAL states for this alarm
462
rm "${NETDATA_CACHE_DIR}/alarm-notify/${method}/${r}/${alarm_id}"
463
debug "SEVERITY FILTERING for ${x} VIA ${method}: ALLOW: recipient has been notified for this alarm (will only receive CRITICAL notifications from now on)"
464
+ return 0
465
fi
466
;;
467
esac