diff --git a/nagios/check_whois b/nagios/check_whois index dc6ef2e..b0accd4 100755 --- a/nagios/check_whois +++ b/nagios/check_whois @@ -105,7 +105,7 @@ extract_date_from_whois() { # 7 - .jp # Add your own filter here :) EXPIRATION_DATE="$( sed -n \ - -e 's/^Registry Expiry Date: //p' \ + -e 's/^Registry Expiry Date:[[:space:]]\+//p' \ -e '/^[^[:space:]]/s/.*\(xpiry\|xpiration\) Date:[[:space:]]\+//p' \ -e 's/.*\(xpiry\|xpiration\) Date:[[:space:]]\+//p' \ -e 's/^expires\?:[[:space:]]*//p' \