「Zabbix」- zabbix server.conf

  CREATED BY JENKINSBOT

通用参数

ListenPort

该参数是可选
取值范围:1024-32767
默认值:ListenPort=10051

SourceIP
发起连接时使用的IP地址。

该参数是可选
默认值:SourceIP=127.0.1.1

LogType
日志要写入的位置,该参数使可选的,默认值为file:

	* system  - 写入。yslog
	* file    - LogFile参数指定的位置。
	* console - 标准输出,即直接打印到控制台。

该参数是可选
默认值:LogType=file

LogFile
为LogType=file的参数指定日志文件的位置。

该参数是可选
默认值:LogFile=
配置文件中的默认值:LogFile=/tmp/zabbix_server.log

LogFileSize
日志文件的最大大小。以MB为单位。

该参数是可选
取值范围:0-1024。0:表示禁用日志轮转。
默认值:LogFileSize=1

DebugLevel
指定Debug的等级:

0 – basic information about starting and stopping of Zabbix processes

1 – critical information

2 – error information

3 – warnings

4 – for debugging (produces lots of information)

5 – extended debugging (produces even more information)

该参数是可选
取值范围:0-5
默认值:DebugLevel=3

PidFile
PID文件名。

该参数是可选
默认值:PidFile=/tmp/zabbix_server.pid

DBHost
数据主机名。对于MySQL,如果值为localhost,则会使用socket。对于PostgreSQL,如果设置为空字符串时,会使用socket。
If set to empty string, socket is used for PostgreSQL

该参数是可选
默认值:DBHost=127.0.0.1

DBName
数据库名。对于SQLite3,需要指出数据库文件的路径,并且会忽略DBUser和DBPassword。

该参数是必填参数
默认值:DBName=
配置文件默认值:DBName=zabbix

DBSchema
Schema名。用于IBM DB2和PostgreSQL.

该参数是可选
默认值:DBSchema=

DBUser
数据库用户名。SQLite3不需要指定。

该参数是可选
默认值:DBUser=
配置文件中的默认值:DBUser=root

DBPassword
数据库密码。SQLite3不需要指定。

该参数是可选
默认值:DBPassword=root,.

DBSocket
MySQL socket文件的位置。

该参数是可选
默认值:DBSocket=/tmp/mysql.sock

DBPort
数据库端口号。SQLite3不需要指定。

该参数是可选
取值范围:1024-65535
默认值(用于MySQL):DBPort=3306

高级参数

StartPollers
预先产生的Poller实例的数量。

该参数是可选
取值范围:0-1000
默认值:StartPollers=5

StartIPMIPollers
预先产生的IPMI Poller实例的数量。

该参数是可选
取值范围:0-1000
默认值:StartIPMIPollers=0

StartPollersUnreachable
Number of pre-forked instances of pollers for unreachable hosts (including IPMI and Java).
At least one poller for unreachable hosts must be running if regular, IPMI or Java pollers
are started.

该参数是可选
取值范围:0-1000
默认值:StartPollersUnreachable=1

StartTrappers
Number of pre-forked instances of trappers.
Trappers accept incoming connections from Zabbix sender, active agents and active proxies.
At least one trapper process must be running to display server availability and view queue
in the frontend.

该参数是可选
取值范围:0-1000
默认值:StartTrappers=5

StartPingers
Number of pre-forked instances of ICMP pingers.

该参数是可选
取值范围:0-1000
默认值:StartPingers=1

StartDiscoverers
Number of pre-forked instances of discoverers.

该参数是可选
取值范围:0-250
默认值:StartDiscoverers=1

StartHTTPPollers
Number of pre-forked instances of HTTP pollers.

该参数是可选
取值范围:0-1000
默认值:StartHTTPPollers=1

StartTimers
Number of pre-forked instances of timers.
Timers process time-based trigger functions and maintenance periods.
Only the first timer process handles the maintenance periods.

该参数是可选
取值范围:1-1000
默认值:StartTimers=1

StartEscalators
Number of pre-forked instances of escalators.

该参数是可选
取值范围:0-100
默认值:StartEscalators=1

JavaGateway
IP address (or hostname) of Zabbix Java gateway.
Only required if Java pollers are started.

该参数是可选
默认值:JavaGateway=

JavaGatewayPort
Port that Zabbix Java gateway listens on.

该参数是可选
取值范围:1024-32767
默认值:JavaGatewayPort=10052

StartJavaPollers
Number of pre-forked instances of Java pollers.

该参数是可选
取值范围:0-1000
默认值:StartJavaPollers=0

StartVMwareCollectors
Number of pre-forked vmware collector instances.

