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-11 18:08:37.514023806 +0300
@@ -10,6 +10,8 @@
 # Default:
 # PidFile=/tmp/zabbix_agentd.pid
 
+PidFile=/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-11 18:09:33.899010319 +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=/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=/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.
@@ -522,6 +532,8 @@
 # Default:
 # FpingLocation=/usr/sbin/fping
 
+FpingLocation=/usr/bin/fping
+
 ### Option: Fping6Location
 #	Location of fping6.
 #	Make sure that fping6 binary has root ownership and SUID flag set.
@@ -531,6 +543,8 @@
 # Default:
 # Fping6Location=/usr/sbin/fping6
 
+Fping6Location=/usr/bin/fping6
+
 ### Option: SSHKeyLocation
 #	Location of public and private keys for SSH checks and actions.
 #
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-11 18:10:35.540819956 +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=/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=/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.
@@ -529,6 +541,8 @@
 # Default:
 # FpingLocation=/usr/sbin/fping
 
+FpingLocation=/usr/bin/fping
+
 ### Option: Fping6Location
 #	Location of fping6.
 #	Make sure that fping6 binary has root ownership and SUID flag set.
@@ -538,6 +552,8 @@
 # Default:
 # Fping6Location=/usr/sbin/fping6
 
+Fping6Location=/usr/bin/fping6
+
 ### Option: SSHKeyLocation
 #	Location of public and private keys for SSH checks and actions.
 #
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-11 18:07:35.925554062 +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,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
