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

Detect when a config sync is running? #306

Closed
dgiesselbach opened this issue Jan 20, 2025 · 2 comments
Closed

Detect when a config sync is running? #306

dgiesselbach opened this issue Jan 20, 2025 · 2 comments

Comments

@dgiesselbach
Copy link

dgiesselbach commented Jan 20, 2025

We have the problem that when the config sync is running, all API requests against the master are unsuccessful. The config sync takes atm about 2 minutes.

If an icinga check in powershell runs during this time window, which has to execute API requests against the master, this will result in an error.

First question:
Is there a way to query via API whether a config sync is currently running or not? -> If we could query whether a config sync is running or not, we could adapt the icinga powershell scripts accordingly. That would help us enormously.

Second question:
Is it possible to trigger a pre and post script before/after the config sync?

We now have over 2000 hosts and over 43000 checks, I'm afraid that the config sync will "at some point" take 10 minutes or more and that we'll create "wild" incidents during this time. How do you generally handle the config sync in "large" environments?

@jjethwa
Copy link
Owner

jjethwa commented Jan 20, 2025

Hi @dgiesselbach

Thanks for opening the issue. Can you open it under the upstream project at https://github.com/Icinga/icinga2/issues ? This repo focuses primarily on the docker container. I'll close this issue for now, but if they identify it as a docker specific issue, we can reopen it. Please leave a comment with a link to the new issue so it can be tracked.

@jjethwa jjethwa closed this as completed Jan 20, 2025
@jjethwa jjethwa closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2025
@dgiesselbach
Copy link
Author

Icinga/icinga2#10310

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

No branches or pull requests

2 participants