From: Russ Allbery Date: Wed, 8 Dec 2010 19:31:01 +0000 (-0800) Subject: Fix check_afs_space bug when run against entire server X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7c98e58ce3116ffdf4c7fdef5444f35db1545d26;p=packages%2Fa%2Fafs-monitor.git Fix check_afs_space bug when run against entire server Fix a bug in check_afs_space introduced in the previous release with checking all partitions on a particular server. --- diff --git a/NEWS b/NEWS index 66e8f57..47ba962 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,10 @@ User-Visible afs-monitor Changes +afs-monitor 2.1 (unreleased) + + Fix a bug in check_afs_space introduced in the previous release with + checking all partitions on a particular server. + afs-monitor 2.0 (2010-12-07) Initial tarball release, based on check_afsspace 1.16, check_bos 1.7, diff --git a/check_afs_space b/check_afs_space index 1b602aa..afc9e02 100755 --- a/check_afs_space +++ b/check_afs_space @@ -112,7 +112,7 @@ if ($? != 0) { print "AFS CRITICAL - cannot contact server\n"; exit 2; } -$partition .= ':'; +$partition .= ':' if defined $partition; for (@data) { my ($part, $free, $total) = (split)[4,5,11]; next if (defined ($partition) and $part ne $partition);