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
On debian based systems /etc/default/icinga2 is not read/used #6255
Comments
Which version are you using exactly? Please always fill in the issue templates. |
I'm using 2.8.3 |
Please show us the output of |
Just faced the same issue on Debian 9 and Ubuntu 17.10. Seems that Icinga is looking for
|
icinga2 --version[2018-04-25 09:29:22 +0200] warning/icinga-app: Sysconfig file '/etc/sysconfig/icinga2' cannot be read. Using default values. Copyright (c) 2012-2017 Icinga Development Team (https://www.icinga.com/) Application information: System information: Build information: |
Try the following workaround until 2.9 is released:
|
Oh damn, we really need to fix this, and better move the environment read to the icinga2 wrapper script... Daemons are not really supposed to include something from default/sysconfig |
Scheduled for CW21. |
|
The sysconfig file now only contains the defaults as comments, changes made there are given to the init.d script, prepare-dirs, safe-reload and Icinga 2 itself. If nothing is set in the sysconfig file (as is the default as all lines are commented out) the defaults are used. fixes #6255
The sysconfig file now only contains the defaults as comments, changes made there are given to the init.d script, prepare-dirs, safe-reload and Icinga 2 itself. If nothing is set in the sysconfig file (as is the default as all lines are commented out) the defaults are used. fixes #6255
I tested the latest snapshot package and faced the same issue.
Is the fix already available through snapshot packages or is there more work to do e.g. on the build scripts? |
The warning shouldn't be there, thanks for testing. |
I've tested this on Ubuntu 16.04, but the only thing that worked for me was changing the user and group Icinga runs as. For the Working:
Not working:
icinga2 -V
|
Paths are likely handled differently by the Debian/Ubuntu scripts, they're separated from upstream. Anyhow, path changes are not officially supported, my main concern was the environment variables read from the daemon, thus being the user and the rlimit configuration. Thanks for testing 👍 |
Hi,
When installing icinga2 on a debian system, it should read /etc/default/icinga2 for some vars as stated in the docs.
But it seems like this is completely broken.
For example I added the following in the file:
ICINGA2_RLIMIT_STACK=524288
but its never used.
Also when you start icinga2, you get the following warning:
icinga2 variable get RLimitStack
[2018-04-24 16:34:45 +0200] warning/icinga-app: Sysconfig file '/etc/sysconfig/icinga2' cannot be read. Using default values.
262144
Seems to be a cmake bug?
When just running cmake . on v2.8.3, the variable is filled incorrectly:
//where to store configuation for the init system, defaults to
// /etc/sysconfig/icinga2
ICINGA2_SYSCONFIGFILE:PATH=/usr/local/etc/sysconfig/icinga2
The text was updated successfully, but these errors were encountered: