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
[dev.icinga.com #11740] .conf file will remain in apifolder if the zonesfolder in zones.d is removed or the last .conf-file is removed from /zones.d/zonefolder. #4191
Comments
Updated by rafael.voss on 2016-07-08 07:41:49 +00:00 To recreate this bug:
the conf file will remain in /var/lib/icinga2/api/zones/zonename/_etc/filename.conf The problem: the master will not use this file in configchecks as its not in zones.d anymore, but it will transfer this file to the zones. As result the zone executes the checks, but you will not find these checks in your configs on the master. And finally its possible to create new checks with same names somewhere else without hitting a config error. If you follow the steps again, but create/copy 2 .conf files into the zonename directory all will work as expected. |
Updated by mfriedrich on 2016-11-18 14:08:48 +00:00
|
Updated by mfriedrich on 2016-11-18 14:08:56 +00:00
|
Looks like this bug still exists in 2.8.0 Just moved the last .conf file from one global zone to another. ALL Icinga2 agents failed to reload, because now the command "is predefined" in both zones. To solve this, a simple "touch dummy.conf" in the "empty" old zone at the master, followed by a reload solved the problem. |
@NeverUsedID What about v2.10.2? |
I will deal with this as part of #6716. |
I'm closing this in favor of #6716. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11740
Created by rafael.voss on 2016-05-08 09:47:14 +00:00
Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-11-18 14:08:56 +00:00 (in Redmine)
As long there is more than one conf file in the zonefolder there is no problem, but if there is only one .conf-file in a zonefolder in /etc/icinga2/zones.d and this file is deleted (folder is empty now), the .conf-file will remain in the api folder in /var/lib/icinga2/api/zones/.
I have the same problem when i delete the entire zonefolder in zones.d.
i use the debmon packages on Debian Jessi.
As a workaround i have placed a dummy.conf with no content in the zonefolder.
Relations:
The text was updated successfully, but these errors were encountered: