Alignak-monitoring / alignak

Monitoring tool, highly flexible and new standard oriented
https://alignak-monitoring.github.io
GNU Affero General Public License v3.0
86 stars 19 forks source link

Default configuration files replaced on application update #1034

Open mohierf opened 6 years ago

mohierf commented 6 years ago

When Alignak application is updated, the default shipped configuration files (/usr/local/share/alignak) are replaced with the new ones.

For the admin specific configuration, it is recommended to add some ini files in the alignak.d sub-directory because these files will not be replaced...

Despite, it is very often needed to update the default daemons.ini file that is shipped with Alignak ... and this file will be replaced!

Perharps, it may be good to not deliver this file but a daemons.ini.sample file that may be copied and then updated by the administrator... to be discussed

Note that Alignak should start without this file with its default configuration. To be tested and confirmed.

mohierf commented 6 years ago

The recommended configuration way:

  1. Adding a daemon or module is adding a section in the new file. No problem
  2. Overriding an existing parameter. Declare the parameter and the section in the new file

As an example, a alignak.d/extra-conf.ini:

[DEFAULT]
; Override the default value
alignak_launched=1

statsd_host = 192.168.43.193
statsd_port = 2004
statsd_prefix = alignak-test
graphite_enabled = 1

[alignak-configuration]
retain_state_information=true
retention_update_interval=5

cfg=alignak.cfg

[daemon.broker-master]
; Change the default daemon port
port=17772