centreon-engine
centreon-engine copied to clipboard
Implicit dependencies
I'm migrating from centreon 2.5.4 to CES 3.3 and I don't find if this feature is implemented
Implicit Dependencies for Services on Host: automatically adds an implicit dependency for services on their host. That way service notifications are suppressed when a host is DOWN or UNREACHABLE.
Service checks are still executed. If you want to prevent them from happening, you can apply the following dependency to all services setting their host as parent_host_name and disabling the checks. assign where true matches on all Service objects.
Can you help me?
Regards,
I found the solution: https://github.com/tmcnag/nagioscore/commit/05e1dda8ccaa9d633b22b11a555d67724930a3e7 In file /src/checks.cc Line 1373 host *temp_host = NULL;
Line 1436 /* check if host is up - if not, do not perform check */ if((temp_host = svc->host_ptr) == NULL) { logger(dbg_checks, most) << "Host pointer NULL in check_service_check_viability"; return (ERROR); } else { if(temp_host->current_state != HOST_UP) { logger(dbg_checks, most) << "Host state not UP, so service check will not be performed - will be rescheduled as normal "; perform_check = false; } }
Can you implement to the source code in centreon-engine?
Regards
Could be a good idae
Bumping up this issue, this change really should be implemented in Centreon