From 7c98e58ce3116ffdf4c7fdef5444f35db1545d26 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 8 Dec 2010 11:31:01 -0800 Subject: [PATCH] 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. --- NEWS | 5 +++++ check_afs_space | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.39.5