From 5222f7d058e7ddbad818f0c6d99b4e403fbfc95f Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 21 Dec 2017 09:13:47 +0100 Subject: [PATCH] GelfWriter should write the host notification output No idea why there was a hardcoded unreachable message inside. --- lib/perfdata/gelfwriter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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())); -- 2.40.0