mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Service#GetSeverity(): behave as the respective IDO query of Icinga Web
which doesn't include host reachability.
This commit is contained in:
parent
d2c90ad66e
commit
501691cdde
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user