mirror of
https://github.com/a-stoyanov/zabbix-domain-expiry.git
synced 2025-12-15 18:55:48 +00:00
Support for domain is in billing grace period
Support for domain is in billing grace period
This commit is contained in:
parent
9b8e1279fb
commit
9ee33efb6c
1 changed files with 4 additions and 0 deletions
|
|
@ -217,6 +217,10 @@ run_whois() {
|
||||||
$whois ${server:+-h $server} "$domain" > "$outfile" 2>&1 && error=$? || error=$?
|
$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."
|
[ -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
|
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."
|
die "$STATE_UNKNOWN" "State: UNKNOWN ; Domain $domain doesn't exist."
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue