Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support multilevel configuration #8
Today, we support a singlelevel configuration system with three possible locations for our configuration file:
Zabbix-cli checks for a configuration file in these locations and in this order and will use the first one that exists. This means that you can always override: 3) with 2) or 1), and 2) with 1).
In a multilevel configuration system we will not override the entire configuration file but we will merge all the defined configuration files and will use the parameters values defined in the configuration file with higher priority if a parameter is defined in more than one file.
With this implementation: