Zabbix的agent_chonfig设定…

记录一下,方便以后变更查看

 

# This is a config file for the Zabbix agent daemon (Windows)
# To get more information about Zabbix, go to http://www.zabbix.com

############ GENERAL PARAMETERS #################

### 选项: 主机名称
# Unique, case sensitive hostname.
# Required for active checks and must match hostname as configured on the server.
# Value is acquired from HostnameItem if undefined.
#
# 强制性: no
# Default:
# Hostname=

Hostname=tf-wulin-230


### 选项: LogFile
# 日志文件的名称.
# 如果没有设置,Windows事件日志应用.
#
# 强制性: no
# Default:
# LogFile=
LogFile=c:\zabbix_agentd.log

### 选项: 日志文件大小
# 日志文件的最大大小(MB).
# 0 - disable automatic log rotation.
#
# 强制性: no
# 范围值: 0-1024
# Default:
LogFileSize=1

### 选项: 调试等级
# 指定调试级别
# 0 - 没有调试
# 1 - 关键信息
# 2 - 错误信息
# 3 - 警告
# 4 - 调试(产生大量的信息)
#
# 强制性: no
# 范围值: 0-4
# Default:
DebugLevel=2

### 选项: 源IP
# 源IP地址的传出连接.
#
# 强制性: no
# Default:
# SourceIP=

### 选项: 启用远程命令
# 是否允许Zabbix server 的远程命令.
# 0 - 不允许
# 1 - 允许
#
# 强制性: no
# Default:
# EnableRemoteCommands=0

### 选项: 登录远程命令
# 是否开启日志记录shell命令作为警告.
# 0 - 禁止
# 1 - 允许
#
# 强制性: no
# Default:
# LogRemoteCommands=0

##### 以下是被动选项

### 选项: Server
# IP地址列表,以逗号分隔不同的Zabbix服务器.
# 只有这里列出的主机地址,传入的连接才会被接受.
# 如果启用了IPv6的支持 '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' 书写的格式.
#
# 强制性: no
# Default:
# Server=

Server=zabbix.123.com,127.0.0.1

### 选项: 监听端口
# Agent代理将监听这个服务器的端口.
#
# 强制性: no
# 范围值: 1024-32767
# Default:
# ListenPort=10050

### 选项: 监听IP
# 代理会监听以下IP地址列表,以逗号分隔不同主机.
# 第一个IP地址发送给Zabbix服务器如果连接到它会检索主动检查清单.
#
# 强制性: no
# Default:
# ListenIP=

### 选项: agent开启进程数
# Number of pre-forked instances of zabbix_agentd that process passive checks.
# 如果设置为0,代理会禁用被动检查和不会听任何TCP端口。
#
# 强制性: no
# 范围值: 0-100
# Default:
# StartAgents=3

##### 以下是主动选项

### 选项: 服务器主动模式
# 列表:逗号分隔的IP端口(或主机:端口)的Zabbix服务器主动检查.
# 如果没有指定端口,默认端口是使用.
# 如果这种主机指定端口IPv6地址必须在方括号中.
# 如果没有指定端口,方括号的IPv6地址选项.
# 如果不指定此参数,主动检查将被禁用.
# 例子: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
#
# 强制性: no
# Default:
ServerActive=zabbix.123.com

 

### 选项: HostnameItem 主机名称的项目
# Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
# Does not support UserParameters or aliases.
#
# 强制性: no
# Default:
# HostnameItem=system.uname

### 选项: HostMetadata 主机的元数据
# 选项 parameter that defines host metadata.
# Host metadata is used at host auto-registration process.
# An agent will issue an error and not start if the value is over limit of 255 characters.
# If not defined, value will be acquired from HostMetadataItem.
#
# 强制性: no
# 范围值: 0-255 characters
# Default:
# HostMetadata=

### 选项: HostMetadataItem 主机元数据的项目
# 选项 parameter that defines an item used for getting host metadata.
# Host metadata is used at host auto-registration process.
# During an auto-registration request an agent will log a warning message if
# the value returned by specified item is over limit of 255 characters.
# This 选项 is only used when HostMetadata is not defined.
#
# 强制性: no
# Default:
# HostMetadataItem=

### 选项: 刷新主动检查
# 主动检查刷新的时间,单位为秒数.
#
# 强制性: no
# 范围值: 60-3600
# Default:
RefreshActiveChecks=180

### 选项: 数据缓冲的时间
# 不要让数据比缓冲慢N秒.
#
# 强制性: no
# 范围值: 1-3600
# Default:
# BufferSend=5

