Zabbix Agent 配置文件说明


我们使用的服务器监控软件是 Zabbix,这是现在普遍使用的监控软件。
刚才我登录服务器上去看了下 zabbix agentd 的配置文件。由于我并没有经常使用 Zabbix, 所以有些参数需要重新了解加深下。

Zabbix agent 配置文件 zabbix_agentd.conf 说明

以下是我们的一个 zabbix_agentd.conf 配置文件,比较简单:



Server	no	List of comma delimited IP addresses (or hostnames) of Zabbix servers. 
Spaces are allowed since the Zabbix 2.2 version.
Incoming connections will be accepted only from the hosts listed here.
Note that hostnames must resolve hostname→IP address and IP address→hostname.
If IPv6 support is enabled then '', '::', '::ffff:' are treated equally.

StartAgents	no 0-100	3	Number of pre-forked instances of zabbix_agentd that process passive checks.
If set to 0, disables passive checks and the agent will not listen on any TCP port.
The upper limit used to be 16 before version 1.8.5.

Include	no	You may include individual files or all files in a directory in the configuration file.
To only include relevant files in the specified directory, 
the asterisk wildcard character is supported for pattern matching. 
For example: /absolute/path/to/config/files/*.conf. Pattern matching is supported since Zabbix 2.4.0.
See special notes about limitations.

LogFile	no			Name of log file.
If not set, syslog is used.

EnableRemoteCommands	no		0	Whether remote commands from Zabbix server are allowed.
0 - not allowed
1 - allowed

Timeout	no	1-30	3	Spend no more than Timeout seconds on processing

当然上面的配置文件中参数比较少,更多参数与中文说明参见文后 Ref 相关资料。


The parameters supported in a Zabbix agent configuration file (zabbix_agentd.conf)
zabbix_agentd.conf 配置文件详解
Zabbix Agent 端配置文件说明