]> granicus.if.org Git - icinga2/commitdiff
GelfWriter should write the host notification output
authorMichael Friedrich <michael.friedrich@icinga.com>
Thu, 21 Dec 2017 08:13:47 +0000 (09:13 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 15 Jan 2018 12:39:34 +0000 (13:39 +0100)
No idea why there was a hardcoded unreachable message inside.

lib/perfdata/gelfwriter.cpp

index 6742a11da2c1faf6a8684b015abcc67c7eb42d9c..0394befa127d0606615860e29662bf4da5f92808 100644 (file)
@@ -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()));