### 选项: agent数据缓冲区的大小,当达到该值便会发送所有的数据到zabbix server
# 在内存缓冲区的最大数值. 代理将发送
# 代理将所有收集的数据Zabbix服务器或代理如果缓冲是满的.
#
# 强制性: no
# 范围值: 2-65535
# Default:
BufferSize=300

### 选项: MaxLinesPerSecond zabbix agent发送给zabbix server最大的数据行
# Maximum number of new lines the agent will send per second to Zabbix Server
# or Proxy processing 'log', 'logrt' and 'eventlog' active checks.
# The provided value will be overridden by the parameter 'maxlines',
# provided in 'log', 'logrt' or 'eventlog' item keys.
#
# 强制性: no
# 范围值: 1-1000
# Default:
MaxLinesPerSecond=200

############ 高级的参数 #################

### 选项: Alias 别名
# Sets an alias for an item key. It can be used to substitute long and complex item key with a smaller and simpler one.
# Multiple Alias parameters may be present. Multiple parameters with the same Alias key are not allowed.
# Different Alias keys may reference the same item key.
# For example, to retrieve paging file usage in percents from the server:
# Alias=pg_usage:perf_counter[\Paging File(_Total)\% Usage]
# Now shorthand key pg_usage may be used to retrieve data.
# Aliases can be used in HostMetadataItem but not in HostnameItem or PerfCounter parameters.
#
# 强制性: no
# 范围值:
# Default:

### 选项: 超时
# 花费不超过超时秒处理
#
# 强制性: no
# 范围值: 1-30
# Default:
Timeout=20

### 选项: PerfCounter 性能计数器
# 语法: <parameter_name>,"<perf_counter_path>",<period>
# 新的参数设置 <parameter_name> 这是一个平均值的系统性能计数器 <perf_counter_path> 为指定的时间周期 <period> (in seconds).
# 例如,如果你想获得平均每秒处理器中断的最后一分钟,你可以定义新参数“中断”如下:
# PerfCounter = interrupts,"\Processor(0)\Interrupts/sec",60
# 请注意双引号的性能计数器路径.
# 每一秒计算平均值.
# 您可以运行“typeperf -qx”获得可用的Windows的所有性能计数器列表.
#
# 强制性: no
# 范围值:

# Default:


### 选项: Include 包括
# 你可以包括配置文件中的单个文件.
#
# 强制性: no
# Default:
# Include=

# Include=C:\zabbix_agents\userparams

####### 用户定义的参数 #######

### 选项: 不安全的用户参数
# 允许使用用户定义的参数.
# 0 - 不允许
# 1 - 允许
#
# 强制性: no
# 范围值: 0-1
# Default:
UnsafeUserParameters=1

### 选项: 用户参数
# 用户定义的参数监测。可以有多个用户定义的参数.
# 格式: UserParameter=<key>,<shell command>
#
# 强制性: no
# Default:

# net-snmp支持(主动模式)
# UserParameter=snmpget[*],c:\usr\bin\snmpget.exe -OaeQtUv0 -c public -v 1 localhost $1
#监控硬盘健康状态SMART


UserParameter=hdd.smart.crc.sda,C:\zabbix_agents\hddsmart\UDMA_CRC_Error_Count_sda.cmd

UserParameter=hdd.smart.crc.sdb,C:\zabbix_agents\hddsmart\UDMA_CRC_Error_Count_sdb.cmd

UserParameter=hdd.smart.crc.sdc,C:\zabbix_agents\hddsmart\UDMA_CRC_Error_Count_sdc.cmd

UserParameter=hdd.smart.crc.sdd,C:\zabbix_agents\hddsmart\UDMA_CRC_Error_Count_sdd.cmd

UserParameter=hdd.smart.crc.sde,C:\zabbix_agents\hddsmart\UDMA_CRC_Error_Count_sde.cmd

UserParameter=hdd.smart.crc.sdf,C:\zabbix_agents\hddsmart\UDMA_CRC_Error_Count_sdf.cmd

UserParameter=hdd.smart.crc.sdg,C:\zabbix_agents\hddsmart\UDMA_CRC_Error_Count_sdg.cmd


UserParameter=hdd.smart.cps.sda,C:\zabbix_agents\hddsmart\Current_Pending_Sector_sda.cmd

UserParameter=hdd.smart.cps.sdb,C:\zabbix_agents\hddsmart\Current_Pending_Sector_sdb.cmd

UserParameter=hdd.smart.cps.sdc,C:\zabbix_agents\hddsmart\Current_Pending_Sector_sdc.cmd

