You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of our Icinga2 checks is designed to immediately trigger a "hard Critical" state on the first attempt. Recently, there were maintenance operations on the underlying system, during which downtimes were scheduled.
Our expectation is that, if a service becomes "Critical" during the downtime, it should trigger its notifications at the end of the downtime. However, we encountered a scenario where this does not happen:
The service is configured to directly enter a "hard critical" state (no soft-state).
While the service is in a "Critical" state, the associated host is in a soft-state ("down").
This scenario is special/rare, but it has occurred in our production environment.
To Reproduce
Set up a host and a service in Icinga2. The service should be configured to immediately enter a "hard Critical" state and have notifications enabled.
Schedule a downtime.
During the downtime, briefly transition the host into a "soft-down" state.
While the host is in the "soft-down" state, cause the service to enter the "hard Critical" state.
The host will return to the "OK" state (without ever reaching "hard-down"), and the downtime will end.
At the end of the downtime, the host should be in the "OK" state, but the service remains in the "Critical" state.
Expected Behavior
The service should trigger a notification when it transitions to "Critical" at the end of the downtime.
Observed Behavior
No notification is triggered for the service, even though it is in the "Critical" state.
Sketch
The notification in the diagram is currently not being triggered.
Your Environment
Include as many relevant details about the environment you experienced the problem in
Version used (icinga2 --version): r2.14.5-1
Operating System and version: RHEL 8.10 (Ootpa)
Enabled features (icinga2 feature list): api checker ido-mysql influxdb mainlog notification
The text was updated successfully, but these errors were encountered:
if (!host->GetProblem() && host->GetLastStateChange() >= threshold) {
returntrue;
}
It makes use of the LastStateChange() timestamp of its parent checkable, but LastStateChange() is also updated with every soft state changes. Thus, it should probably use host->GetLastHardStateChange() instead.
Bug Description
One of our Icinga2 checks is designed to immediately trigger a "hard Critical" state on the first attempt. Recently, there were maintenance operations on the underlying system, during which downtimes were scheduled.
Our expectation is that, if a service becomes "Critical" during the downtime, it should trigger its notifications at the end of the downtime. However, we encountered a scenario where this does not happen:
This scenario is special/rare, but it has occurred in our production environment.
To Reproduce
Set up a host and a service in Icinga2. The service should be configured to immediately enter a "hard Critical" state and have notifications enabled.
Schedule a downtime.
During the downtime, briefly transition the host into a "soft-down" state.
While the host is in the "soft-down" state, cause the service to enter the "hard Critical" state.
The host will return to the "OK" state (without ever reaching "hard-down"), and the downtime will end.
At the end of the downtime, the host should be in the "OK" state, but the service remains in the "Critical" state.
Expected Behavior
The service should trigger a notification when it transitions to "Critical" at the end of the downtime.
Observed Behavior
No notification is triggered for the service, even though it is in the "Critical" state.
Sketch
The notification in the diagram is currently not being triggered.
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
): r2.14.5-1icinga2 feature list
): api checker ido-mysql influxdb mainlog notificationThe text was updated successfully, but these errors were encountered: