Merge pull request #1943 from centreon/telegram-notif

add missing host output to notification
This commit is contained in:
qgarnier 2020-04-17 14:50:39 +02:00 committed by GitHub
commit 5c1d5a77a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ sub host_message {
} else { } else {
$self->{message} .= ' alert'; $self->{message} .= ' alert';
} }
if (defined($self->{option_results}->{host_output}) && $self->{option_results}->{host_output} ne '') {
$self->{message} .= "\n " . $self->{option_results}->{host_output};
}
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 '') {
$self->{message} .= "\n <a href=\"" . $self->{option_results}->{link_url} . "\">Link</a>"; $self->{message} .= "\n <a href=\"" . $self->{option_results}->{link_url} . "\">Link</a>";
} }