From 6a27b9a5ad90feb972ebacfb59e5cbe3215986dc Mon Sep 17 00:00:00 2001 From: Martin Lablans <6804500+lablans@users.noreply.github.com> Date: Thu, 27 Oct 2022 11:58:24 +0200 Subject: [PATCH] Issue a warning (but don't crash) on missing MONITOR_APIKEY --- lib/monitoring.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/monitoring.sh b/lib/monitoring.sh index bdd9a35..8744d7f 100755 --- a/lib/monitoring.sh +++ b/lib/monitoring.sh @@ -24,8 +24,8 @@ function hc_send(){ HCURL="https://hc-ping.com/$HCUUID" fi if [ ! -n "$HCURL" ]; then - log WARN "Healthcheck reporting failed: Neither Healthcheck UUID nor service set - please check config in /etc/bridgehead" - return 1 + log WARN "Did not report Healthcheck: Neither Healthcheck UUID nor service set. Please define MONITOR_APIKEY in /etc/bridgehead." + return 0 fi if [ -z "$UPTIME" ]; then