mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Merge pull request #9239 from Icinga/bugfix/adjust-behavior-of-service-get-severity
Service#GetSeverity(): behave as the respective IDO query of Icinga Web
This commit is contained in:
commit
e09eaa3ad2
@ -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…
x
Reference in New Issue
Block a user