From 69cb64b0e922e9b1f5bca33734a93f283b0f748c Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Sat, 13 Dec 2003 01:19:04 +0000 Subject: [PATCH] Remove \n's from critical/warning arrays, so all problem partitiosn (if there is more than one) will print out on the nagios status page --- check_afsspace | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_afsspace b/check_afsspace index 0b7bfa8..cbec9ff 100755 --- a/check_afsspace +++ b/check_afsspace @@ -41,10 +41,10 @@ foreach $l (@infos) { $used=$total-$free; $percent=int (($used/$total)*100); if ($percent >= $CRITICAL) { - push (@critical, "$h: $part $percent% full, free $free\n"); + push (@critical, "$h: $part $percent% full, free $free "); } elsif ($percent >= $WARNINGS) { - push (@warnings, "$h: $part $percent% full, free $free\n"); + push (@warnings, "$h: $part $percent% full, free $free "); } push (@final, "$part$percent%"); -- 2.39.5