mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-21 16:57:58 +02:00
parent
5af4bc82b6
commit
42a1d11bc8
@ -448,13 +448,13 @@ Checkable::ProcessingResult Checkable::ProcessCheckResult(const CheckResult::Ptr
|
||||
if (hardChange || (is_volatile && !(IsStateOK(old_state) && IsStateOK(new_state)))) {
|
||||
OnStateChange(this, cr, StateTypeHard, origin);
|
||||
Log(LogNotice, "Checkable")
|
||||
<< "State Change: Checkable '" << GetName() << "' hard state change from " << old_state_str << " to " << new_state_str << " detected." << (is_volatile ? " Checkable is volatile." : "");
|
||||
<< "State Change: Checkable '" << GetName() << "' hard state change from " << old_state_str << (old_cr ? "" : " (pending)") << " to " << new_state_str << " detected." << (is_volatile ? " Checkable is volatile." : "");
|
||||
}
|
||||
/* Whether a state change happened or the state type is SOFT (must be logged too). */
|
||||
else if (stateChange || GetStateType() == StateTypeSoft) {
|
||||
OnStateChange(this, cr, StateTypeSoft, origin);
|
||||
Log(LogNotice, "Checkable")
|
||||
<< "State Change: Checkable '" << GetName() << "' soft state change from " << old_state_str << " to " << new_state_str << " detected.";
|
||||
<< "State Change: Checkable '" << GetName() << "' soft state change from " << old_state_str << (old_cr ? "" : " (pending)") << " to " << new_state_str << " detected.";
|
||||
}
|
||||
|
||||
if (GetStateType() == StateTypeSoft || hardChange || recovery ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user