nagios/check_whois: try not to flood whois servers
This commit is contained in:
parent
1ef592f9b2
commit
91a513481e
1 changed files with 1 additions and 0 deletions
|
@ -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 :-(
|
||||
|
|
Loading…
Reference in a new issue