From: Quanah Gibson-Mount Date: Sat, 13 Dec 2003 01:19:04 +0000 (+0000) Subject: Remove \n's from critical/warning arrays, so all problem partitiosn (if there X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=69cb64b0e922e9b1f5bca33734a93f283b0f748c;p=packages%2Fa%2Fafs-monitor.git 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 --- 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%");