centreon-engine icon indicating copy to clipboard operation
centreon-engine copied to clipboard

Implicit dependencies

Open azoriol opened this issue 8 years ago • 3 comments

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,

azoriol avatar Jun 01 '16 11:06 azoriol

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

azoriol avatar Jun 03 '16 08:06 azoriol

Could be a good idae

lpinsivy avatar Oct 12 '17 09:10 lpinsivy

Bumping up this issue, this change really should be implemented in Centreon

tphakala avatar Nov 30 '22 07:11 tphakala