From 9ee33efb6c18647dbbe2c4b0c925b4953b11ad06 Mon Sep 17 00:00:00 2001 From: takenek Date: Mon, 26 May 2025 08:43:18 +0200 Subject: [PATCH] Support for domain is in billing grace period Support for domain is in billing grace period --- check_domain.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check_domain.sh b/check_domain.sh index 8406716..8bc7937 100755 --- a/check_domain.sh +++ b/check_domain.sh @@ -217,6 +217,10 @@ run_whois() { $whois ${server:+-h $server} "$domain" > "$outfile" 2>&1 && error=$? || error=$? [ -s "$outfile" ] || die "$STATE_UNKNOWN" "State: UNKNOWN ; Domain $domain doesn't exist or no WHOIS server available." + if grep -qi "billing period had finished" "$outfile"; then + die "$STATE_CRITICAL" "State: EXPIRED ; Domain is in billing grace period (already expired but renewable)" + fi + if grep -q -e "No match for" -e "NOT FOUND" -e "NO DOMAIN" "$outfile"; then die "$STATE_UNKNOWN" "State: UNKNOWN ; Domain $domain doesn't exist." fi