# HG changeset patch # User Matthias Förste foerste@schlittermann.de # Date 1312530108 -7200 # Node ID 0990f72db33ccaf52fae99c3d57e84c7c491163e # Parent 2098311fb22798da7fed63f4195141754d2f0da1 adapt to changed output format of amstatus (version 2.6.1p2 / debian squeeze) diff -r 2098311fb227 -r 0990f72db33c check_amanda.pl --- a/check_amanda.pl Tue May 17 10:12:33 2011 +0200 +++ b/check_amanda.pl Fri Aug 05 09:41:48 2011 +0200 @@ -80,7 +80,8 @@ my $rc = "CRITICAL"; foreach (`$opt{binary} --config $configfile --error`) { - /^Using.*from\s+(.*)$/ and $last_backup_date = $1 and next; + /^Using / and next; + /^From\s+(.*)$/ and $last_backup_date = $1 and next; /^\S+/ and $mesg = "some failed backups" and last; }