From 91a513481ef345e17d9f15867e706b859f2633e2 Mon Sep 17 00:00:00 2001 From: Chl Date: Wed, 15 Sep 2021 00:22:13 +0200 Subject: [PATCH] nagios/check_whois: try not to flood whois servers --- nagios/check_whois | 1 + 1 file changed, 1 insertion(+) diff --git a/nagios/check_whois b/nagios/check_whois index 78acc2f..8f08e46 100755 --- a/nagios/check_whois +++ b/nagios/check_whois @@ -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 :-(