:default_owner	root:root
:default_mode	440

zabbix_agentd.conf	/etc/zabbix/


# this is needed for backward compatibility with zabbix-agent <= 5
#
# v5 agent, that actually we install on clients, writes logs in
# /var/log/zabbix-agent, and we have this in the config file
# 
# v6 agent writes logs in /var/log/zabbix, and the package doesn't
# create /var/log/zabbix-agent directory;
#
# we install the default zabbix-agent pacakge from devuan distros,
# that are, at the moment, on v5
# on zabbix server the packages are downloaded directly from zabbix
# repos (see /etc/apt/sources.list.d/zabbix.list), that are on v6
#
# since we activate the cli-zabbix module on the server, and the
# the config file is overwritten by our, that is tailored for v5
# agent, we have a problem: need to create logdir by hand
#
# more on this: the default dir is created with 0755 (world
# readable, and the logfiles are world redable, too ... WTF!)
#
# the same is for /etc/zabbix/zabbix_agentd.d directory, that is
# called /etc/zabbix/zabbix_agentd.conf.d in v5 (in this case we
# move the v5 dir to v6, that have a better, logical, name)
#
:extdir /var/log/zabbix-agent		zabbix:zabbix 0750
:extdir /etc/zabbix/zabbix_agentd.d	root:root 0750
