diff --git a/galanga/nagios-irc-bot.pl b/galanga/nagios-irc-bot.pl index 0f15289..a85449a 100755 --- a/galanga/nagios-irc-bot.pl +++ b/galanga/nagios-irc-bot.pl @@ -181,6 +181,7 @@ sub on_public { open CMDPIPE,">",$nagioscmd; my ( $host, $svc ) = @{ $ACKS[$1] || [ undef, undef ] }; if ( defined $host && defined $svc ) { + $self->privmsg([ @to ], "$nick: ok, acknowledgment (if any) for $host:$svc has been added."); printf CMDPIPE "[%lu] ACKNOWLEDGE_SVC_PROBLEM;%s;%s;1;1;1;%s;%s\n",time(),$host,$svc,$nick,$2; } elsif ( defined $host ) { printf CMDPIPE "[%lu] ACKNOWLEDGE_HOST_PROBLEM;%s;1;1;1;%s;%s\n",time(),$host,$nick,$2;