mirror of https://github.com/Icinga/icinga2.git
Service: reduce severity while host is down
This commit is contained in:
parent
ae18536b0f
commit
66949dd018
|
@ -45,6 +45,7 @@ enum SeverityFlag
|
|||
{
|
||||
SeverityFlagDowntime = 1,
|
||||
SeverityFlagAcknowledgement = 2,
|
||||
SeverityFlagHostDown = 4,
|
||||
SeverityFlagUnhandled = 8,
|
||||
SeverityFlagPending = 16,
|
||||
SeverityFlagWarning = 32,
|
||||
|
|
|
@ -125,6 +125,8 @@ int Service::GetSeverity() const
|
|||
severity |= SeverityFlagDowntime;
|
||||
else if (IsAcknowledged())
|
||||
severity |= SeverityFlagAcknowledgement;
|
||||
else if (m_Host->GetProblem())
|
||||
severity |= SeverityFlagHostDown;
|
||||
else
|
||||
severity |= SeverityFlagUnhandled;
|
||||
|
||||
|
|
Loading…
Reference in New Issue