From 44258586e9e20629898f64a3163ba8acc9596e68 Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Thu, 6 Oct 2022 09:57:07 +0200 Subject: [PATCH] Fixed monitoring --- lib/monitoring.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/monitoring.sh b/lib/monitoring.sh index 19dc1b9..e2954a5 100755 --- a/lib/monitoring.sh +++ b/lib/monitoring.sh @@ -33,7 +33,7 @@ function hc_send(){ UPTIME=$(echo "$UPTIME" | tr '\n' '|' || echo "Unable to get docker statistics") fi - if [ -n "$MSG" ]; then + if [ -n "$2" ]; then MSG="$2\n\nDocker stats: $UPTIME" echo -e "$MSG" | curl -s -o /dev/null -X POST --data-binary @- "$HCURL"/"$1" || log WARN "Monitoring failed: Unable to send data to $HCURL/$1" else