From d12f9c44dcde8eba156dbed01e5f8a0a65b9a4ce Mon Sep 17 00:00:00 2001 From: Martin Lablans <6804500+lablans@users.noreply.github.com> Date: Mon, 21 Nov 2022 18:06:30 +0100 Subject: [PATCH] Migrate monitoring to self-hosted instance --- lib/monitoring.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/monitoring.sh b/lib/monitoring.sh index daa388f..4d28371 100755 --- a/lib/monitoring.sh +++ b/lib/monitoring.sh @@ -14,15 +14,16 @@ UPTIME= USER_AGENT= function hc_send(){ + BASEURL="https://healthchecks.verbis.dkfz.de/ping" if [ -n "$MONITOR_APIKEY" ]; then hc_set_uuid $MONITOR_APIKEY fi if [ -n "$HCSERVICE" ]; then - HCURL="https://hc-ping.com/$PING_KEY/$HCSERVICE" + HCURL="$BASEURL/$PING_KEY/$HCSERVICE" fi if [ -n "$HCUUID" ]; then - HCURL="https://hc-ping.com/$HCUUID" + HCURL="$BASEURL/$HCUUID" fi if [ ! -n "$HCURL" ]; then log WARN "Did not report Healthcheck: Neither Healthcheck UUID nor service set. Please define MONITOR_APIKEY in /etc/bridgehead."