add missing host output to notification

This commit is contained in:
tcharles 2020-04-17 00:48:34 +02:00 committed by GitHub
parent 7eececdefe
commit 12702665fa
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 {
$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 '') {
$self->{message} .= "\n <a href=\"" . $self->{option_results}->{link_url} . "\">Link</a>";
}