From a99e3c3ab9002b94973b898b47dcb1bc4be328cb Mon Sep 17 00:00:00 2001 From: Trey Blancher Date: Mon, 14 Aug 2023 16:41:41 -0400 Subject: [PATCH] Add current alarm to current_alarms --- psi-alerts.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/psi-alerts.sh b/psi-alerts.sh index e657543..12f7c0b 100755 --- a/psi-alerts.sh +++ b/psi-alerts.sh @@ -135,6 +135,7 @@ send () { local subj printf "Pressure Stall Information for ${host} triggered on ${psi_type} at $(date +'%FT%T %Z')\n\n" > ${email} if [[ -n "${current_alarms}" ]]; then + current_alarms="${current_alarms}|${psi_type}" subj="PSI on ${host} ${current_alarms} triggered!" printf "Multiple alarms triggered: ${current_alarms}\n\n" >> ${email} else