Commit 1cbf6305 authored by Timothy Stack's avatar Timothy Stack
Browse files

Check for other messages from quota.

parent 72fc6f2c
...@@ -112,7 +112,10 @@ open(QUOTA, "$SSHTB -host $CONTROL $QUOTACMD -q -l $user |") or ...@@ -112,7 +112,10 @@ open(QUOTA, "$SSHTB -host $CONTROL $QUOTACMD -q -l $user |") or
" Could not invoke $QUOTACMD on $CONTROL!\n"); " Could not invoke $QUOTACMD on $CONTROL!\n");
while (<QUOTA>) { while (<QUOTA>) {
if ($_ =~ /limit reached on ([-\w\/]*)$/) { if (($_ =~ /limit reached on ([-\w\/]*)$/) ||
($_ =~ /grace period on ([-\w\/]*)$/) ||
($_ =~ /Over file quota on ([-\w\/]*)$/) ||
($_ =~ /Over block quota on ([-\w\/]*)$/)) {
print STDOUT "*** Disk Quota exceeded on $1\n"; print STDOUT "*** Disk Quota exceeded on $1\n";
$overquota++; $overquota++;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment