@cryptotaxi247 / netdata-1 / commits / 3838e0a6c

fix(health): set default curl connection timeout if not set (#13529)

Ilya Mashchenko committed Aug 18, 2022 at 15:02 UTC 3838e0a6ceda1f637acb0dd3373b2256af9315cc
1 file changed +4
health/notifications/alarm-notify.sh.in
+4
@@ -428,6 +428,10 @@ else
428 done
429 fi
430
431 +if [[ ! $curl_options =~ .*\--connect-timeout ]]; then
432 + curl_options+=" --connect-timeout 5"
433 +fi
434 +
435 OPSGENIE_API_URL=${OPSGENIE_API_URL:-"https://api.opsgenie.com"}
436
437 # If we didn't autodetect the character set for e-mail and it wasn't