mirror of https://github.com/Icinga/icinga2.git
Merge pull request #9196 from Icinga/Al2Klimov-patch-4
Service#GetSeverity(): behave as the respective IDO query of Icinga Web
This commit is contained in:
commit
373ca14137
|
@ -137,7 +137,7 @@ int Service::GetSeverity() const
|
||||||
|
|
||||||
Host::Ptr host = GetHost();
|
Host::Ptr host = GetHost();
|
||||||
ObjectLock hlock (host);
|
ObjectLock hlock (host);
|
||||||
if (host->GetState() != HostUp || !host->IsReachable()) {
|
if (host->GetState() != HostUp) {
|
||||||
severity += 1024;
|
severity += 1024;
|
||||||
} else {
|
} else {
|
||||||
if (IsAcknowledged())
|
if (IsAcknowledged())
|
||||||
|
|
Loading…
Reference in New Issue