--- 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