diff --git a/galanga/nagios-irc-bot.pl b/galanga/nagios-irc-bot.pl index f8c87e5..18bd9a1 100755 --- a/galanga/nagios-irc-bot.pl +++ b/galanga/nagios-irc-bot.pl @@ -406,6 +406,9 @@ while (1) { $renot{$host} = time(); my $id = ackable($host,undef,$state,$output); + $output =~ s/^\s*CRITICAL\s*//g; + $output =~ s/^\s*WARNING\s*//g; + $output =~ s/^\s*OK\s*//g; $msg = $state_to_color->{$state} . "$id$host is $state: $output"; } else {