mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 16:14:21 +02:00
PR #1385
This commit is contained in:
parent
5ee50d895b
commit
72f9f2493a
@ -132,9 +132,9 @@ sub host_message {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
my $url_host = $self->{option_results}->{host_name};
|
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 '') {
|
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} . '>';
|
$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;
|
$self->{payload_attachment}->{text} = "Host " . $url_host;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user