1
0
Fork 0

nagios/check_whois: more flexibility

This commit is contained in:
Chl 2024-01-07 15:46:07 +01:00
parent 1d609af762
commit 33e8437984

View file

@ -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' \