[packages/nagios-plugin-check_domain] add .ca domain validation
glen
glen at pld-linux.org
Fri Mar 8 10:55:59 CET 2013
commit 204649394edf32a91d8eea194fc6ea06f7cba31c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Mar 8 11:28:14 2013 +0200
add .ca domain validation
inspired from comment from here:
http://exchange.nagios.org/directory/Plugins/Internet-Domains-and-WHOIS/check_domain/details
check_domain | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/check_domain b/check_domain
index 1d6a674..d621481 100755
--- a/check_domain
+++ b/check_domain
@@ -97,6 +97,10 @@ case "$domain" in
*.tv)
expiration=$(echo "$out" | awk -F: '/Expiration Date:/{print substr($0, length($1) + 3, 10)}')
;;
+*.ca)
+ # Expiry date: 2017/07/16
+ expiration=$(echo "$out" | awk '/Expiry date:/{split($3, a, "/"); printf("%s-%s-%s\n", a[1], a[2], a[3])}')
+ ;;
*)
expiration=$(echo "$out" | awk -F: '/Expiration Date:/{print substr($0, length($1) + 2)}')
;;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_domain.git/commitdiff/b90816566b56dd69e128c835543567673bce3b46
More information about the pld-cvs-commit
mailing list