File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
rootfs/container/base/modules
zabbix/rootfs/container/base/functions/monitoring Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 55 - Binary Check for Logshipping not working due to hyphens
66 - Fluent-bit module not executing properly
77 - Add ca-certificates for alpine variant
8+ - Properly output Zabbix Agent versions
9+ - Fluent-bit 4.2.2
810
911## 2025.12.0 2025-12-19 <code at nfrastack dot com >
1012
1113 - Initial Tagged release
1214 - Alpine 3.5 -> 3.23 support
1315 - Debian Bookworm and Trixie Support
1416
15-
Original file line number Diff line number Diff line change 22#
33# SPDX-License-Identifier: MIT
44
5- FLUENTBIT_VERSION=${FLUENTBIT_VERSION:-"v4.2.1 "}
5+ FLUENTBIT_VERSION=${FLUENTBIT_VERSION:-"v4.2.2 "}
66FLUENTBIT_REPO_URL=${FLUENTBIT_REPO_URL:-"https://github.com/fluent/fluent-bit"}
77
88FLUENTBIT_BINARY=/usr/bin/fluent-bit
Original file line number Diff line number Diff line change 148148 chown -R "${ZABBIX_USER}":root \
149149 "${ZABBIX_AGENT_LOG_PATH}" \
150150 "${ZABBIX_CONFIG_PATH}"
151- chmod 775 "${ZABBIX_CONFIG_PATH}"
151+ chmod 770 "${ZABBIX_CONFIG_PATH}"
152152 create_logrotate zabbix-agent "${ZABBIX_AGENT_LOG_PATH%/}"/"${ZABBIX_AGENT_LOG_FILE}" zabbix-agent-${logship_version} "${ZABBIX_USER}" root
153153 print_notice "Container configured for monitoring with '${CONTAINER_MONITORING_BACKEND} ${ZABBIX_AGENT_TYPE}'"
154154}
@@ -160,11 +160,13 @@ nfra_configure_monitoring_zabbix_run() {
160160 print_debug "Starting classic Zabbix Agent"
161161 zabbix_command="zabbix_agentd"
162162 zabbix_agent_type="classic"
163+ ZABBIX_VERSION=$(${zabbix_command} --version | head -n1 | awk '{print $4}')
163164 ;;
164165 "2" | "m" | "n" | "modern" | "new" )
165166 print_debug "Starting modern Zabbix agent"
166167 zabbix_command="zabbix_agent2"
167168 zabbix_agent_type="modern"
169+ ZABBIX_VERSION=$(${zabbix_command} -V | head -n1 | awk '{print $3}')
168170 ;;
169171 * )
170172 print_debug "No known Zabbix agent type selected"
@@ -198,7 +200,7 @@ nfra_configure_monitoring_zabbix_run() {
198200 setfacl -m g:fail2ban:rwx /var/run/fail2ban/fail2ban.sock
199201 fi
200202
201- print_start "Starting Zabbix Agent (${zabbix_agent_type}) ${ZABBIX_VERSION} "
203+ print_start "Starting Zabbix Agent ${ZABBIX_VERSION} (${zabbix_agent_type}) "
202204 output_on
203205 silent exec s6-setuidgid "${ZABBIX_USER}" ${zabbix_command} -c "${ZABBIX_CONFIG_PATH%/}"/"${ZABBIX_CONFIG_FILE}" -f
204206}
You can’t perform that action at this time.
0 commit comments