From b7d13fe1056e16a5e43fe2fc01828bd84f81a2e9 Mon Sep 17 00:00:00 2001 From: Sebastian L Date: Fri, 3 Nov 2023 06:30:03 +0100 Subject: [PATCH] Display alert message when there is an outage ... --- status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status.sh b/status.sh index 46d7a8389..1e7472a57 100755 --- a/status.sh +++ b/status.sh @@ -1028,7 +1028,7 @@ MY_DEGRADE_COUNT=$((MY_OUTAGE_COUNT + MY_DEGRADE_COUNT)) if [ -s "$MY_MAINTENANCE_TEXT_FILE" ]; then page_alert_maintenance # or status alert -elif [[ "$MY_DEGRADE_COUNT" -gt "$MY_AVAILABLE_COUNT" ]]; then +elif [[ "$MY_OUTAGE_COUNT" -gt "$MY_AVAILABLE_COUNT" ]]; then page_alert_danger elif [[ "$MY_DEGRADE_COUNT" -gt "0" ]]; then page_alert_warning