From f94e4fb5b1129981225bf524dab3226b9734ae21 Mon Sep 17 00:00:00 2001 From: kgoul974 <34673926+kgoul974@users.noreply.github.com> Date: Fri, 19 Oct 2018 17:53:15 +0400 Subject: [PATCH] update slack alert mode (#1177) The notification not print host and service name --- centreon-plugins/notification/slack/mode/alert.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/centreon-plugins/notification/slack/mode/alert.pm b/centreon-plugins/notification/slack/mode/alert.pm index 5f9a26da9..dd4da1611 100644 --- a/centreon-plugins/notification/slack/mode/alert.pm +++ b/centreon-plugins/notification/slack/mode/alert.pm @@ -165,6 +165,7 @@ sub service_message { my ($self, %options) = @_; my $url_service = "Host: " . $self->{option_results}->{host_name} . " | Service " . $self->{option_results}->{service_description}; + $self->{payload_attachment}->{fallback} = $url_service; if (defined($self->{option_results}->{link_url}) && $self->{option_results}->{link_url} ne '') { $url_service = '<' . $self->{option_results}->{link_url} . '|' . $self->{option_results}->{host_name} . '/' . $self->{option_results}->{service_description} . '>'; $self->{payload_attachment}->{fallback} = "Service " . $self->{option_results}->{host_name} . '/' . $self->{option_results}->{service_description};