From: Michael Friedrich Date: Thu, 21 Dec 2017 08:13:47 +0000 (+0100) Subject: GelfWriter should write the host notification output X-Git-Tag: v2.9.0~222^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5222f7d058e7ddbad818f0c6d99b4e403fbfc95f;p=icinga2 GelfWriter should write the host notification output No idea why there was a hardcoded unreachable message inside. --- diff --git a/lib/perfdata/gelfwriter.cpp b/lib/perfdata/gelfwriter.cpp index 6742a11da..0394befa1 100644 --- a/lib/perfdata/gelfwriter.cpp +++ b/lib/perfdata/gelfwriter.cpp @@ -325,8 +325,7 @@ void GelfWriter::NotificationToUserHandlerInternal(const Notification::Ptr& noti fields->Set("short_message", output); } else { fields->Set("_type", "HOST NOTIFICATION"); - //TODO: why? - fields->Set("short_message", "(" + CompatUtility::GetHostStateString(host) + ")"); + fields->Set("short_message", output); } fields->Set("_state", service ? Service::StateToString(service->GetState()) : Host::StateToString(host->GetState()));