[packages/nagios-plugin-check_domain] v1.2.4: added .dk support, thanks Troels Hansen!
glen
glen at pld-linux.org
Tue Sep 24 16:46:00 CEST 2013
commit a012b111fd81a1b9f4e6a4769d6ff0b4c38c6010
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Sep 24 17:45:11 2013 +0300
v1.2.4: added .dk support, thanks Troels Hansen!
check_domain.sh | 6 +++++-
test.sh | 1 +
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/check_domain.sh b/check_domain.sh
index cfb4393..841eb21 100755
--- a/check_domain.sh
+++ b/check_domain.sh
@@ -33,7 +33,7 @@ die() {
fullusage() {
cat <<EOF
-check_domain - v1.2.3
+check_domain - v1.2.4
Copyright (c) 2005 Tomàs Núñez Lirola <tnunez at criptos.com>, 2009-2013 Elan Ruusamäe <glen at pld-linux.org>
under GPL License
@@ -131,6 +131,10 @@ case "$domain" in
set -- "$1" "$(month2moy $2)" "$3"
expiration="$1-$2-$3"
;;
+*.dk)
+ # Expires: 2014-01-31
+ expiration=$(echo "$out" | awk '/Expires:/ {print $2}')
+ ;;
*.uk)
# Expiry date: 05-Dec-2014
set -- $(echo "$out" | awk '/Expiry date:/{split($3, a, "-"); printf("%s %s %s\n", a[3], a[2], a[1])}')
diff --git a/test.sh b/test.sh
index 3179311..4e72b38 100755
--- a/test.sh
+++ b/test.sh
@@ -17,6 +17,7 @@ delfi.tv
amazon.ca
amazon.ie
amazon.co.uk
+dk-hostmaster.dk
"
for domain in $domains; do
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_domain.git/commitdiff/a012b111fd81a1b9f4e6a4769d6ff0b4c38c6010
More information about the pld-cvs-commit
mailing list