Service#GetSeverity(): behave as the respective IDO query of Icinga Web

which doesn't include host reachability.
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-01-27 12:21:06 +01:00 committed by Yonas Habteab
parent f150ad9535
commit 627fd91ac6

View File

@ -137,7 +137,7 @@ int Service::GetSeverity() const
Host::Ptr host = GetHost();
ObjectLock hlock (host);
if (host->GetState() != HostUp || !host->IsReachable()) {
if (host->GetState() != HostUp) {
severity += 1024;
} else {
if (IsAcknowledged())