From 4ce2ae5980b93f14d87c9ff46925c0003d5b577e Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 25 Mar 2004 06:52:06 +0000 Subject: [PATCH] Check for vos partinfo failing. --- check_afsspace | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check_afsspace b/check_afsspace index b4df9c8..0dc55dc 100755 --- a/check_afsspace +++ b/check_afsspace @@ -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); -- 2.39.5