For my zabbix agents, I am able to do all my config by placing files in /etc/zabbix/zabbix_agent2.d and adding a PSK file to /etc/zabbix. When I upgrade an agent, I do not need to do anything with the config ... the upgrade takes care of the main config file automatically and does not disturb my customizations.
For my server, the only thing I changed in /etc/zabbix_server.conf was DBPassword. Every time I upgrade the server, it tells me I changed the config, and asks me how to deal with it. If I replace the config with the packaged version, Zabbix will not work because it doesn't have a password for the MySQL db. If I have it keep the config, then anything new that has been added or changed will not be present in my config. So what I want to do is put the DBPassword line into a file in a .d directory, so if the zabbix-server package wants to update the server config file, it can do that automatically. without interrupting the update to inform me that I changed the config.
I'm running 6.4.0-beta2 on Ubuntu Server 22.04 (jammy) using this project's official APT repository.
For my server, the only thing I changed in /etc/zabbix_server.conf was DBPassword. Every time I upgrade the server, it tells me I changed the config, and asks me how to deal with it. If I replace the config with the packaged version, Zabbix will not work because it doesn't have a password for the MySQL db. If I have it keep the config, then anything new that has been added or changed will not be present in my config. So what I want to do is put the DBPassword line into a file in a .d directory, so if the zabbix-server package wants to update the server config file, it can do that automatically. without interrupting the update to inform me that I changed the config.
I'm running 6.4.0-beta2 on Ubuntu Server 22.04 (jammy) using this project's official APT repository.
Comment