mirror of https://github.com/Icinga/icinga2.git
Fix incorrect operators in GelfWriter::NotificationToUserHandler
fixes #7866
This commit is contained in:
parent
a8b7710800
commit
e05cd3144f
|
@ -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()));
|
||||||
|
|
Loading…
Reference in New Issue