From 77dc2dd154364d1edfee9319061aa10ff077a35b Mon Sep 17 00:00:00 2001 From: Stephen Papierski Date: Wed, 8 Nov 2023 15:22:08 -0700 Subject: [PATCH] Don't check for slow response unless monitor is UP --- server/model/monitor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/model/monitor.js b/server/model/monitor.js index 6678a1c8b..ab5571d8d 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -1432,6 +1432,11 @@ class Monitor extends BeanModel { */ async checkSlowResponseNotification(monitor, bean) { + if (bean.status !== UP) { + log.debug("monitor", `[${this.name}] Monitor status is not UP, skipping slow response check`); + return; + } + const method = monitor.slowResponseNotificationMethod; const thresholdMethod = monitor.slowResponseNotificationThresholdMethod; const thresholdMultipler = monitor.slowResponseNotificationThresholdMultiplier;