diff --git a/Dockerfiles/agent2/alpine/Dockerfile b/Dockerfiles/agent2/alpine/Dockerfile index 542abcea8..c50813024 100644 --- a/Dockerfiles/agent2/alpine/Dockerfile +++ b/Dockerfiles/agent2/alpine/Dockerfile @@ -61,20 +61,24 @@ RUN set -eux && \ zabbix && \ echo "zabbix ALL=(root) NOPASSWD: /usr/sbin/smartctl" >> /etc/sudoers.d/zabbix && \ mkdir -p ${ZABBIX_CONF_DIR} && \ + mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agentd.d && \ mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agent2.d && \ mkdir -p ${ZABBIX_USER_HOME_DIR} && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/buffer && \ chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chown --quiet zabbix:root ${ZABBIX_CONF_DIR}/ && \ chgrp -R 0 ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chgrp 0 ${ZABBIX_CONF_DIR} && \ chmod -R g=u ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chmod g=u ${ZABBIX_CONF_DIR} && \ diff --git a/Dockerfiles/agent2/centos/Dockerfile b/Dockerfiles/agent2/centos/Dockerfile index eb0b8744b..21f6ea93b 100644 --- a/Dockerfiles/agent2/centos/Dockerfile +++ b/Dockerfiles/agent2/centos/Dockerfile @@ -82,20 +82,24 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ zabbix && \ echo "zabbix ALL=(root) NOPASSWD: /usr/sbin/smartctl" >> /etc/sudoers.d/zabbix && \ mkdir -p ${ZABBIX_CONF_DIR} && \ + mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agentd.d && \ mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agent2.d && \ mkdir -p ${ZABBIX_USER_HOME_DIR} && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/buffer && \ chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chown --quiet zabbix:root ${ZABBIX_CONF_DIR}/ && \ chgrp -R 0 ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chgrp 0 ${ZABBIX_CONF_DIR} && \ chmod -R g=u ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chmod g=u ${ZABBIX_CONF_DIR} && \ diff --git a/Dockerfiles/agent2/ol/Dockerfile b/Dockerfiles/agent2/ol/Dockerfile index 61847010b..4d4a98862 100644 --- a/Dockerfiles/agent2/ol/Dockerfile +++ b/Dockerfiles/agent2/ol/Dockerfile @@ -69,20 +69,24 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ zabbix && \ echo "zabbix ALL=(root) NOPASSWD: /usr/sbin/smartctl" >> /etc/sudoers.d/zabbix && \ mkdir -p ${ZABBIX_CONF_DIR} && \ + mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agentd.d && \ mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agent2.d && \ mkdir -p ${ZABBIX_USER_HOME_DIR} && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/buffer && \ chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chown --quiet zabbix:root ${ZABBIX_CONF_DIR}/ && \ chgrp -R 0 ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chgrp 0 ${ZABBIX_CONF_DIR} && \ chmod -R g=u ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chmod g=u ${ZABBIX_CONF_DIR} && \ diff --git a/Dockerfiles/agent2/rhel/Dockerfile b/Dockerfiles/agent2/rhel/Dockerfile index 5d80364b4..3c26d5abe 100644 --- a/Dockerfiles/agent2/rhel/Dockerfile +++ b/Dockerfiles/agent2/rhel/Dockerfile @@ -103,20 +103,24 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \ zabbix && \ echo "zabbix ALL=(root) NOPASSWD: /usr/sbin/smartctl" >> /etc/sudoers.d/zabbix && \ mkdir -p ${ZABBIX_CONF_DIR} && \ + mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agentd.d && \ mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agent2.d && \ mkdir -p ${ZABBIX_USER_HOME_DIR} && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/buffer && \ chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chown --quiet zabbix:root ${ZABBIX_CONF_DIR}/ && \ chgrp -R 0 ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chgrp 0 ${ZABBIX_CONF_DIR} && \ chmod -R g=u ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chmod g=u ${ZABBIX_CONF_DIR} && \ diff --git a/Dockerfiles/agent2/ubuntu/Dockerfile b/Dockerfiles/agent2/ubuntu/Dockerfile index 75b39dded..5c5c0f8ea 100644 --- a/Dockerfiles/agent2/ubuntu/Dockerfile +++ b/Dockerfiles/agent2/ubuntu/Dockerfile @@ -65,20 +65,24 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \ zabbix && \ echo "zabbix ALL=(root) NOPASSWD: /usr/sbin/smartctl" >> /etc/sudoers.d/zabbix && \ mkdir -p ${ZABBIX_CONF_DIR} && \ + mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agentd.d && \ mkdir -p ${ZABBIX_CONF_DIR}/zabbix_agent2.d && \ mkdir -p ${ZABBIX_USER_HOME_DIR} && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/enc && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/enc_internal && \ mkdir -p ${ZABBIX_USER_HOME_DIR}/buffer && \ chown --quiet -R zabbix:root ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chown --quiet zabbix:root ${ZABBIX_CONF_DIR}/ && \ chgrp -R 0 ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chgrp 0 ${ZABBIX_CONF_DIR} && \ chmod -R g=u ${ZABBIX_CONF_DIR}/zabbix_agent2_item_keys.conf \ + ${ZABBIX_CONF_DIR}/zabbix_agentd.d/ \ ${ZABBIX_CONF_DIR}/zabbix_agent2.d/ \ ${ZABBIX_USER_HOME_DIR}/ && \ chmod g=u ${ZABBIX_CONF_DIR} && \