Permalink
Browse files

One too many pipes in the output, thanks to Matthias Flacke

  • Loading branch information...
justintime committed Sep 20, 2011
1 parent c8b2684 commit 475addaa7f045e2ec175c2d38dd226a4de8336f6
Showing with 3 additions and 3 deletions.
  1. +3 −3 check_mem/check_mem.pl
View
@@ -81,13 +81,13 @@ sub tell_nagios {
elsif ($opt_u) {
my $percent = sprintf "%.1f", ($used / $total * 100);
if ($percent >= $opt_c) {
- finish("CRITICAL - $percent% ($used kB) used!|$perfdata",$exit_codes{'CRITICAL'});
+ finish("CRITICAL - $percent% ($used kB) used!$perfdata",$exit_codes{'CRITICAL'});
}
elsif ($percent >= $opt_w) {
- finish("WARNING - $percent% ($used kB) used!|$perfdata",$exit_codes{'WARNING'});
+ finish("WARNING - $percent% ($used kB) used!$perfdata",$exit_codes{'WARNING'});
}
else {
- finish("OK - $percent% ($used kB) used.|$perfdata",$exit_codes{'OK'});
+ finish("OK - $percent% ($used kB) used.$perfdata",$exit_codes{'OK'});
}
}
}

0 comments on commit 475adda

Please sign in to comment.