commit 6267dde571f269981e3be5be54aad8d5e2373853 Author: Elan Ruusamäe <g...@delfi.ee> Date: Tue Oct 9 19:54:43 2012 +0300
fix for .TV domain. call this version 1.2.1 check_domain | 7 +++++-- nagios-plugin-check_domain.spec | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) --- diff --git a/nagios-plugin-check_domain.spec b/nagios-plugin-check_domain.spec index 6d63e30..c6ac1ae 100644 --- a/nagios-plugin-check_domain.spec +++ b/nagios-plugin-check_domain.spec @@ -1,8 +1,8 @@ %define plugin check_domain Summary: Nagios pluging for checking a domain name expiration date Name: nagios-plugin-%{plugin} -Version: 1.2 -Release: 4 +Version: 1.2.1 +Release: 1 License: GPL Group: Networking Source0: %{plugin} diff --git a/check_domain b/check_domain old mode 100644 new mode 100755 index 88aea59..57807a5 --- a/check_domain +++ b/check_domain @@ -25,8 +25,8 @@ die() { fullusage() { cat <<EOF -check_domain - v1.2 -Copyright (c) 2005 Tomàs Núñez Lirola <tnu...@criptos.com>, 2009-2010 Elan Ruusamäe <g...@delfi.ee> +check_domain - v1.2.1 +Copyright (c) 2005 Tomàs Núñez Lirola <tnu...@criptos.com>, 2009-2012 Elan Ruusamäe <g...@delfi.ee> under GPL License This plugin checks the expiration date of a domain name. @@ -86,6 +86,9 @@ case "$domain" in *.ee) expiration=$(echo "$out" | awk '/expire:/{split($2, a, "."); printf("%s-%s-%s\n", a[3], a[2], a[1])}') ;; +*.tv) + expiration=$(echo "$out" | awk -F: '/Expiration Date:/{print substr($0, length($1) + 3, 10)}') + ;; *) 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/6267dde571f269981e3be5be54aad8d5e2373853 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit