From 72f9f2493a22b6e657fec464b9fb27f2b424b506 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 20 Feb 2019 14:45:19 +0100 Subject: [PATCH] PR #1385 --- centreon-plugins/notification/slack/mode/alert.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/notification/slack/mode/alert.pm b/centreon-plugins/notification/slack/mode/alert.pm index 49b70cf76..fd143a80b 100644 --- a/centreon-plugins/notification/slack/mode/alert.pm +++ b/centreon-plugins/notification/slack/mode/alert.pm @@ -132,9 +132,9 @@ sub host_message { my ($self, %options) = @_; my $url_host = $self->{option_results}->{host_name}; + $self->{payload_attachment}->{fallback} = "Host " . $self->{option_results}->{host_name}; if (defined($self->{option_results}->{link_url}) && $self->{option_results}->{link_url} ne '') { $url_host = '<' . $self->{option_results}->{link_url} . '|' . $self->{option_results}->{host_name} . '>'; - $self->{payload_attachment}->{fallback} = "Host " . $self->{option_results}->{host_name}; } $self->{payload_attachment}->{text} = "Host " . $url_host;