From 53a4f7f73cc7337332c27e30275b2f2d2f70ba1b Mon Sep 17 00:00:00 2001 From: Trey Blancher Date: Sat, 12 Aug 2023 13:16:29 -0400 Subject: [PATCH] Replaced hardcoded deltachunk with ${host} --- psi-alerts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/psi-alerts.sh b/psi-alerts.sh index 5a79546..b0b80e3 100755 --- a/psi-alerts.sh +++ b/psi-alerts.sh @@ -133,12 +133,12 @@ send () { local email=$(mktemp /tmp/psi.eml.XXXX) local subj - printf "Pressure Stall Information triggered on ${psi_type} at $(date +'%FT%T %Z')\n\n" > ${email} + printf "Pressure Stall Information for ${host} triggered on ${psi_type} at $(date +'%FT%T %Z')\n\n" > ${email} if [[ -n "${current_alarms}" ]]; then - subj="PSI on deltachunk ${current_alarms} triggered!" + subj="PSI on ${host} ${current_alarms} triggered!" printf "Multiple alarms triggered: ${current_alarms}\n\n" >> ${email} else - subj="PSI on deltachunk ${psi_type} triggered!" + subj="PSI on ${host} ${psi_type} triggered!" current_alarms="${psi_type}" fi