mirror of https://github.com/Icinga/icinga2.git
Checkable#GetProblem(): consider PENDING not a problem
This commit is contained in:
parent
857e32ad1d
commit
1931501040
|
@ -160,7 +160,9 @@ int Checkable::GetSeverity() const
|
||||||
|
|
||||||
bool Checkable::GetProblem() const
|
bool Checkable::GetProblem() const
|
||||||
{
|
{
|
||||||
return !IsStateOK(GetStateRaw());
|
auto cr (GetLastCheckResult());
|
||||||
|
|
||||||
|
return cr && !IsStateOK(cr->GetState());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Checkable::GetHandled() const
|
bool Checkable::GetHandled() const
|
||||||
|
|
Loading…
Reference in New Issue