Browse Source

Send follow up alarms when the initial status matches the notification (#9698)

Chris Akritidis 4 years ago
parent
commit
676cf1801c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      health/notifications/alarm-notify.sh.in

+ 2 - 0
health/notifications/alarm-notify.sh.in

@@ -452,6 +452,7 @@ filter_recipient_by_criticality() {
 		if [ -f "${NETDATA_CACHE_DIR}/alarm-notify/${method}/${r}/${alarm_id}" ]; then
 			# we do not remove the file, so that he will get future notifications of this alarm
 			debug "SEVERITY FILTERING for ${x} VIA ${method}: ALLOW: recipient has been notified for this alarm in the past (will still receive next status change)"
+			return 0
 		fi
 		;;
 
@@ -460,6 +461,7 @@ filter_recipient_by_criticality() {
 			# remove the file, so that he will only receive notifications for CRITICAL states for this alarm
 			rm "${NETDATA_CACHE_DIR}/alarm-notify/${method}/${r}/${alarm_id}"
 			debug "SEVERITY FILTERING for ${x} VIA ${method}: ALLOW: recipient has been notified for this alarm (will only receive CRITICAL notifications from now on)"
+			return 0
 		fi
 		;;
 	esac