[icinga-checkins] icinga.org: icinga2/feature/arrays-in-macros-6709: Fix incorrect operators in GelfWriter::NotificationToUserHandler

git at icinga.org git at icinga.org
Thu Nov 27 10:03:36 CET 2014


Module: icinga2
Branch: feature/arrays-in-macros-6709
Commit: e05cd3144f12c51c3cf42e284c0540328cc33c86
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=e05cd3144f12c51c3cf42e284c0540328cc33c86

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Nov 27 09:40:27 2014 +0100

Fix incorrect operators in GelfWriter::NotificationToUserHandler

fixes #7866

---

 lib/perfdata/gelfwriter.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/perfdata/gelfwriter.cpp b/lib/perfdata/gelfwriter.cpp
index 32a1e2f..94abac4 100644
--- a/lib/perfdata/gelfwriter.cpp
+++ b/lib/perfdata/gelfwriter.cpp
@@ -148,7 +148,7 @@ void GelfWriter::NotificationToUserHandler(const Notification::Ptr& notification
 		fields->Set("short_message", output);
 	} else {
 		fields->Set("_type", "HOST NOTIFICATION");
-		fields->Set("short_message", "(" << (host->IsReachable() ? Host::StateToString(host->GetState()) : "UNREACHABLE") << ")");
+		fields->Set("short_message", "(" + (host->IsReachable() ? Host::StateToString(host->GetState()) : String("UNREACHABLE")) + ")");
 	}
 
 	fields->Set("_state", service ? Service::StateToString(service->GetState()) : Host::StateToString(host->GetState()));



More information about the icinga-checkins mailing list