# HG changeset patch # User Christian Arnold # Date 1308137954 -7200 # Node ID 8a45104fe330ee657902805c03a7e0ed34d0444c # Parent 5e8475fbfc167fc19bc3bcd9c142f0c8404c6529 add version function diff -r 5e8475fbfc16 -r 8a45104fe330 check_rsnapshot.pl --- a/check_rsnapshot.pl Tue Jun 14 12:10:58 2011 +0200 +++ b/check_rsnapshot.pl Wed Jun 15 13:39:14 2011 +0200 @@ -37,7 +37,7 @@ sub version($$); my $ME = basename $0; -my $VERSION = "2.1"; +my $VERSION = "2.2"; my %opt = ( binary => "/usr/bin/rsnapshot", @@ -120,6 +120,20 @@ } } +sub version($$) { + my $progname = shift; + my $version = shift; + + print <<_VERSION; +$progname version $version +Copyright (C) 2011 by Christian Arnold and Schlittermann internet & unix support. + +$ME comes with ABSOLUTELY NO WARRANTY. This is free software, +and you are welcome to redistribute it under certain conditions. +See the GNU General Public Licence for details. +_VERSION +} + =head1 NAME check_rsnapshot - nagios plugin to check for errors on rsnapshot logfile @@ -178,7 +192,7 @@ =head1 VERSION -This man page is current for version 2.1 of check_rsnapshot. +This man page is current for version 2.2 of check_rsnapshot. =head1 AUTHOR diff -r 5e8475fbfc16 -r 8a45104fe330 debian/changelog --- a/debian/changelog Tue Jun 14 12:10:58 2011 +0200 +++ b/debian/changelog Wed Jun 15 13:39:14 2011 +0200 @@ -1,3 +1,9 @@ +nagios-plugin-rsnapshot (2.2) lenny squeeze; urgency=low + + * add version function + + -- Christian Arnold Wed, 15 Jun 2011 13:38:24 +0200 + nagios-plugin-rsnapshot (2.1) lenny squeeze; urgency=low * intercept of possible mistakes