Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Implicit dependencies #48

Open
azoriol opened this issue Jun 1, 2016 · 3 comments
Open

Implicit dependencies #48

azoriol opened this issue Jun 1, 2016 · 3 comments

Comments

@azoriol
Copy link

azoriol commented Jun 1, 2016

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
Copy link
Author

azoriol commented Jun 3, 2016

I found the solution:
tmcnag/nagioscore@05e1dda
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

@lpinsivy
Copy link
Contributor

Could be a good idae

@tphakala
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants