nagios/check_whois: more flexibility
This commit is contained in:
parent
1d609af762
commit
33e8437984
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ extract_date_from_whois() {
|
||||||
# 7 - .jp
|
# 7 - .jp
|
||||||
# Add your own filter here :)
|
# Add your own filter here :)
|
||||||
EXPIRATION_DATE="$( sed -n \
|
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 '/^[^[:space:]]/s/.*\(xpiry\|xpiration\) Date:[[:space:]]\+//p' \
|
||||||
-e 's/.*\(xpiry\|xpiration\) Date:[[:space:]]\+//p' \
|
-e 's/.*\(xpiry\|xpiration\) Date:[[:space:]]\+//p' \
|
||||||
-e 's/^expires\?:[[:space:]]*//p' \
|
-e 's/^expires\?:[[:space:]]*//p' \
|
||||||
|
|
Loading…
Reference in a new issue