该参数是可选
取值范围:0-250
默认值:StartVMwareCollectors=0

VMwareFrequency
How often Zabbix will connect to VMware service to obtain a new data.

该参数是可选
取值范围:10-86400
默认值:VMwareFrequency=60

VMwarePerfFrequency
How often Zabbix will connect to VMware service to obtain performance data.

该参数是可选
取值范围:10-86400
默认值:VMwarePerfFrequency=60

VMwareCacheSize
Size of VMware cache, in bytes.
Shared memory size for storing VMware data.
Only used if VMware collectors are started.

该参数是可选
取值范围:256K-2G
默认值:VMwareCacheSize=8M

VMwareTimeout
Specifies how many seconds vmware collector waits for response from VMware service.

该参数是可选
取值范围:1-300
默认值:VMwareTimeout=10

SNMPTrapperFile
Temporary file used for passing data from SNMP trap daemon to the server.
Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file.

该参数是可选
默认值:SNMPTrapperFile=/tmp/zabbix_traps.tmp

StartSNMPTrapper
If 1, SNMP trapper process is started.

该参数是可选
取值范围:0-1
默认值:StartSNMPTrapper=0

ListenIP
List of comma delimited IP addresses that the trapper should listen on.
Trapper will listen on all network interfaces if this parameter is missing.

该参数是可选
默认值:ListenIP=0.0.0.0

ListenIP=127.0.0.1

HousekeepingFrequency
How often Zabbix will perform housekeeping procedure (in hours).
Housekeeping is removing outdated information from the database.
To prevent Housekeeper from being overloaded, no more than 4 times HousekeepingFrequency
hours of outdated information are deleted in one housekeeping cycle, for each item.
To lower load on server startup housekeeping is postponed for 30 minutes after server start.
With HousekeepingFrequency=0 the housekeeper can be only executed using the runtime control option.
In this case the period of outdated information deleted in one housekeeping cycle is 4 times the
period since the last housekeeping cycle, but not less than 4 hours and not greater than 4 days.

该参数是可选
取值范围:0-24
默认值:HousekeepingFrequency=1

MaxHousekeeperDelete
The table “housekeeper” contains “tasks” for housekeeping procedure in the format:
[housekeeperid], [tablename], [field], [value].
No more than ‘MaxHousekeeperDelete’ rows (corresponding to [tablename], [field], [value])
will be deleted per one task in one housekeeping cycle.
SQLite3 does not use this parameter, deletes all corresponding rows without a limit.
If set to 0 then no limit is used at all. In this case you must know what you are doing!

该参数是可选
取值范围:0-1000000
默认值:MaxHousekeeperDelete=5000

SenderFrequency
How often Zabbix will try to send unsent alerts (in seconds).

该参数是可选
取值范围:5-3600
默认值:SenderFrequency=30

CacheSize
Size of configuration cache, in bytes.
Shared memory size for storing host, item and trigger data.

该参数是可选
取值范围:128K-8G
默认值:CacheSize=8M

CacheUpdateFrequency
How often Zabbix will perform update of configuration cache, in seconds.

该参数是可选
取值范围:1-3600
默认值:CacheUpdateFrequency=60

StartDBSyncers
Number of pre-forked instances of DB Syncers.

该参数是可选
取值范围:1-100
默认值:StartDBSyncers=4

HistoryCacheSize
Size of history cache, in bytes.
Shared memory size for storing history data.

该参数是可选
取值范围:128K-2G
默认值:HistoryCacheSize=16M

HistoryIndexCacheSize
Size of history index cache, in bytes.
Shared memory size for indexing history cache.

该参数是可选
取值范围:128K-2G
默认值:HistoryIndexCacheSize=4M

TrendCacheSize
Size of trend cache, in bytes.
Shared memory size for storing trends data.

该参数是可选
取值范围:128K-2G
默认值:TrendCacheSize=4M

ValueCacheSize
Size of history value cache, in bytes.
Shared memory size for caching item history data requests.
Setting to 0 disables value cache.

该参数是可选
取值范围:0,128K-64G
默认值:ValueCacheSize=8M

Timeout
Specifies how long we wait for agent, SNMP device or external check (in seconds).

该参数是可选
取值范围:1-30
默认值:Timeout=3

Timeout=4

TrapperTimeout
Specifies how many seconds trapper may spend processing new data.

该参数是可选
取值范围:1-300
默认值:TrapperTimeout=300

UnreachablePeriod
After how many seconds of unreachability treat a host as unavailable.

该参数是可选
取值范围:1-3600
默认值:UnreachablePeriod=45

UnavailableDelay
How often host is checked for availability during the unavailability period, in seconds.