UserParameter=hdd.smart.cps.sdd,C:\zabbix_agents\hddsmart\Current_Pending_Sector_sdd.cmd

UserParameter=hdd.smart.cps.sde,C:\zabbix_agents\hddsmart\Current_Pending_Sector_sde.cmd

UserParameter=hdd.smart.cps.sdf,C:\zabbix_agents\hddsmart\Current_Pending_Sector_sdf.cmd

UserParameter=hdd.smart.cps.sdg,C:\zabbix_agents\hddsmart\Current_Pending_Sector_sdg.cmd


UserParameter=hdd.smart.rsc.sda,C:\zabbix_agents\hddsmart\Reallocated_Sector_Ct_sda.cmd

UserParameter=hdd.smart.rsc.sdb,C:\zabbix_agents\hddsmart\Reallocated_Sector_Ct_sdb.cmd

UserParameter=hdd.smart.rsc.sdc,C:\zabbix_agents\hddsmart\Reallocated_Sector_Ct_sdc.cmd

UserParameter=hdd.smart.rsc.sdd,C:\zabbix_agents\hddsmart\Reallocated_Sector_Ct_sdd.cmd

UserParameter=hdd.smart.rsc.sde,C:\zabbix_agents\hddsmart\Reallocated_Sector_Ct_sde.cmd

UserParameter=hdd.smart.rsc.sdf,C:\zabbix_agents\hddsmart\Reallocated_Sector_Ct_sdf.cmd

UserParameter=hdd.smart.rsc.sdg,C:\zabbix_agents\hddsmart\Reallocated_Sector_Ct_sdg.cmd


UserParameter=hdd.smart.tc.sda,C:\zabbix_agents\hddsmart\Temperature_Celsius_sda.cmd

UserParameter=hdd.smart.tc.sdb,C:\zabbix_agents\hddsmart\Temperature_Celsius_sdb.cmd

UserParameter=hdd.smart.tc.sdc,C:\zabbix_agents\hddsmart\Temperature_Celsius_sdc.cmd

UserParameter=hdd.smart.tc.sdd,C:\zabbix_agents\hddsmart\Temperature_Celsius_sdd.cmd

UserParameter=hdd.smart.tc.sde,C:\zabbix_agents\hddsmart\Temperature_Celsius_sde.cmd

UserParameter=hdd.smart.tc.sdf,C:\zabbix_agents\hddsmart\Temperature_Celsius_sdf.cmd

UserParameter=hdd.smart.tc.sdg,C:\zabbix_agents\hddsmart\Temperature_Celsius_sdg.cmd


UserParameter=hdd.smart.ou.sda,C:\zabbix_agents\hddsmart\Offline_Uncorrectable_sda.cmd

UserParameter=hdd.smart.ou.sdb,C:\zabbix_agents\hddsmart\Offline_Uncorrectable_sdb.cmd

UserParameter=hdd.smart.ou.sdc,C:\zabbix_agents\hddsmart\Offline_Uncorrectable_sdc.cmd

UserParameter=hdd.smart.ou.sdd,C:\zabbix_agents\hddsmart\Offline_Uncorrectable_sdd.cmd

UserParameter=hdd.smart.ou.sde,C:\zabbix_agents\hddsmart\Offline_Uncorrectable_sde.cmd

UserParameter=hdd.smart.ou.sdf,C:\zabbix_agents\hddsmart\Offline_Uncorrectable_sdf.cmd

UserParameter=hdd.smart.ou.sdg,C:\zabbix_agents\hddsmart\Offline_Uncorrectable_sdg.cmd


UserParameter=hdd.smart.rec.sda,C:\zabbix_agents\hddsmart\Reallocated_Event_Count_sda.cmd

UserParameter=hdd.smart.rec.sdb,C:\zabbix_agents\hddsmart\Reallocated_Event_Count_sdb.cmd

UserParameter=hdd.smart.rec.sdc,C:\zabbix_agents\hddsmart\Reallocated_Event_Count_sdc.cmd

UserParameter=hdd.smart.rec.sdd,C:\zabbix_agents\hddsmart\Reallocated_Event_Count_sdd.cmd

UserParameter=hdd.smart.rec.sde,C:\zabbix_agents\hddsmart\Reallocated_Event_Count_sde.cmd

UserParameter=hdd.smart.rec.sdf,C:\zabbix_agents\hddsmart\Reallocated_Event_Count_sdf.cmd

UserParameter=hdd.smart.rec.sdg,C:\zabbix_agents\hddsmart\Reallocated_Event_Count_sdg.cmd

 

