Include extra status code
The code 000 can be returned by curl e.g. if the provided uri is bad.main
parent
11cf8c58b0
commit
8a7da6a9a3
|
|
@ -7,7 +7,8 @@
|
||||||
# recipients are sourced from a separate file in the cwd; it is expected to
|
# recipients are sourced from a separate file in the cwd; it is expected to
|
||||||
# have a single email address per line.
|
# have a single email address per line.
|
||||||
#
|
#
|
||||||
# If WATCHDOG_LOG is set, all output will be redirected there.
|
# If WATCHDOG_LOG is set, all output will be redirected there. It is expected
|
||||||
|
# to be a writable file.
|
||||||
#
|
#
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# - curl: Polling the servers
|
# - curl: Polling the servers
|
||||||
|
|
@ -62,7 +63,7 @@ main()
|
||||||
echo "${stat}"
|
echo "${stat}"
|
||||||
|
|
||||||
# All other HTTP responses should not technically be errors
|
# All other HTTP responses should not technically be errors
|
||||||
if ((${stat} >= 400 && ${stat} <= 599)); then
|
if (((${stat} >= 400 && ${stat} <= 599) || ${stat} == 000)); then
|
||||||
FLAGGED[${full_uri}]=${stat}
|
FLAGGED[${full_uri}]=${stat}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue