User-Visible afs-monitor Changes
+afs-monitor 2.3 (unreleased)
+
+ Fix bug in check_afs_quotas when checking all volumes on a partition
+ that has read-only or backup volumes.
+
afs-monitor 2.2 (2011-03-03)
Add a -d flag to check_afs_space that prints out Nagios performance
#
# Written by Russ Allbery <rra@stanford.edu>
# Based on a script by Steve Rader
-# Copyright 2010
+# Copyright 2010, 2013
# The Board of Trustees of the Leland Stanford Junior University
#
# This program is free software; you may redistribute it and/or modify it
my ($volume, %results);
local $_;
while (<LVOL>) {
- if (/^(\S+)\s+\d+ (RW|RO|BK)\s+(\d+) K\s+On-line\s*$/) {
+ if (/^(\S+)\s+\d+ (?:RW|RO|BK)\s+(\d+) K\s+On-line\s*$/) {
$volume = $1;
- $results{$volume}{size} = $3;
+ $results{$volume}{size} = $2;
} elsif (/^\s+MaxQuota\s+(\d+) K\s*$/) {
$results{$volume}{quota} = $1 if defined $volume;
}