mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
zabbix_agentd: Configfile reorganization
- Restrict default main config to only the bare minimum options and add upstream provided config as example file. - Remove /etc/zabbix_agentd from backup and instead add only zabbix_agentd.conf and subdirs 'scripts' and 'zabbix_agentd.d' to the backup. - Move ipfire managed userparameter_pakfire.conf from user managed dir /etc/zabbix_agentd/zabbix_agent.d to ipfire managed dir /var/ipfire/zabbix_agentd/userparameters - Add Include line to existing zabbix_agentd.conf to include the new ipfire managed config dir /var/ipfire/zabbix_agentd/... - Add and include mandatory IPFire specific agent configuration which should never be changed by the user. Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
This commit is contained in:
committed by
Peter Müller
parent
1d00837e7e
commit
e2d54d57d4
@@ -94,10 +94,19 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
-rmdir /etc/zabbix_agentd/zabbix_agentd.conf.d
|
||||
-mkdir -pv /etc/zabbix_agentd/zabbix_agentd.d
|
||||
-mkdir -pv /etc/zabbix_agentd/scripts
|
||||
# Move upstream supplied config out of the way for reference
|
||||
# and install our own version of the config.
|
||||
-mv /etc/zabbix_agentd/zabbix_agentd.conf \
|
||||
/etc/zabbix_agentd/zabbix_agentd.conf.example
|
||||
install -v -m 644 $(DIR_SRC)/config/zabbix_agentd/zabbix_agentd.conf \
|
||||
/etc/zabbix_agentd/zabbix_agentd.conf
|
||||
|
||||
# Install IPFire-specific Zabbix Agent config
|
||||
-mkdir -pv /var/ipfire/zabbix_agentd/userparameters
|
||||
install -v -m 644 $(DIR_SRC)/config/zabbix_agentd/zabbix_agentd_ipfire_mandatory.conf \
|
||||
/var/ipfire/zabbix_agentd/zabbix_agentd_ipfire_mandatory.conf
|
||||
install -v -m 644 $(DIR_SRC)/config/zabbix_agentd/userparameter_pakfire.conf \
|
||||
/etc/zabbix_agentd/zabbix_agentd.d/userparameter_pakfire.conf
|
||||
/var/ipfire/zabbix_agentd/userparameters/userparameter_pakfire.conf
|
||||
|
||||
# Create directory for additional agent modules
|
||||
-mkdir -pv /usr/lib/zabbix
|
||||
|
||||
Reference in New Issue
Block a user