mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
GelfWriter should write the host notification output
No idea why there was a hardcoded unreachable message inside.
This commit is contained in:
parent
915d0417c9
commit
5222f7d058
@ -325,8 +325,7 @@ void GelfWriter::NotificationToUserHandlerInternal(const Notification::Ptr& noti
|
|||||||
fields->Set("short_message", output);
|
fields->Set("short_message", output);
|
||||||
} else {
|
} else {
|
||||||
fields->Set("_type", "HOST NOTIFICATION");
|
fields->Set("_type", "HOST NOTIFICATION");
|
||||||
//TODO: why?
|
fields->Set("short_message", output);
|
||||||
fields->Set("short_message", "(" + CompatUtility::GetHostStateString(host) + ")");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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…
x
Reference in New Issue
Block a user