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 option to adjust checkmk agent exec timeout to prevent crashes #26

Closed
wants to merge 1 commit into from

Conversation

elemental-lf
Copy link
Contributor

In our environment (Ubuntu 22.04) systemctl list-unit-files sometimes takes just a little bit over 5 seconds to complete. A long execution time for listing the unit files seems to be a known issue with systemd and is documented here. This leads to crashes of the checkmk-machine-sections-collector as the call to the checkmk agent has a hard-coded timeout of 5 seconds.

This PR adds the option to adjust the checkmk agent exec timeout via a command-line option.

Copy link

github-actions bot commented Mar 12, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@elemental-lf
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.

@SoloJacobs SoloJacobs self-requested a review March 28, 2024 07:27
@SoloJacobs SoloJacobs self-assigned this Mar 28, 2024
@elemental-lf
Copy link
Contributor Author

I just noticed that there is some overlap with #25. I can rebase my changes after the other PR is merged.

@SoloJacobs
Copy link
Contributor

Don't worry about rebasing, I've permission to edit the previous pull request. Thus, I can simply rebase #25 as we review them.

For the pull request itself, LGTM. One more person will review it, then we'll test some changes in a live scenario, and finally include it in the next release (I'll post an update).

@CheckmkCI CheckmkCI closed this in 126af50 Apr 5, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 5, 2024
CheckmkCI pushed a commit that referenced this pull request Apr 8, 2024
CMK-16676

Closes: #26

Change-Id: I697df13efc1d6b5279396d626b0c335c51928892
@SoloJacobs
Copy link
Contributor

Hi,

the release is now available https://github.com/Checkmk/checkmk_kube_agent/releases/tag/v1.6.0
Thank you for your contribution!

Kind regards, Sol

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

Successfully merging this pull request may close these issues.

2 participants