zabbix/SOURCES/agent2.conf.patch

40 lines
1.1 KiB
Diff

diff -urN zabbix-6.0.0alpha5.orig/src/go/conf/zabbix_agent2.conf zabbix-6.0.0alpha5/src/go/conf/zabbix_agent2.conf
--- zabbix-6.0.0alpha5.orig/src/go/conf/zabbix_agent2.conf 2021-10-11 13:30:51.773826173 +0300
+++ zabbix-6.0.0alpha5/src/go/conf/zabbix_agent2.conf 2021-10-11 13:35:07.332846424 +0300
@@ -10,6 +10,8 @@
# Default:
# PidFile=/tmp/zabbix_agent2.pid
+PidFile=/run/zabbix/zabbix_agent2.pid
+
### Option: LogType
# Specifies where log messages are written to:
# system - syslog
@@ -27,6 +29,8 @@
# Default:
# LogFile=/tmp/zabbix_agent2.log
+LogFile=/var/log/zabbix/zabbix_agent2.log
+
### Option: LogFileSize
# Maximum size of log file in MB.
# 0 - disable automatic log rotation.
@@ -36,6 +40,8 @@
# Default:
# LogFileSize=1
+LogFileSize=0
+
### Option: DebugLevel
# Specifies debug level:
# 0 - basic information about starting and stopping of Zabbix processes
@@ -259,6 +265,8 @@
# Default:
# Include=
+Include=/etc/zabbix/zabbix_agent2.d/*.conf
+
# Include=/usr/local/etc/zabbix_agent2.userparams.conf
# Include=/usr/local/etc/zabbix_agent2.conf.d/
# Include=/usr/local/etc/zabbix_agent2.conf.d/*.conf