]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
Check for vos partinfo failing.
authorRuss Allbery <rra@stanford.edu>
Thu, 25 Mar 2004 06:52:06 +0000 (06:52 +0000)
committerRuss Allbery <rra@stanford.edu>
Thu, 25 Mar 2004 06:52:06 +0000 (06:52 +0000)
check_afsspace

index b4df9c8d8b5a83e44d091c89d9e3c04a6b8c168f..0dc55dc48c43b22e94f47595bc3244035315a5d5 100755 (executable)
@@ -88,6 +88,10 @@ alarm ($TIMEOUT);
 # @warnings.  Accumulate all percentages in @all.
 my (@critical, @warnings, @all);
 my @data = `$VOS partinfo '$host' 2> /dev/null`;
+if ($? != 0) {
+    print "AFS CRITICAL: cannot contact server\n";
+    exit 2;
+}
 for (@data) {
     my ($partition, $free, $total) = (split)[4,5,11];
     my $percent = int ((($total - $free) / $total) * 100);