Hi @ll, I strongly opt for Peters approach, that's in fact how I configure all my systems. The problem with conf.d is that it contains files provided by upstream. Depending on your package manager the next upgrade might re-create files you formerly deleted - and you're doomed.
Most package managers are today intelligent enough to understand that there used to be a config file that belonged to the former version of the package. And as it no longer exists it was probably YOU to delete it, so it respects your wish and doesn't recreate the file, even in case upstream changed it. This does however not happen in case upstream adds new files to this directory. They will be part of you next deployment, good luck! Therefore I remove the mentioned line from my icinga2.conf. Regardless of whether the system is configured manually or by the Director. Always, everywhere. Cheers, Thomas Am 22.12.2016 um 10:40 schrieb Antony Stone: > On Thursday 22 December 2016 at 10:36:37, Peter Eckel wrote: > >> Hi Antony, >> >>> - rename /etc/icinga2/conf.d to something like /etc/icinga2/conf.d.dist >>> (it doesn't really matter what, just change its name) >>> >>> - create a new, empty /etc/icinga2/conf.d and leave it empty >> >> ... or, much more straightforward: >> >> - comment the line saying 'include_recursive "conf.d"' at the end of >> /etc/icinga2.conf >> >> so there isn'a a mythical directory in the hierarchy that needs to be kept >> empty. Things like that WILL backfire sooner or later when you don't >> expect it. > > Yes, you can do this, however on the other hand that leaves a directory > /etc/icinga2/conf.d with lots of useful-looking files in it, which could be > tempting to edit and add content to, without it being obvious that Icinga > isn't even looking there any more :) > > I think your solution is just as good as mine - so long as you remember what > you've done. > > Anyone else coming along to look at the system might start using that > directory (empty in my case, not in yours) and get confused :( > > > Antony. > -- Thomas Gelf Principal Consultant NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg Tel: +49 911 92885-0 | Fax: +49 911 92885-77 CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461 http://www.netways.de | thomas.g...@netways.de ** OSDC 2017 - Mai – osdc.de ** _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users