1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
Last-Update: 2022-04-05
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: config defaults for Agent2
--- a/src/go/conf/zabbix_agent2.conf
+++ b/src/go/conf/zabbix_agent2.conf
@@ -9,8 +9,10 @@
# Mandatory: no
# Default:
# PidFile=/tmp/zabbix_agent2.pid
+PidFile=/run/zabbix/zabbix_agent2.pid
+
### Option: LogType
# Specifies where log messages are written to:
# system - syslog
# file - file specified with LogFile parameter
@@ -26,8 +28,10 @@
# Mandatory: yes, if LogType is set to file, otherwise no
# 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.
#
@@ -35,8 +39,10 @@
# Range: 0-1024
# Default:
# LogFileSize=1
+LogFileSize=0
+
### Option: DebugLevel
# Specifies debug level:
# 0 - basic information about starting and stopping of Zabbix processes
# 1 - critical information
@@ -281,8 +287,10 @@
# Mandatory: no
# 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
@@ -298,9 +306,9 @@
# Path to unix socket for external plugin communications.
#
# Mandatory: no
# Default:/tmp/agent.plugin.sock
-# PluginSocket=
+# PluginSocket=/run/zabbix/agent.plugin.sock
####### USER-DEFINED MONITORED PARAMETERS #######
### Option: UnsafeUserParameters
@@ -341,9 +349,9 @@
# Mandatory: no
# Default:
# ControlSocket=
-ControlSocket=/tmp/agent.sock
+ControlSocket=/run/zabbix/agent.sock
####### TLS-RELATED PARAMETERS #######
### Option: TLSConnect
|