From 9f7533ed4c050aa131fd98d46e3f9c4e2a847fd3 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 20 Sep 2016 15:56:45 +0200 Subject: [PATCH] Update bot --- galanga/nagios-irc-bot.pl | 3 +++ 1 file changed, 3 insertions(+) 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 {