diff --git a/lib/monitoring.sh b/lib/monitoring.sh index e2954a5..75e62af 100755 --- a/lib/monitoring.sh +++ b/lib/monitoring.sh @@ -35,8 +35,8 @@ function hc_send(){ 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" + echo -e "$MSG" | https_proxy=$HTTPS_PROXY_URL curl -s -o /dev/null -X POST --data-binary @- "$HCURL"/"$1" || log WARN "Monitoring failed: Unable to send data to $HCURL/$1" else - curl -s -o /dev/null "$HCURL"/"$1" || log WARN "Monitoring failed: Unable to send data to $HCURL/$1" + https_proxy=$HTTPS_PROXY_URL curl -s -o /dev/null "$HCURL"/"$1" || log WARN "Monitoring failed: Unable to send data to $HCURL/$1" fi }