1
0
Fork 0

nagios/check_whois: try not to flood whois servers

This commit is contained in:
Chl 2021-09-15 00:22:13 +02:00
parent 1ef592f9b2
commit 91a513481e

View file

@ -164,6 +164,7 @@ while [ "$#" -gt 0 ]; do
shift
# get the expiration date for this domain
test -n "$EXPIRATION_DATE" && sleep 2 # trying not to flood the whois servers
EXPIRATION_DATE="$( whois "$DOMAIN" | extract_date_from_whois )"
if [ -z "$EXPIRATION_DATE" ]; then
# We couldn't get the date :-(