9 Zabbix web 服务

概述

本节列出了 Zabbix web service配置文件 (zabbix_web_service.conf)中所有支持的参数。请注意:

  • 默认值表示的是进程默认值,而不是附带的配置文件中的值;
  • Zabbix仅支持UTF-8编码格式的配置文件,不支持 ;
  • 只支持在行首以“#”开头来注释。
AllowedIP

A list of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies. Incoming connections will be accepted only from the hosts listed here.
If IPv6 support is enabled then , ::127.0.0.1, ::ffff:127.0.0.1 are treated equally and ::/0 will allow any IPv4 or IPv6 address. can be used to allow any IPv4 address.

Example:

Mandatory: yes

DebugLevel

Specify the debug level:
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).

Default: 3
Range: 0-5

ListenPort

Default: 10053
Range: 1024-32767

LogFile

The name of the log file.

Example:

  1. /tmp/zabbix_web_service.log

Mandatory: Yes, if LogType is set to file; otherwise no

LogFileSize

The maximum size of a log file in MB.
0 - disable automatic log rotation.
Note: If the log file size limit is reached and file rotation fails, for whatever reason, the existing log file is truncated and started anew.

Default:
Range: 0-1024

LogType

Default: file

Timeout

Spend no more than Timeout seconds on processing.

Default: 3
Range: 1-30

TLSAccept

What incoming connections to accept:
unencrypted - accept connections without encryption (default)
cert - accept connections with TLS and a certificate

Default: unencrypted

TLSCAFile

The full pathname of the file containing the top-level CA(s) certificates for peer certificate verification, used for encrypted communications between Zabbix components.

TLSCertFile
TLSKeyFile

The full pathname of the file containing the service private key, used for encrypted communications between Zabbix components.