该参数是可选
取值范围:1-3600
默认值:UnavailableDelay=60

UnreachableDelay
How often host is checked for availability during the unreachability period, in seconds.

该参数是可选
取值范围:1-3600
默认值:UnreachableDelay=15

AlertScriptsPath
Full path to location of custom alert scripts.
Default depends on compilation options.

该参数是可选
默认值:AlertScriptsPath=${datadir}/zabbix/alertscripts

ExternalScripts
Full path to location of external scripts.
Default depends on compilation options.

该参数是可选
默认值:ExternalScripts=${datadir}/zabbix/externalscripts

FpingLocation
Location of fping.
Make sure that fping binary has root ownership and SUID flag set.

该参数是可选
默认值:FpingLocation=/usr/sbin/fping

Fping6Location
Location of fping6.
Make sure that fping6 binary has root ownership and SUID flag set.
Make empty if your fping utility is capable to process IPv6 addresses.

该参数是可选
默认值:Fping6Location=/usr/sbin/fping6

SSHKeyLocation
Location of public and private keys for SSH checks and actions.

该参数是可选
默认值:SSHKeyLocation=

LogSlowQueries
How long a database query may take before being logged (in milliseconds).
Only works if DebugLevel set to 3, 4 or 5.
0 – don’t log slow queries.

该参数是可选
取值范围:1-3600000
默认值:LogSlowQueries=0

LogSlowQueries=3000

TmpDir
Temporary directory.

该参数是可选
默认值:TmpDir=/tmp

StartProxyPollers
Number of pre-forked instances of pollers for passive proxies.

该参数是可选
取值范围:0-250
默认值:StartProxyPollers=1

ProxyConfigFrequency
How often Zabbix Server sends configuration data to a Zabbix Proxy in seconds.
This parameter is used only for proxies in the passive mode.

该参数是可选
取值范围:1-3600*24*7
默认值:ProxyConfigFrequency=3600

ProxyDataFrequency
How often Zabbix Server requests history data from a Zabbix Proxy in seconds.
This parameter is used only for proxies in the passive mode.

该参数是可选
取值范围:1-3600
默认值:ProxyDataFrequency=1

AllowRoot
Allow the server to run as ‘root’. If disabled and the server is started by ‘root’, the server
will try to switch to the user specified by the User configuration option instead.
Has no effect if started under a regular user.
0 – do not allow
1 – allow

该参数是可选
默认值:AllowRoot=1

User
Drop privileges to a specific, existing user on the system.
Only has effect if run as ‘root’ and AllowRoot is disabled.

该参数是可选
默认值:User=root

Include
You may include individual files or all files in a directory in the configuration file.
Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.

该参数是可选
默认值:Include=

Include=/usr/local/etc/zabbix_server.general.conf
Include=/usr/local/etc/zabbix_server.conf.d/
Include=/usr/local/etc/zabbix_server.conf.d/*.conf

SSLCertLocation
Location of SSL client certificates.
This parameter is used only in web monitoring.

该参数是可选
默认值:SSLCertLocation=${datadir}/zabbix/ssl/certs

SSLKeyLocation
Location of private keys for SSL client certificates.
This parameter is used only in web monitoring.

该参数是可选
默认值:SSLKeyLocation=${datadir}/zabbix/ssl/keys

SSLCALocation
Override the location of certificate authority (CA) files for SSL server certificate verification.
If not set, system-wide directory will be used.
This parameter is used only in web monitoring and SMTP authentication.

该参数是可选
默认值:SSLCALocation=

可加载模块相关参数

LoadModulePath
Zabbix Server模块的完整路径。默认值取决于编译选项,位于${libdir}/modules
该参数是可选的
默认值:LoadModulePath=${libdir}/modules

该参数是可选
默认值:LoadModulePath=${libdir}/modules

LoadModule
在Zabbix server启动时加载的模块。模块用于扩展Zabbix server的功能。
格式: LoadModule=<module.so>
该模块必须位于LoadModulePath指定的目录。它可以包括多个LoadModule参数。

该参数是可选
默认值:LoadModule=

TLS相关参数

TLSCAFile
用于对等证书验证的包含顶层文件CA(s)证书的完整路径名。

该参数是可选
默认值:TLSCAFile=

TLSCRLFile
包含吊销证书的文件的完整路径名

该参数是可选
默认值:TLSCRLFile=

TLSCertFile
包含代理的证书或证书链的文件的完整路径名。

该参数是可选
默认值:TLSCertFile=

TLSKeyFile
包含Server私钥的全路径名。

该参数是可选
默认值:TLSKeyFile=

参考文献

源码目录中的zabbix_server.conf文件