]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
Remove \n's from critical/warning arrays, so all problem partitiosn (if there
authorQuanah Gibson-Mount <quanah@stanford.edu>
Sat, 13 Dec 2003 01:19:04 +0000 (01:19 +0000)
committerQuanah Gibson-Mount <quanah@stanford.edu>
Sat, 13 Dec 2003 01:19:04 +0000 (01:19 +0000)
is more than one) will print out on the nagios status page

check_afsspace

index 0b7bfa83cfc9dfb1c95a3d2c28dec3d10145d863..cbec9ffca67d169c736dc54405ee724efa619cfa 100755 (executable)
@@ -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%");