# HG changeset patch # User Christian Arnold # Date 1309851732 -7200 # Node ID eb75c08db691e78ac17cf7b14759b03d016b9deb # Parent 8aa45e0a1a68603418703840fd922e165983fa6b now check the exact version number diff -r 8aa45e0a1a68 -r eb75c08db691 check_zpush.pl --- a/check_zpush.pl Wed Jun 15 15:43:03 2011 +0200 +++ b/check_zpush.pl Tue Jul 05 09:42:12 2011 +0200 @@ -43,7 +43,7 @@ my $ME = basename $0; my $NAME = "Z-PUSH"; -my $VERSION = "0.1"; +my $VERSION = "0.2"; my %opt = ( url => "http://developer.berlios.de/project/showfiles.php?group_id=8963", @@ -90,7 +90,7 @@ or say "$NAME CRITICAL: $file - $!." and exit $ERRORS{CRITICAL}; while () { - /^\$zpush_version\s+=\s+"(?[\d.]+)/ and return $+{version}; + /^\$zpush_version\s+=\s+"(?[\d.-]+)/ and return $+{version}; } close(FH); @@ -112,7 +112,7 @@ if ( $zpb || m|

Z-Push Backend

| ) { $zpb = 1; m|

Z-Push Backend/older releases

| and last; - m|>Version\s+(?[\d.]+)<| and return $+{version}; + m|>z-push-(?[\d.-]+).tar.gz<| and return $+{version}; } } @@ -182,7 +182,7 @@ =head1 VERSION -This man page is current for version 0.1 of B. +This man page is current for version 0.2 of B. =head1 AUTHOR diff -r 8aa45e0a1a68 -r eb75c08db691 debian/changelog --- a/debian/changelog Wed Jun 15 15:43:03 2011 +0200 +++ b/debian/changelog Tue Jul 05 09:42:12 2011 +0200 @@ -1,3 +1,9 @@ +nagios-plugin-zpush (0.2) lenny squeeze; urgency=low + + * now check the exact version number + + -- Christian Arnold Tue, 05 Jul 2011 09:39:52 +0200 + nagios-plugin-zpush (0.1) lenny squeeze; urgency=low * Initial Release.