diff -urN zabbix-5.0.12/conf/zabbix_agentd.conf zabbix-5.0.12-patched/conf/zabbix_agentd.conf
--- zabbix-5.0.12/conf/zabbix_agentd.conf 2021-05-24 11:21:12.000000000 +0300
+++ zabbix-5.0.12-patched/conf/zabbix_agentd.conf 2021-06-09 13:38:19.561653415 +0300
@@ -10,6 +10,8 @@
# Default:
# PidFile=/tmp/zabbix_agentd.pid
+PidFile=/var/run/zabbix/zabbix_agentd.pid
+
### Option: LogType
# Specifies where log messages are written to:
# system - syslog
@@ -27,7 +29,7 @@
# Default:
# LogFile=
-LogFile=/tmp/zabbix_agentd.log
+LogFile=/var/log/zabbix/zabbix_agentd.log
### Option: LogFileSize
# Maximum size of log file in MB.
@@ -38,6 +40,8 @@
# Default:
# LogFileSize=1
+LogFileSize=0
+
### Option: DebugLevel
# Specifies debug level:
# 0 - basic information about starting and stopping of Zabbix processes
@@ -302,6 +306,8 @@
# Default:
# Include=
+Include=/etc/zabbix/zabbix_agentd.d/*.conf
+
# Include=/usr/local/etc/zabbix_agentd.userparams.conf
# Include=/usr/local/etc/zabbix_agentd.conf.d/
# Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf
diff -urN zabbix-5.0.12/conf/zabbix_proxy.conf zabbix-5.0.12-patched/conf/zabbix_proxy.conf
--- zabbix-5.0.12/conf/zabbix_proxy.conf 2021-05-24 11:21:12.000000000 +0300
+++ zabbix-5.0.12-patched/conf/zabbix_proxy.conf 2021-06-09 13:40:44.055884862 +0300
@@ -88,7 +88,7 @@
# Default:
# LogFile=
-LogFile=/tmp/zabbix_proxy.log
+LogFile=/var/log/zabbix/zabbix_proxy.log
### Option: LogFileSize
# Maximum size of log file in MB.
@@ -99,6 +99,8 @@
# Default:
# LogFileSize=1
+LogFileSize=0
+
### Option: DebugLevel
# Specifies debug level:
# 0 - basic information about starting and stopping of Zabbix processes
@@ -138,6 +140,8 @@
# Default:
# PidFile=/tmp/zabbix_proxy.pid
+PidFile=/var/run/zabbix/zabbix_proxy.pid
+
### Option: SocketDir
# IPC socket directory.
# Directory to store IPC sockets used by internal Zabbix services.
@@ -146,6 +150,8 @@
# Default:
# SocketDir=/tmp
+SocketDir=/var/run/zabbix
+
### Option: DBHost
# Database host name.
# If set to localhost, socket is used for MySQL.
@@ -397,6 +403,8 @@
# Default:
# SNMPTrapperFile=/tmp/zabbix_traps.tmp
+SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
+
### Option: StartSNMPTrapper
# If 1, SNMP trapper process is started.
#
@@ -514,6 +522,8 @@
# Default:
# ExternalScripts=${datadir}/zabbix/externalscripts
+ExternalScripts=/usr/lib/zabbix/externalscripts
+
### Option: FpingLocation
# Location of fping.
# Make sure that fping binary has root ownership and SUID flag set.
diff -urN zabbix-5.0.12/conf/zabbix_server.conf zabbix-5.0.12-patched/conf/zabbix_server.conf
--- zabbix-5.0.12/conf/zabbix_server.conf 2021-05-24 11:21:12.000000000 +0300
+++ zabbix-5.0.12-patched/conf/zabbix_server.conf 2021-06-09 13:42:36.072497729 +0300
@@ -35,7 +35,7 @@
# Default:
# LogFile=
-LogFile=/tmp/zabbix_server.log
+LogFile=/var/log/zabbix/zabbix_server.log
### Option: LogFileSize
# Maximum size of log file in MB.
@@ -46,6 +46,8 @@
# Default:
# LogFileSize=1
+LogFileSize=0
+
### Option: DebugLevel
# Specifies debug level:
# 0 - basic information about starting and stopping of Zabbix processes
@@ -67,6 +69,8 @@
# Default:
# PidFile=/tmp/zabbix_server.pid
+PidFile=/var/run/zabbix/zabbix_server.pid
+
### Option: SocketDir
# IPC socket directory.
# Directory to store IPC sockets used by internal Zabbix services.
@@ -75,6 +79,8 @@
# Default:
# SocketDir=/tmp
+SocketDir=/var/run/zabbix
+
### Option: DBHost
# Database host name.
# If set to localhost, socket is used for MySQL.
@@ -356,6 +362,8 @@
# Default:
# SNMPTrapperFile=/tmp/zabbix_traps.tmp
+SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
+
### Option: StartSNMPTrapper
# If 1, SNMP trapper process is started.
#
@@ -512,6 +520,8 @@
# Default:
# AlertScriptsPath=${datadir}/zabbix/alertscripts
+AlertScriptsPath=/usr/lib/zabbix/alertscripts
+
### Option: ExternalScripts
# Full path to location of external scripts.
# Default depends on compilation options.
@@ -521,6 +531,8 @@
# Default:
# ExternalScripts=${datadir}/zabbix/externalscripts
+ExternalScripts=/usr/lib/zabbix/externalscripts
+
### Option: FpingLocation
# Location of fping.
# Make sure that fping binary has root ownership and SUID flag set.
diff -urN zabbix-5.0.12/src/go/conf/zabbix_agent2.conf zabbix-5.0.12-patched/src/go/conf/zabbix_agent2.conf
--- zabbix-5.0.12/src/go/conf/zabbix_agent2.conf 2021-05-24 11:21:13.000000000 +0300
+++ zabbix-5.0.12-patched/src/go/conf/zabbix_agent2.conf 2021-06-09 13:39:45.320831681 +0300
@@ -10,6 +10,8 @@
# Default:
# PidFile=/tmp/zabbix_agent2.pid
+PidFile=/var/run/zabbix/zabbix_agent2.pid
+
### Option: LogType
# Specifies where log messages are written to:
# system - syslog
@@ -27,7 +29,7 @@
# Default:
# LogFile=
-LogFile=/tmp/zabbix_agent2.log
+LogFile=/var/log/zabbix/zabbix_agent2.log
### Option: LogFileSize
# Maximum size of log file in MB.
@@ -38,6 +40,8 @@
# Default:
# LogFileSize=1
+LogFileSize=0
+
### Option: DebugLevel
# Specifies debug level:
# 0 - basic information about starting and stopping of Zabbix processes
@@ -261,6 +265,8 @@
# Default:
# Include=
+Include=/etc/zabbix/zabbix_agent2.d/*.conf
+
# Include=/usr/local/etc/zabbix_agentd.userparams.conf
# Include=/usr/local/etc/zabbix_agentd.conf.d/
# Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf