zabbix-server配置文件

# This is a configuration file for Zabbix server daemon
# To get more information about Zabbix, visit http://www.zabbix.com

############ GENERAL PARAMETERS #################
#基本参数
### Option: ListenPort
#    Listen port for trapper.
#
# Mandatory: no
# Range: 1024-32767
# Default:
# ListenPort=10051
# 说明zabbix服务端监听端口,用于接收客户端的采集数据

### Option: SourceIP
#    Source IP address for outgoing connections.
#
# Mandatory: no
# Default:
# SourceIP=
#说明:服务端监听IP

### Option: LogType
#    Specifies where log messages are written to:
#        system  - syslog
#        file    - file specified with LogFile parameter
#        console - standard output
#
# Mandatory: no
# Default:
# LogType=file
#说明:zabbix服务端日志存储方式,视具体情况指定

### Option: LogFile
#    Log file name for LogType 'file' parameter.
#
# Mandatory: no
# Default:
# LogFile=
#说明:zabbix服务端日志名称,视具体情况指定
LogFile=/var/log/zabbix/zabbix_server.log

### Option: LogFileSize
#    Maximum size of log file in MB.
#    0 - disable automatic log rotation.
#
# Mandatory: no
# Range: 0-1024
# Default:
# LogFileSize=1
#说明:日志达到多少M里就轮转;若此参数值为0时,则不轮转,日志将不断变大LogFileSize=0

### Option: DebugLevel
#    Specifies 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)
#
# Mandatory: no
# Range: 0-5
# Default:
# DebugLevel=3
#说明:日志级别

### Option: PidFile
#    Name of PID file.
#
# Mandatory: no
# Default:
# PidFile=/tmp/zabbix_server.pid
#说明:zabbix服务端程序PID文件路径
PidFile=/var/run/zabbix/zabbix_server.pid

### Option: DBHost
#    Database host name.
#    If set to localhost, socket is used for MySQL.
#    If set to empty string, socket is used for PostgreSQL.
#
# Mandatory: no
# Default:
DBHost=localhost
#说明:指定数据库IP信息,对于mysql,若设置为localhost则mysql用SOCKET来连接(需配合参数 DBSocket 使用),否则用IP连接;若DHHOST值为空,则默认连接PostgreSQL

### Option: DBName
#    Database name.
#    For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.
#
# Mandatory: yes
# Default:
# DBName=
#说明:服务端连接数据库的库名
DBName=zabbix

### Option: DBSchema
#    Schema name. Used for IBM DB2 and PostgreSQL.
#
# Mandatory: no
# Default:
# DBSchema=
#说明:专门用于 IBM DB2数据库的连接信息

### Option: DBUser
#    Database user. Ignored for SQLite.
#
# Mandatory: no
# Default:
# DBUser=
#说明:连接数据库的用户
DBUser=zabbix

### Option: DBPassword
#    Database password. Ignored for SQLite.
#    Comment this line if no password is used.
#
# Mandatory: no
# Default:
#说明:连接数据库的密码
DBPassword=P@ssw0rd

### Option: DBSocket
#    Path to MySQL socket.
#
# Mandatory: no
# Default:
# DBSocket=/tmp/mysql.sock
#说明:指定MYSQL的SOCK连接路径

### Option: DBPort
#    Database port when not using local socket. Ignored for SQLite.
#
# Mandatory: no
# Range: 1024-65535
# Default (for MySQL):
# DBPort=3306
#说明:指定连接数据库的端口

############ ADVANCED PARAMETERS ################
#高级参数
### Option: StartPollers
#    Number of pre-forked instances of pollers.
#
# Mandatory: no
# Range: 0-1000
# Default:
#说明:接收监控信息的进程数,初始化时,启动子进程数量,数量越多,则服务端吞吐能力越强,对系统资源消耗越大
StartPollers=15

### Option: StartIPMIPollers
#    Number of pre-forked instances of IPMI pollers.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartIPMIPollers=0
#说明:接收IPMI信息的进程数,主要用于IPMI技术获取硬件状态场景。若无相关监控项,默认设置为0

### Option: 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.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartPollersUnreachable=1
#说明:无法访问的主机的轮询器的进程数,默认情况下,zabbix会启用指定进程用于探测某些不可达主机的(含IPMI和java场景);如果启动了常规的IPMI或Java轮询器,则至少需要运行一个无法访问的主机的轮询器。

### Option: 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.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartTrappers=5
#说明:Trappers的进程数量,Trappers接受来自Zabbix agent,活动代理和活动代理的传入连接。至少必须运行一个陷阱进程才能在前端显示服务器可用性和查看队列,若客户端SNMP Trappers技术较多,建议加大此参数

### Option: StartPingers
#    Number of pre-forked instances of ICMP pingers.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartPingers=1
#说明:ICMP的获取icmp监控信息的进程数,用于设置启用icmp协议PING主机方式启动线程数量,若单台代理所管理机器超过500台,建议加大此数值

### Option: StartDiscoverers
#    Number of pre-forked instances of discoverers.
#
# Mandatory: no
# Range: 0-250
# Default:
# StartDiscoverers=1
说明:用于设置自动发现主机的进程数量,若单台代理所管理机器超过500台,可以考虑加大此数值(仅适用于直接AGENT场景)

### Option: StartHTTPPollers
#    Number of pre-forked instances of HTTP pollers.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartHTTPPollers=1
#说明:用于设置WEB监控进程数量,可视具体情况增加或减少此数值

### Option: 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.
#
# Mandatory: no
# Range: 1-1000
# Default:
# StartTimers=1
#说明:各实例计时器数量,主要用于触发器,标有维护标识的主机,但只第一个计时器用于计算维护标识主机

### Option: StartEscalators
#    Number of pre-forked instances of escalators.
#
# Mandatory: no
# Range: 0-100
# Default:
# StartEscalators=1
#说明:用于设置WEB监控线程数,可视具体情况增加或减少此数值

### Option: JavaGateway
#    IP address (or hostname) of Zabbix Java gateway.
#    Only required if Java pollers are started.
#
# Mandatory: no
# Default:
# JavaGateway=
#说明:Java网关的IP地址或主机名,JavaGateway场景下使用

### Option: JavaGatewayPort
#    Port that Zabbix Java gateway listens on.
#
# Mandatory: no
# Range: 1024-32767
# Default:
# JavaGatewayPort=10052
#说明:Java网关侦听的端口

### Option: StartJavaPollers
#    Number of pre-forked instances of Java pollers.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartJavaPollers=0
#说明:Java轮询器的预分支实例数

### Option: StartVMwareCollectors
#    Number of pre-forked vmware collector instances.
#
# Mandatory: no
# Range: 0-250
# Default:
# StartVMwareCollectors=0
#说明:VMware收集器进程数量,用于设置监控VMWARE Esxi主机实例时使用,若为0则不启用,若要监控ESXI主机,此值最少为1 ;视监控ESXI数量设置对应数值

### Option: VMwareFrequency
#    How often Zabbix will connect to VMware service to obtain a new data.
#
# Mandatory: no
# Range: 10-86400
# Default:
# VMwareFrequency=60
#说明:代理端访问 VMWARE service的频率,单位:秒

### Option: VMwarePerfFrequency
#    How often Zabbix will connect to VMware service to obtain performance data.
#
# Mandatory: no
# Range: 10-86400
# Default:
# VMwarePerfFrequency=60
#说明:代理端获取 VMWARE service性能数据的频率,单位:秒

### Option: VMwareCacheSize
#    Size of VMware cache, in bytes.
#    Shared memory size for storing VMware data.
#    Only used if VMware collectors are started.
#
# Mandatory: no
# Range: 256K-2G
# Default:
# VMwareCacheSize=8M
#说明:划出多少共享内存用于存储VMWARE数据

### Option: VMwareTimeout
#    Specifies how many seconds vmware collector waits for response from VMware service.
#
# Mandatory: no
# Range: 1-300
# Default:
# VMwareTimeout=10
#说明:指定vmware收集器等待VMware服务响应的秒数

### Option: 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.
#
# Mandatory: no
# Default:
# SNMPTrapperFile=/tmp/zabbix_traps.tmp
#说明:用于将数据从SNMP陷阱守护程序传递到服务器的临时文件。与zabbix_trap_receiver.pl或SNMPTT配置文件中的相同,指定SNMP Trapper时的临时文件,用于代理端启用SNMP Trapper功能时使用


### Option: StartSNMPTrapper
#    If 1, SNMP trapper process is started.
#
# Mandatory: no
# Range: 0-1
# Default:
# StartSNMPTrapper=0
#说明:如果1,启动SNMP陷阱进程(配合参数SNMPTrapperFile使用)

### Option: 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.
#
# Mandatory: no
# Default:
# ListenIP=0.0.0.0
#说明:启用SNMPTrapper,接收端监听的IP,此参数与StartSNMPTrapper,SNMPTrapperFile 联合使用
# ListenIP=127.0.0.1

### Option: 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.
#
# Mandatory: no
# Range: 0-24
# Default:
# HousekeepingFrequency=1
#说明:多少小时清理一次数据库的 history, alert, and alarms,以保持数据库轻便,建议保持默认

### Option: 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!
#
# Mandatory: no
# Range: 0-1000000
# Default:
# MaxHousekeeperDelete=5000
#说明:清理一次数据库的最大行数

### Option: SenderFrequency
#    How often Zabbix will try to send unsent alerts (in seconds).
#
# Mandatory: no
# Range: 5-3600
# Default:
# SenderFrequency=30
#说明:多少秒后重试发送失败的报警信息

### Option: CacheSize
#    Size of configuration cache, in bytes.
#    Shared memory size for storing host, item and trigger data.
#
# Mandatory: no
# Range: 128K-8G
# Default:
# CacheSize=32M
#说明;zabbix初始化时占用多少系统共享内存用于存储配置信息,存储主机,项目和触发器数据,视监控主机数量和监控项调整,建议调整到32M或者更大

### Option: CacheUpdateFrequency
#    How often Zabbix will perform update of configuration cache, in seconds.
#
# Mandatory: no
# Range: 1-3600
# Default:
# CacheUpdateFrequency=60
#说明:zabbix执行配置缓存的更新频率,若管理页面操作不频繁,可以考虑加大参数值

### Option: StartDBSyncers
#    Number of pre-forked instances of DB Syncers.
#
# Mandatory: no
# Range: 1-100
# Default:
# StartDBSyncers=4
#说明:将采集数据从缓存同步到数据库线程的数量,视数据库服务器I/O繁忙情况,和数据库写能力调整。数值越大,写能力越强。对数据库服务器I/O压力越大。

### Option: HistoryCacheSize
#    Size of history cache, in bytes.
#    Shared memory size for storing history data.
#
# Mandatory: no
# Range: 128K-2G
# Default:
# HistoryCacheSize=16M
#说明:历史缓存的大小,用于设置划分多少系统共享内存用于存储采集的历史数据,此数值越大,数据库读压力越小

### Option: HistoryIndexCacheSize
#    Size of history index cache, in bytes.
#    Shared memory size for indexing history cache.
#
# Mandatory: no
# Range: 128K-2G
# Default:
# HistoryIndexCacheSize=4M
#说明:历史索引缓存的大小,用于索引历史缓存的共享内存大小

### Option: TrendCacheSize
#    Size of trend cache, in bytes.
#    Shared memory size for storing trends data.
#
# Mandatory: no
# Range: 128K-2G
# Default:
# TrendCacheSize=4M
#说明:用于存储趋势数据的共享内存大小,此参数值从一定程度上可影响数据库读压力

### Option: ValueCacheSize
#    Size of history value cache, in bytes.
#    Shared memory size for caching item history data requests.
#    Setting to 0 disables value cache.
#
# Mandatory: no
# Range: 0,128K-64G
# Default:
# ValueCacheSize=8M
#说明:缓存项历史数据请求的共享内存大小,若监控项较多,建议加大此数值

### Option: Timeout
#    Specifies how long we wait for agent, SNMP device or external check (in seconds).
#
# Mandatory: no
# Range: 1-30
# Default:
# Timeout=3
#说明:超时设置,单位为秒;若自定义监控运行脚本提示超时,建议加大此数值。注意若此数值加大,应该考虑参数 StartPollers 是否有相应加大的必要。
Timeout=30

### Option: TrapperTimeout
#    Specifies how many seconds trapper may spend processing new data.
#
# Mandatory: no
# Range: 1-300
# Default:
# TrapperTimeout=300
#说明:启用 trapper功能,用于进程等待超时设置。根据需要调整

### Option: UnreachablePeriod
#    After how many seconds of unreachability treat a host as unavailable.
#
# Mandatory: no
# Range: 1-3600
# Default:
# UnreachablePeriod=45
#说明:当AGNET端处于不可用状态下,间隔多少秒后,尝试重新连接。建议根据具体情况设置。注意,若此数值过小,agent端业务系统繁忙时,有可能造成报警信息误报

### Option: UnavailableDelay
#    How often host is checked for availability during the unavailability period, in seconds.
#
# Mandatory: no
# Range: 1-3600
# Default:
# UnavailableDelay=60
#说明:在不可用期间内,主机检查可用性的频率(秒)。若出现可正常采集数据,但管理页面AGENT状态不正常;若在网络,端口等均通畅情况下,AGENT状态仍不正常,可以考虑加大此数值

### Option: UnreachableDelay
#    How often host is checked for availability during the unreachability period, in seconds.
#
# Mandatory: no
# Range: 1-3600
# Default:
# UnreachableDelay=15
#说明:当agent端处于不可达状态下,延迟多少秒后,进行重新尝试,建议保持默认,在AGENT接入调试阶段,可考虑减少此数值

### Option: AlertScriptsPath
#    Full path to location of custom alert scripts.
#    Default depends on compilation options.
#
# Mandatory: no
# Default:
# AlertScriptsPath=${datadir}/zabbix/alertscripts
#说明:监控报警脚本的路径
AlertScriptsPath=/usr/lib/zabbix/alertscripts

### Option: ExternalScripts
#    Full path to location of external scripts.
#    Default depends on compilation options.
#
# Mandatory: no
# Default:
# ExternalScripts=${datadir}/zabbix/externalscripts
#说明:自定义脚本存储路径
ExternalScripts=/usr/lib/zabbix/externalscripts

### Option: FpingLocation
#    Location of fping.
#    Make sure that fping binary has root ownership and SUID flag set.
#
# Mandatory: no
# Default:
# FpingLocation=/usr/sbin/fping

FpingLocation=/usr/bin/fping

### Option: 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.
#
# Mandatory: no
# Default:
# Fping6Location=/usr/sbin/fping6
#说明:IPv6 FPING命令路径,仅ROOT可用。注意使用此命令时,应该确认此命令是否存在
Fping6Location=/usr/bin/fping6

### Option: SSHKeyLocation
#    Location of public and private keys for SSH checks and actions.
#
# Mandatory: no
# Default:
# SSHKeyLocation=
#说明:用于SSH检查和操作的公钥和私钥位置在服务端需要SSH到AGENT端且采用用KEY验证方式时使用。

### Option: 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.
#
# Mandatory: no
# Range: 1-3600000
# Default:
# LogSlowQueries=0
#说明:用于服务端数据库慢查询功能(以毫秒为单位)。如果DebugLevel设置为3,4或5.0 - 不记录缓慢的查询,那么该方法是有效的
LogSlowQueries=3000

