# HG changeset patch # User arnold # Date 1339065579 -7200 # Node ID 17a9b769f563405adf0cd3e1bbc229edb93e158c # Parent eb75c08db691e78ac17cf7b14759b03d016b9deb change download url and search string for stable release diff -r eb75c08db691 -r 17a9b769f563 check_zpush.pl --- a/check_zpush.pl Tue Jul 05 09:42:12 2011 +0200 +++ b/check_zpush.pl Thu Jun 07 12:39:39 2012 +0200 @@ -43,10 +43,10 @@ my $ME = basename $0; my $NAME = "Z-PUSH"; -my $VERSION = "0.2"; +my $VERSION = "0.3"; my %opt = ( - url => "http://developer.berlios.de/project/showfiles.php?group_id=8963", + url => "http://z-push.sourceforge.net/soswp/index.php?pages_id=39&t=Download", file => "/var/www/z-push/version.php" ); @@ -109,11 +109,7 @@ push @webside, split( "\n", $side ); my $zpb = undef; foreach (@webside) { - if ( $zpb || m|

Z-Push Backend

| ) { - $zpb = 1; - m|

Z-Push Backend/older releases

| and last; - m|>z-push-(?[\d.-]+).tar.gz<| and return $+{version}; - } + /z-push-(?[\d.-]+).tar.gz"/ and return $+{version}; } say "$NAME CRITICAL: Can't find last version." and exit $ERRORS{CRITICAL}; @@ -156,7 +152,7 @@ =item B<-u>|B<--url> -Download I with z-push release information. (default: http://developer.berlios.de/project/showfiles.php?group_id=8963) +Download I with z-push release information. (default: http://z-push.sourceforge.net/soswp/index.php?pages_id=39&t=Download) =item B<-f>|B<--file> @@ -182,7 +178,7 @@ =head1 VERSION -This man page is current for version 0.2 of B. +This man page is current for version 0.3 of B. =head1 AUTHOR diff -r eb75c08db691 -r 17a9b769f563 debian/changelog --- a/debian/changelog Tue Jul 05 09:42:12 2011 +0200 +++ b/debian/changelog Thu Jun 07 12:39:39 2012 +0200 @@ -1,3 +1,9 @@ +nagios-plugin-zpush (0.3) lenny squeeze; urgency=low + + * change download url and search string for stable release + + -- Christian Arnold Thu, 07 Jun 2012 12:27:06 +0200 + nagios-plugin-zpush (0.2) lenny squeeze; urgency=low * now check the exact version number diff -r eb75c08db691 -r 17a9b769f563 debian/control --- a/debian/control Tue Jul 05 09:42:12 2011 +0200 +++ b/debian/control Thu Jun 07 12:39:39 2012 +0200 @@ -3,12 +3,12 @@ Priority: extra Maintainer: Christian Arnold Build-Depends: debhelper (>= 7.0.50~) -Standards-Version: 3.8.4 +Standards-Version: 3.9.1 Homepage: https://keller.schlittermann.de/hg/ius/nagios/nagios-plugin-zpush/ Package: nagios-plugin-zpush Architecture: all -Depends: perl-base, perl-doc, libwww-perl +Depends: perl-base (>= 5.10), perl-doc, libwww-perl Description: nagios plugin to check installed z-push version This nagios plugin search on a specified url for a new version of z-push and compare the search result with an installed version.