UserParameter=hdd.smart.intel_rsc.sda,C:\zabbix_agents\hddsmart\intel_Reallocated_Sector_Ct_sda.cmd

UserParameter=hdd.smart.intel_rsc.sdb,C:\zabbix_agents\hddsmart\intel_Reallocated_Sector_Ct_sdb.cmd

UserParameter=hdd.smart.intel_rsc.sdc,C:\zabbix_agents\hddsmart\intel_Reallocated_Sector_Ct_sdc.cmd

UserParameter=hdd.smart.intel_rsc.sdd,C:\zabbix_agents\hddsmart\intel_Reallocated_Sector_Ct_sdd.cmd

UserParameter=hdd.smart.intel_rsc.sde,C:\zabbix_agents\hddsmart\intel_Reallocated_Sector_Ct_sde.cmd

UserParameter=hdd.smart.intel_rsc.sdf,C:\zabbix_agents\hddsmart\intel_Reallocated_Sector_Ct_sdf.cmd

UserParameter=hdd.smart.intel_rsc.sdg,C:\zabbix_agents\hddsmart\intel_Reallocated_Sector_Ct_sdg.cmd


UserParameter=hdd.smart.intel_sdc.sda,C:\zabbix_agents\hddsmart\intel_SATA_Downshift_Count_sda.cmd
UserParameter=hdd.smart.intel_sdc.sdb,C:\zabbix_agents\hddsmart\intel_SATA_Downshift_Count_sdb.cmd
UserParameter=hdd.smart.intel_sdc.sdc,C:\zabbix_agents\hddsmart\intel_SATA_Downshift_Count_sdc.cmd
UserParameter=hdd.smart.intel_sdc.sdd,C:\zabbix_agents\hddsmart\intel_SATA_Downshift_Count_sdd.cmd
UserParameter=hdd.smart.intel_sdc.sde,C:\zabbix_agents\hddsmart\intel_SATA_Downshift_Count_sde.cmd
UserParameter=hdd.smart.intel_sdc.sdf,C:\zabbix_agents\hddsmart\intel_SATA_Downshift_Count_sdf.cmd
UserParameter=hdd.smart.intel_sdc.sdg,C:\zabbix_agents\hddsmart\intel_SATA_Downshift_Count_sdg.cmd

UserParameter=hdd.smart.intel_crc.sda,C:\zabbix_agents\hddsmart\intel_CRC_Error_Count_sda.cmd
UserParameter=hdd.smart.intel_crc.sdb,C:\zabbix_agents\hddsmart\intel_CRC_Error_Count_sdb.cmd
UserParameter=hdd.smart.intel_crc.sdc,C:\zabbix_agents\hddsmart\intel_CRC_Error_Count_sdc.cmd
UserParameter=hdd.smart.intel_crc.sdd,C:\zabbix_agents\hddsmart\intel_CRC_Error_Count_sdd.cmd
UserParameter=hdd.smart.intel_crc.sde,C:\zabbix_agents\hddsmart\intel_CRC_Error_Count_sde.cmd
UserParameter=hdd.smart.intel_crc.sdf,C:\zabbix_agents\hddsmart\intel_CRC_Error_Count_sdf.cmd
UserParameter=hdd.smart.intel_crc.sdg,C:\zabbix_agents\hddsmart\intel_CRC_Error_Count_sdg.cmd

UserParameter=hdd.smart.mwi.sda,C:\zabbix_agents\hddsmart\Media_Wearout_Indicator_sda.cmd
UserParameter=hdd.smart.mwi.sdb,C:\zabbix_agents\hddsmart\Media_Wearout_Indicator_sdb.cmd
UserParameter=hdd.smart.mwi.sdc,C:\zabbix_agents\hddsmart\Media_Wearout_Indicator_sdc.cmd
UserParameter=hdd.smart.mwi.sdd,C:\zabbix_agents\hddsmart\Media_Wearout_Indicator_sdd.cmd
UserParameter=hdd.smart.mwi.sde,C:\zabbix_agents\hddsmart\Media_Wearout_Indicator_sde.cmd
UserParameter=hdd.smart.mwi.sdf,C:\zabbix_agents\hddsmart\Media_Wearout_Indicator_sdf.cmd
UserParameter=hdd.smart.mwi.sdg,C:\zabbix_agents\hddsmart\Media_Wearout_Indicator_sdg.cmd

 

posted @ 2015-12-24 09:05  joneskill  阅读(1032)  评论(0编辑  收藏  举报