Add logging message
This commit is contained in:
parent
5eaa81d5c8
commit
5bd8fa7daa
|
@ -181,6 +181,7 @@ sub on_public {
|
||||||
open CMDPIPE,">",$nagioscmd;
|
open CMDPIPE,">",$nagioscmd;
|
||||||
my ( $host, $svc ) = @{ $ACKS[$1] || [ undef, undef ] };
|
my ( $host, $svc ) = @{ $ACKS[$1] || [ undef, undef ] };
|
||||||
if ( defined $host && defined $svc ) {
|
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;
|
printf CMDPIPE "[%lu] ACKNOWLEDGE_SVC_PROBLEM;%s;%s;1;1;1;%s;%s\n",time(),$host,$svc,$nick,$2;
|
||||||
} elsif ( defined $host ) {
|
} elsif ( defined $host ) {
|
||||||
printf CMDPIPE "[%lu] ACKNOWLEDGE_HOST_PROBLEM;%s;1;1;1;%s;%s\n",time(),$host,$nick,$2;
|
printf CMDPIPE "[%lu] ACKNOWLEDGE_HOST_PROBLEM;%s;1;1;1;%s;%s\n",time(),$host,$nick,$2;
|
||||||
|
|
Loading…
Reference in New Issue