### Option: TmpDir
#    Temporary directory.
#
# Mandatory: no
# Default:
# TmpDir=/tmp
#说明:数据临时目录

### Option: StartProxyPollers
#    Number of pre-forked instances of pollers for passive proxies.
#
# Mandatory: no
# Range: 0-250
# Default:
# StartProxyPollers=1
#说明:启用多少子进程与代理端通信,若代理端较多可考虑加大此数值

### Option: 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.
#
# Mandatory: no
# Range: 1-3600*24*7
# Default:
# ProxyConfigFrequency=3600
#说明:Server向 Proxy发送配置文件数据的频率,仅适用于代理端为被动模式情况 下
 
### Option: 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.
#
# Mandatory: no
# Range: 1-3600
# Default:
# ProxyDataFrequency=1
#说明:Server向向Proxy请求数据的频率,仅适用代理端为被动模式情况下

### Option: 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
#
# Mandatory: no
# Default:
# AllowRoot=0
#说明:是否允许以root身份运行Server

### Option: User
#    Drop privileges to a specific, existing user on the system.
#    Only has effect if run as 'root' and AllowRoot is disabled.
#
# Mandatory: no
# Default:
# User=zabbix
#说明:运行zabbix的用户

### Option: 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.
#
# Mandatory: no
# Default:
# Include=
#说明:在一些情况下,软件的参数配置文件很长,为了方便管理,将配置文件切割成N个配置文件,但为了主配置参数文件的简洁,便会启用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

### Option: SSLCertLocation
#    Location of SSL client certificates.
#    This parameter is used only in web monitoring.
#
# Mandatory: no
# Default:
# SSLCertLocation=${datadir}/zabbix/ssl/certs
#说明:SSL客户端证书的位置。此参数仅用于Web监控。

### Option: SSLKeyLocation
#    Location of private keys for SSL client certificates.
#    This parameter is used only in web monitoring.
#
# Mandatory: no
# Default:
# SSLKeyLocation=${datadir}/zabbix/ssl/keys
#说明:SSL客户端私钥的位置。此参数仅用于Web监控

### Option: 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.
#
# Mandatory: no
# Default:
# SSLCALocation=
#说明:用于SSL服务器证书验证的(CA)文件的位置。此参数仅用于Web监控和SMTP认证

####### LOADABLE MODULES #######

### Option: LoadModulePath
#    Full path to location of server modules.
#    Default depends on compilation options.
#
# Mandatory: no
# Default:
# LoadModulePath=${libdir}/modules
#说明:服务器模块位置的完整路径。缺省取决于编译选项。

### Option: LoadModule
#    Module to load at server startup. Modules are used to extend functionality of the server.
#    Format: LoadModule=<module.so>
#    The modules must be located in directory specified by LoadModulePath.
#    It is allowed to include multiple LoadModule parameters.
#
# Mandatory: no
# Default:
# LoadModule=
#说明:在服务器启动时加载模块。模块用于扩展服务器的功能。格式:LoadModule = <module.so>模块必须位于LoadModulePath指定的目录中。允许包含多个LoadModule参数

####### TLS-RELATED PARAMETERS #######

### Option: TLSCAFile
#    Full pathname of a file containing the top-level CA(s) certificates for
#    peer certificate verification.
#
# Mandatory: no
# Default:
# TLSCAFile=
#说明:包含顶级CA证书的文件的完整路径名。

### Option: TLSCRLFile
#    Full pathname of a file containing revoked certificates.
#
# Mandatory: no
# Default:
# TLSCRLFile=
#说明:包含撤销证书的文件的完整路径名

### Option: TLSCertFile
#    Full pathname of a file containing the server certificate or certificate chain.
#
# Mandatory: no
# Default:
# TLSCertFile=
#说明:证书路径

### Option: TLSKeyFile
#    Full pathname of a file containing the server private key.
#
# Mandatory: no
# Default:
# TLSKeyFile=
#说明:zabbix server私钥路径

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值