Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new options to keep services running as long as they are ok #459

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

sni
Copy link
Contributor

@sni sni commented Mar 18, 2024

The issue with the options:

  • host_down_disable_service_checks
  • service_skip_check_dependency_status
  • service_skip_check_host_down_status
  • host_skip_check_dependency_status

is that reports break because hosts/services suddenly stop executing and
keep their OK state. Which makes those options pretty unusable.

So in order to keep reporting correct, you need to keep services running, even
if the host is down. With these new options, hosts/services keep on running as
long as they are up. And as soon as the service is down, it stops running until
the host comes back up. That way naemon has to do less checks, especially less
checks which run into timeouts and such but reporting is still correct.

The option service_skip_check_dependency_status=-2 will also be used for service parents.

Adding a new option service_parents_disable_service_checks to prevent running service
checks if service parents are down.

Recommended settings are:

host_down_disable_service_checks=1       ; disable service checks if host is down
service_parents_disable_service_checks=1 ; also disable service checks if parents are down
service_skip_check_host_down_status=-2   ; but keep running as long as they are ok
service_skip_check_dependency_status=-2  ; same, but for dependency checks.
host_skip_check_dependency_status=-2     ; and for host checks.

@sni sni changed the title add new option to host_down_disable_service_checks add new options to keep services running as long as they are ok Mar 18, 2024
The issue with the options:

- host_down_disable_service_checks
- service_skip_check_dependency_status
- service_skip_check_host_down_status
- host_skip_check_dependency_status

is that reports break because hosts/services suddenly stop executing and
keep their OK state. Which makes those options pretty unusable.

So in order to keep reporting correct, you need to keep services running, even
if the host is down. With these new options, hosts/services keep on running as
long as they are up. And as soon as the service is down, it stops running until
the host comes back up. That way naemon has to do less checks, especially less
checks which run into timeouts and such but reporting is still correct.

The option service_skip_check_dependency_status=-2 will also be used for service parents.

Adding a new option service_parents_disable_service_checks to prevent running service
checks if service parents are down.

Recommended settings are:

    host_down_disable_service_checks=1       ; disable service checks if host is down
    service_parents_disable_service_checks=1 ; also disable service checks if parents are down
    service_skip_check_host_down_status=-2   ; but keep running as long as they are ok
    service_skip_check_dependency_status=-2  ; same, but for dependency checks.
    host_skip_check_dependency_status=-2     ; and for host checks.
sni added a commit to ConSol-Monitoring/omd that referenced this pull request Mar 19, 2024
@sni
Copy link
Contributor Author

sni commented Mar 20, 2024

PR is ready and runs here since 2 days without issues.

Copy link
Member

@nook24 nook24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@sni sni merged commit 22f0fb6 into naemon:master Mar 20, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants