Icinga / icingaweb2-module-businessprocess

Create top-level views of your applications in a graphical editor. Rules express dependencies between existing hosts and services and let you alert on application level. Business processes are displayed in a tree or list overview.
https://icinga.com/docs/businessprocess/latest
GNU General Public License v2.0
108 stars 44 forks source link

Support dependencies #434

Open Tontonitch opened 9 months ago

Tontonitch commented 9 months ago

Currently, the module does not handle well an icinga2 configuration including the config part at https://icinga.com/docs/icinga-2/latest/doc/03-monitoring-basics/#implicit-dependencies-for-services-on-host:

apply Dependency "disable-host-service-checks" to Service {
  disable_checks = true
  assign where true
}

The configuration above disables service checks for hosts identified as DOWN (HARD state). Consequently, a service may still be considered OK if it has not been tested sufficiently to change its status to WARNING/CRITICAL/UNKNOWN HARD before the host changes to DOWN HARD.

To support that configuration, the Business Process module would need to check also the status of the host on which the service is configured: a BP node of type Service must first check the status of the related Host and if DOWN the Service node must return a CRITICAL.

nilmerg commented 9 months ago

The implicit dependency does not disable checks and in that case the process node becomes whatever the check results reports.

You've defined an explicit dependency, and now we are in the general dependency support ballpark.

Tontonitch commented 9 months ago

Correct, thanks for the title change.