From 12702665fa788fcf72cda8e219f16afdfe46f41b Mon Sep 17 00:00:00 2001 From: tcharles Date: Fri, 17 Apr 2020 00:48:34 +0200 Subject: [PATCH] add missing host output to notification --- notification/telegram/mode/alert.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/notification/telegram/mode/alert.pm b/notification/telegram/mode/alert.pm index ce452e6ae..2812f8bdc 100644 --- a/notification/telegram/mode/alert.pm +++ b/notification/telegram/mode/alert.pm @@ -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 {option_results}->{link_url} . "\">Link"; }