Fix incorrect operators in GelfWriter::NotificationToUserHandler

fixes #7866
This commit is contained in:
Gunnar Beutner 2014-11-27 09:40:27 +01:00
parent a8b7710800
commit e05cd3144f
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ void GelfWriter::NotificationToUserHandler(const Notification::Ptr& notification
fields->Set("short_message", output); fields->Set("short_message", output);
} else { } else {
fields->Set("_type", "HOST NOTIFICATION"); 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())); fields->Set("_state", service ? Service::StateToString(service->GetState()) : Host::StateToString(host->GetState()));