# 这是Zabbix代理服务的配置文件(Windows)
# To get more information about Zabbix, visit http://www.zabbix.com
############ GENERAL PARAMETERS #################
### Option: LogType
# 指定日志消息被写到:
# system - Windows事件日志
# file - 使用LogFile参数指定的文件
# console - 标准输出
#
# Mandatory: no
# Default:
# LogType=file
### Option: LogFile
# LogType'file'参数的日志文件名。
#
# Mandatory: no
# Default:
# LogFile=
LogFile=c:\zabbix_agentd.log
### Option: LogFileSize
# 日志文件的最大大小(MB)。
# 0 - 禁用自动日志轮换。
# Mandatory: no
# Range: 0-1024
# Default:
# LogFileSize=1
### Option: DebugLevel
# 指定调试级别:
# 0 - 有关启动和停止Zabbix进程的基本信息
# 1 - 关键信息
# 2 - 错误信息
# 3 - 警告
# 4 - 用于调试(产生大量信息)
# 5 - 扩展调试(产生更多信息)
# Mandatory: no
# Range: 0-5
# Default:
# DebugLevel=3
### Option: SourceIP
# 传出连接的源IP地址。
#
# Mandatory: no
# Default:
# SourceIP=
### Option: EnableRemoteCommands
# 是否允许来自Zabbix服务器的远程命令。
# 0 - 不允许
# 1 - 允许
#
# Mandatory: no
# Default:
# EnableRemoteCommands=0
### Option: LogRemoteCommands
# 启用已执行的shell命令的日志记录作为警告。
# 0 - disabled
# 1 - 启用
#
# Mandatory: no
# Default:
# LogRemoteCommands=0
##### Passive checks related
### Option: Server
# 逗号分隔的IP地址列表,可选地以CIDR表示法或Zabbix服务器的主机名.
# 仅接受来自此处列出的主机的传入连接。
# 如果启用了IPv6支持,则“127.0.0.1”,“:: 127.0.0.1”,“:: ffff:127.0.0.1”将被平等对待,“:: / 0”将允许任何IPv4或IPv6地址。
# '0.0.0.0/0' can be used to allow any IPv4 address.
# Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.domain
#
# Mandatory: no
# Default:
# Server=
#zabbix server 地址
Server=::/0
### Option: ListenPort
# 代理将在此端口上侦听来自服务器的连接。
#
# Mandatory: no
# Range: 1024-32767
# Default:
# ListenPort=10050
### Option: ListenIP
# 代理应侦听的逗号分隔的IP地址列表。
# 如果连接到Zabbix服务器以检索活动检查列表,则会将第一个IP地址发送到Zabbix服务器。
#
# Mandatory: no
# Default:
# ListenIP=0.0.0.0
### Option: StartAgents
# 处理被动检查的zabbix_agentd的预分叉实例数。
# 如果设置为0,则禁用被动检查,并且代理将不会侦听任何TCP端口。
#
# Mandatory: no
# Range: 0-100
# Default:
# StartAgents=3
##### 主动检查相关
### Option: ServerActive
# 逗号分隔的IP列表:用于活动检查的Zabbix服务器的端口(或主机名:端口)对。
# 如果未指定port,则使用默认端口。
# 如果指定了该主机的端口,则必须将IPv6地址括在方括号中。
# 如果未指定port,则IPv6地址的方括号是可选的。
# 如果未指定此参数,则禁用活动检查。
# 例: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
#
# Mandatory: no
# Default:
# ServerActive=
#zabbix server地址</span>
ServerActive=10.2.1.236
### Option: Hostname
# 唯一的区分大小写的主机名。
# 主动检查必需,并且必须与服务器上配置的主机名匹配。
# 如果未定义,则从HostnameItem获取值。
#
# Mandatory: no
# Default:
# Hostname=
#agent 主机的hostname,注意在server端的配置,要与之一致
Hostname=10.2.1.119
### Option: HostnameItem
# 用于生成主机名的项目(如果未定义)。 如果定义了主机名,则忽略。
# 不支持UserParameters或别名。
#
#Mandatory: no
#Default:
#HostnameItem=system.hostname
### Option: HostMetadata
# 定义主机元数据的可选参数。
# 主机元数据用于主机自动注册过程.
# 代理将发出错误,如果值超过255个字符,则不会启动。
# 如果未定义,将从HostMetadataItem获取值。
#
# Mandatory: no
# Range: 0-255 characters
# Default:
# HostMetadata=
### Option: HostMetadataItem
# 可选参数,用于定义用于获取主机元数据的项目。
# 主机元数据用于主机自动注册过程。
# 在自动注册请求期间,代理将记录警告消息
# 指定项返回的值超过255个字符。
# 仅在未定义HostMetadata时使用此选项.
#
# Mandatory: no
# Default:
# HostMetadataItem=
### Option: RefreshActiveChecks
# 刷新活动检查列表的频率,以秒为单位。
#
# Mandatory: no
# Range: 60-3600
# Default:
# RefreshActiveChecks=120
### Option: BufferSend
# 不要在缓冲区中保留长于N秒的数据。
#
# Mandatory: no
# Range: 1-3600
# Default:
# BufferSend=5
### Option: BufferSize
# 内存缓冲区中的最大值数。 代理人将发送
# 如果缓冲区已满,则将所有收集的数据收集到Zabbix服务器或代理服务器。
#
# Mandatory: no
# Range: 2-65535
# Default:
# BufferSize=100
### Option: MaxLinesPerSecond
# 代理程序每秒向Zabbix Server发送的最大新行数
# 或代理处理'log','logrt'和'eventlog'主动检查。
# 提供的值将被参数'maxlines'覆盖,
# 在'log','logrt'或'eventlog'项目键中提供。
#
# Mandatory: no
# Range: 1-1000
# Default:
# MaxLinesPerSecond=20
############ ADVANCED PARAMETERS #################
### Option: Alias
# 设置项键的别名。 它可用于用较小和较简单的项替换长而复杂的项密钥。
# 可能存在多个别名参数。 不允许使用具有相同Alias键的多个参数。
# 不同的别名键可以引用相同的项键。
# 例如,要从服务器检索百分比中的页面文件使用情况:
# Alias=pg_usage:perf_counter[\Paging File(_Total)\% Usage]
# 现在可以使用速记键pg_usage来检索数据。
# 别名可以在HostMetadataItem中使用,但不能在HostnameItem或PerfCounter参数中使用。
#
# Mandatory: no
# Range:
# Default:
### Option: Timeout
# 在处理上花费的时间不超过超时秒。
#
# Mandatory: no
# Range: 1-30
# Default:
# Timeout=3
### Option: PerfCounter
# Syntax: <parameter_name>,"<perf_counter_path>",<period>
# 定义新参数<parameter_name>,它是指定时间段<period>(以秒为单位)的系统性能计数器<perf_counter_path>的平均值。
# 例如,如果您希望最后一分钟收到每秒平均处理器中断数,则可以按如下方式定义新参数“中断”:
# PerfCounter =中断,“\ Processor(0)\ Interrupts / sec”,60
# 请注意性能计数器路径周围的双引号。
# 计算平均值的样本将每秒进行一次。
# 您可以运行“typeperf -qx”以获取Windows中可用的所有性能计数器的列表。
#
# Mandatory: no
# Range:
# Default:
### Option: Include
# 您可以在配置文件中包含单个文件。
#
# Mandatory: no
# Default:
# Include=
# Include=c:\zabbix\zabbix_agentd.userparams.conf
# Include=c:\zabbix\zabbix_agentd.conf.d\
# Include=c:\zabbix\zabbix_agentd.conf.d\*.conf
####### USER-DEFINED MONITORED PARAMETERS #######
### Option: UnsafeUserParameters
# 允许所有字符在参数中传递给用户定义的参数。
# 不允许使用以下字符:
# \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
# Additionally, newline characters are not allowed.
# 0 - do not allow
# 1 - allow
#
# Mandatory: no
# Range: 0-1
# Default:
# UnsafeUserParameters=0
### Option: UserParameter
# 用户定义的要监视的参数。 可以有几个用户定义的参数。
# Format: UserParameter=<key>,<shell command>
#
# Mandatory: no
# Default:
# UserParameter=
####### TLS-RELATED PARAMETERS #######
### Option: TLSConnect
# 代理应如何连接到服务器或代理。 用于主动检查。
# 只能指定一个值:
# unencrypted - 连接没有加密
# psk - 使用TLS和预共享密钥进行连接
# cert - 使用TLS和证书连接
#
# Mandatory: 是的,如果定义了TLS证书或PSK参数(即使是'未加密'连接)
# Default:
# TLSConnect=unencrypted
### Option: TLSAccept
# 接受什么传入连接。
# 可以指定多个值,用逗号分隔:
# unencrypted - 接受没有加密的连接
# psk - 接受使用TLS和预共享密钥保护的连接
# cert - 接受使用TLS和证书保护的连接
#
# Mandatory: 是的,如果定义了TLS证书或PSK参数(即使是'未加密'连接)
# Default:
# TLSAccept=unencrypted
### Option: TLSCAFile
# 包含顶级CA(s)证书的文件的完整路径名
# 对等证书验证。
#
# Mandatory: no
# Default:
# TLSCAFile=
### Option: TLSCRLFile
# 包含已吊销证书的文件的完整路径名。
#
# Mandatory: no
# Default:
# TLSCRLFile=
### Option: TLSServerCertIssuer
# Allowed server certificate issuer.
#
# Mandatory: no
# Default:
# TLSServerCertIssuer=
### Option: TLSServerCertSubject
# Allowed server certificate subject.
#
# Mandatory: no
# Default:
# TLSServerCertSubject=
### Option: TLSCertFile
# Full pathname of a file containing the agent certificate or certificate chain.
#
# Mandatory: no
# Default:
# TLSCertFile=
### Option: TLSKeyFile
# Full pathname of a file containing the agent private key.
#
# Mandatory: no
# Default:
# TLSKeyFile=
### Option: TLSPSKIdentity
# Unique, case sensitive string used to identify the pre-shared key.
#
# Mandatory: no
# Default:
# TLSPSKIdentity=
### Option: TLSPSKFile
# Full pathname of a file containing the pre-shared key.
#
# Mandatory: no
# Default:
# TLSPSKFile=