-
Notifications
You must be signed in to change notification settings - Fork 580
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
Improve documentation about enabling core dumps #6723
Comments
…md best practices fixes Icinga#6723
With systemd core dumps are usually handled by systemd-coredump, as such the core_pattern should be |
I could change that. Could any of the developers verify if there are any special requirements of Icinga 2 which would prohibit such a change? |
I would not restrict to one pid as it is unlikely but possible that different process have different limits. So do something like @mphilipps is right about Systemd, but it requires a specific version and is not available in CentOS 7 for example, so we should cover both. Also |
I commented on the PR |
I did a quick test (on CentOS 6):
(The output was "tuned" a bit to improve clarity, so don't check timestamps etc.) |
Ok, then I would opt for |
I'm currently rewriting the development chapter in a local branch. What's the status and common idea for the core dumps chapter joining this issue and the linked PR? If needed, I'd keep this specific for Systemd and non-Systemd stuff like seen everywhere else already. |
Since https://github.com/Icinga/icinga2/pull/6724/files#r229265113 mentions Instead, the default sysctl way of setting the coredump pattern and suid=2 thingy worked immediately. I've found this old thread from 2014 https://lists.opensuse.org/opensuse-factory/2014-08/msg00478.html which describes the exact core_pattern for Systemd (which isn't described in their man pages). One can manually create it, or adjust the core_pattern.
This doesn't work though, there's no file on disk even with coredump.conf Imho this is complicated as fuck. I would stick to our sysctl defaults in case of emergency, which can be explained and given to users and customers. |
@dnsmichi systemd-coredump would be preferred for newer versions of systemd, the version in CentOS is quite old... Main problem is currently that multiple limits apply:
|
Having multiple methods with different Systemd versions likely irritates the user. I'm leaving the doc parts "as is" with some smaller stolen fixes for edits and suid bits. My branch solely brings the development docs into shape, so the linked PR needs to be rebased later when this is merged. |
The main parts are discussed in #6723
Hi everyone, How do we proceed here? Best, |
Hi, I'd say you'll create a PR with the changes, and if there's still something required, do a review or an offline meeting. I'll close here. Cheers, |
Hi,
While I enabled core dumps on some hosts of mine I realized that https://icinga.com/docs/icinga2/latest/doc/21-development/#core-dump might not be completely up to best practices for systemd.
I'll provide a PR with some things I found.
Is there any old documentation about core dumps on SysV hosts I'm missing. I suspect there's missing some information in the docs and I'd add this as well.
Cheers,
Thomas
The text was updated successfully, but these errors were encountered: