[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 10/13: check_whois: Updating to 1.16
Jan Wagner
waja at moszumanska.debian.org
Fri Mar 6 09:57:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-nagios-plugins-contrib.
commit 8b921f7ff66ae58987a0cc022ab60ae2f9a2285f
Author: Jan Wagner <waja at cyconet.org>
Date: Wed Mar 4 23:23:30 2015 +0100
check_whois: Updating to 1.16
---
check_whois/check_whois | 9 ++++++++-
check_whois/control | 2 +-
debian/control | 2 +-
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/check_whois/check_whois b/check_whois/check_whois
index fd0a9da..8f999b0 100644
--- a/check_whois/check_whois
+++ b/check_whois/check_whois
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# nagios: -epn
-# $Id: check_whois,v 1.15 2013/12/16 23:31:39 wessels Exp $
+# $Id: check_whois,v 1.16 2014/12/16 00:09:36 wessels Exp $
#
# check_whois
#
@@ -198,6 +198,13 @@ sub grok {
$expires = join('-', $2,$1,$3);
}
+ # Name.com returns dates like this: 2018-12-13T21:27:28-07:00Z
+ # Just remove the timezone offset and call it good enough
+ #
+ if ($expires =~ /(\d{4}-\d\d-\d\dt\d\d:\d\d:\d\d)-\d\d:\d\dz/i) {
+ $expires = $1;
+ }
+
my $t;
if (defined $expires) {
$t = UnixDate($expires, "%s");
diff --git a/check_whois/control b/check_whois/control
index 8d06e98..8bc50fe 100644
--- a/check_whois/control
+++ b/check_whois/control
@@ -6,4 +6,4 @@ Description: plugin to check for the expiration of a domain.
output formats differ or there is no expiration date in the
whois output.
Recommends: libdate-manip-perl
-Version: 1.15
+Version: 1.16
diff --git a/debian/control b/debian/control
index d1405df..110509a 100644
--- a/debian/control
+++ b/debian/control
@@ -181,7 +181,7 @@ Description: Plugins for nagios compatible monitoring systems
individual system components that have HTTP interfaces
(JSP, ASP, CGI, PHP, AJAX, Servlets, HTML Forms,
XML/SOAP Web Services, REST, etc).
- * check_whois (1.15): plugin to check for the expiration of a domain.
+ * check_whois (1.16): plugin to check for the expiration of a domain.
The plugin may not yet work with all registrars, since their
output formats differ or there is no expiration date in the
whois output.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git
More information about the Pkg-nagios-changes
mailing list