zabbix官方文檔:https://www.zabbix.com/documentation/4.0/zh/manual
############ GENERAL PARAMETERS #################
### Option: ListenPort
# Listen port for trapper.
# 服務端監聽端口,用於接收二級代理Proxy或直連AGENT的采集數據
# Mandatory: no
# Range: 1024-32767
# Default:
# ListenPort=10051
### Option: SourceIP
# Source IP address for outgoing connections.
# 對外連接的源IP地址,即使用哪個IP地址向外發起連接(zabbix_get)
# Mandatory: no
# Default:
# SourceIP=
### Option: LogType
# Specifies where log messages are written to:
# system - syslog
# file - file specified with LogFile parameter
# console - standard output
# 日志輸出類型:
# file - 寫入LogFile 參數指定的日志文件中,
# system - 寫入Windows事件日志,
# console - 控制台輸出.Zabbix 3.0.0后支持該參數
# Mandatory: no
# Default:
# LogType=file
### Option: LogFile
# Log file name for LogType 'file' parameter.
# zabbix服務端日志路徑,LogType的類型必須是file
# Mandatory: no
# Default:
# LogFile=
LogFile=/var/log/zabbix/zabbix_server.log
### Option: LogFileSize
# Maximum size of log file in MB.
# 0 - disable automatic log rotation.
# 日志達到多少M就輪替;若此參數值為0時,則不輪轉,日志將不斷變大,建議設置成輪轉(注意: 如果日志文件達到限定的大小,文件輪替失敗, 不管是什么原因, 現有的日志會被截斷,並重新記錄日志.)
# Mandatory: no
# Range: 0-1024
# Default:
# LogFileSize=1
### 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)
# 指定調試等級:
0 - Zabxxi進程起停的基本信息
1 - 重要信息
2 - 錯誤信息
3 - 警告信息
4 - 調試 (產生大量信息)
5 - 擴展調試 (產生更多信息)
# Mandatory: no
# Range: 0-5
# Default:
# DebugLevel=3
### Option: PidFile
# Name of PID file.
# PID文件保存的全路徑
# Mandatory: no
# Default:
# PidFile=/tmp/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.
# 數據庫主機名.如果是 localhost 或 空字符串會使用 socket. 如果是 PostgreSQL只有空字符串會使用 socket.
# Mandatory: no
# Default:
DBHost=127.0.0.1
### Option: DBName
# Database name.
# For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.
# 數據庫名稱.對於 SQLite3 必須提供數據庫文件路徑. 數據庫用戶名和密碼可以忽略.
# Mandatory: yes
# Default:
# DBName=
DBName=zabbix
### Option: DBSchema
# Schema name. Used for IBM DB2 and PostgreSQL.
# Schema名字. IBM DB2 和 PostgreSQL使用
# Mandatory: no
# Default:
# DBSchema=
### Option: DBUser
# Database user. Ignored for SQLite.
# 數據庫用戶名,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=zabbix
### Option: DBSocket
# Path to MySQL socket.
# MySQL socket的路徑。
# Mandatory: no
# Default:
DBSocket=/tmp/mysql.sock
### Option: DBPort
# Database port when not using local socket. Ignored for SQLite.
# 當不使用本地socket時,所使用的數據庫端口,SQLite忽略該參數
# Mandatory: no
# Range: 1024-65535
# Default (for MySQL):
# DBPort=3306
############ ADVANCED PARAMETERS(高級參數) ################
### Option: StartPollers
# Number of pre-forked instances of pollers.
# 初始化啟動時,啟動子進程輪詢器的數量,數量越多,則服務端吞吐能力越強,對系統資源消耗越大(在版本1.8.5之前,上限是255)
# Mandatory: no
# Range: 0-1000
# Default:
# StartPollers=5
### Option: StartIPMIPollers
# Number of pre-forked instances of IPMI pollers.
# 初始化啟動時,啟動IPMI子進程輪詢器的數量,數量越多,則服務端吞吐能力越強,對系統資源消耗越大 , 主要用於IPMI技術用於獲取硬件狀態場景。若無相關監控項,建議設置為0在版本1.8.5之前,上限是255)
# 如果使用IPMI監控agent,這里必須至少啟動一個輪詢器
# Mandatory: no
# Range: 0-1000
# Default:
# StartIPMIPollers=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.
# 默認情況下,ZABBIX會啟用指定進程用於探測某些不可到達主機(含IPMI和Java場景);若使用場景中含有代理端,建議保持默認!!!
若直接agent較多,可視具體情況調整從Zabbix 2.4.0開始,如果有常規的(agent或snmp)、IPMI或Java輪詢器啟動,那么至少有一個針對不可訪問主機的輪詢器必須運行!!!!
(在版本1.8.5之前,上限是255。這個參數在Zabbix 1.8.3之后得到了支持)
# Mandatory: no
# Range: 0-1000
# Default:
# StartPollersUnreachable=1
### 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.
# Trappers接受來自Zabbix sender、主動agents和主動proxies的傳入連接。 至少要運行一個trapper進程來顯示前端的服務器可用性和視圖隊列!!!!
# Mandatory: no
# Range: 0-1000
# Default:
# StartTrappers=5
### Option: StartPingers
# Number of pre-forked instances of ICMP pingers.
# ICMP pingers進程實例數量。單台代理所管理機器超過500台,建議加大此數值!!!! 1.8.5以前最大數值為255
# Mandatory: no
# Range: 0-1000
# Default:
# StartPingers=1
### Option: StartDiscoverers
# Number of pre-forked instances of discoverers.
# 設置用於自動發現主機的線程數量,若單台代理所管理機器超過500台,可以考慮加大此數值(僅適用於直接AGENT場景)!!!! 1.8.5以前最大數值為255
# Mandatory: no
# Range: 0-250
# Default:
# StartDiscoverers=1
### Option: StartHTTPPollers
# Number of pre-forked instances of HTTP pollers.
# HTTP 輪詢器子進程實例個數,1.8.5以前最大數值為255
# Mandatory: no
# Range: 0-1000
# Default:
# StartHTTPPollers=1
### 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.
# 計時器子進程實例數量,計時器處理基於時間的觸發器函數和維護周期 主要用於觸發器,標有維護標識的主機,但只第一個計時器用於計算維護標識主機 這個參數在Zabbix 2.2.0之后得到了支持
# Mandatory: no
# Range: 1-1000
# Default:
# StartTimers=1
### Option: StartEscalators
# Number of pre-forked instances of escalators.
# 檢查Escalations的進程,這張表好像是告警事件表
# Mandatory: no
# Range: 0-100
# Default:
# StartEscalators=1
### Option: JavaGateway
# IP address (or hostname) of Zabbix Java gateway.
# Only required if Java pollers are started.
# Zabbix JAVA 網關的IP地址或主機名,只有當Java輪詢器進程啟動才需要該參數
# Mandatory: no
# Default:
# JavaGateway=
### Option: JavaGatewayPort
# Port that Zabbix Java gateway listens on.
# zabbix java網關監聽的端口
# Mandatory: no
# Range: 1024-32767
# Default:
# JavaGatewayPort=10052
### Option: StartJavaPollers
# Number of pre-forked instances of Java pollers.
# java輪詢器預啟動的進程數
# Mandatory: no
# Range: 0-1000
# Default:
# StartJavaPollers=0
### Option: StartVMwareCollectors
# Number of pre-forked vmware collector instances.
# 用於設置監控VMWARE Esxi主機實例時使用,若為0則不啟用,若要監控ESXI主機,此值最少為1 ;視監控ESXI數量設置對應數值!!!!
# StartVMwareCollectors=0
# Mandatory: no
# Range: 0-250
# Default:
# StartVMwareCollectors=0
### Option: VMwareFrequency
# How often Zabbix will connect to VMware service to obtain a new data.
# 代理端訪問 VMWARE service的頻率(官方:在單個VMware服務的數據收集之間延遲幾秒)。此延遲應該設置為任一VMware監視項的最小更新間隔(單位:秒)。這個參數在Zabbix 2.2.0之后得到了支持
# Mandatory: no
# Range: 10-86400
# Default:
# VMwareFrequency=60
### Option: VMwarePerfFrequency
# How often Zabbix will connect to VMware service to obtain performance data.
# 多久agent Zabbix會連接到VMware的服務來獲取性能數據。該延遲應該設置為任一VMware監控的監控項(使用VMware性能計數器)最小更新間隔。 Zabbix 2.2.9, 2.4.4后支持該參數
# Mandatory: no
# Range: 10-86400
# Default:
# VMwarePerfFrequency=60
### Option: VMwareCacheSize
# Size of VMware cache, in bytes.
# Shared memory size for storing VMware data.
# Only used if VMware collectors are started.
# 存儲VMware數據的共享內存大小。
VMware內部檢查[vmware,buffer,…] 可以用來監控VMware緩存使用情況,只有當VMare collector啟動時才使用使用該參數 (參考:內部檢查)注意:如果沒有配置好啟動的vmware收集器實例,那么共享內存就不會被分配。\\這個參數在Zabbix 2.2.0之后得到了支持
# Mandatory: no
# Range: 256K-2G
# Default:
# VMwareCacheSize=8M
### Option: VMwareTimeout
# Specifies how many seconds vmware collector waits for response from VMware service.
# 指定VMware收集器從VMware服務等待響應的秒數。vmware采集器等等 VMware 服務(vCenter or ESX 管理程序)響應的最大時長.Zabbix 2.2.9, 2.4.4后支持該參數
# Mandatory: no
# Range: 1-300
# Default:
# VMwareTimeout=10
### Option: SNMPTrapperFile
# Temporary file used for passing data from SNMP trap daemon to the server.
#用戶從SNMP trap守護程序傳遞數據到zabbix server的臨時文件
# Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file.
#文件路徑必須與zabbix_trap_receiver.pl腳本或SNMPTT配置文件中相同
# Mandatory: no
# Default:
# SNMPTrapperFile=/tmp/zabbix_traps.tmp
### Option: StartSNMPTrapper
# If 1, SNMP trapper process is started.
# 如果為1,snmp trapper進程被啟動
# Mandatory: no
# Range: 0-1
# Default:
# StartSNMPTrapper=0
### 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.
#說明:zabbix服務監聽的Ip地址,多個IP用逗號分開.如果沒有該參數,會監聽所有網絡接口.Zabbix 1.8.3開始支持多Ip地址.即使用哪個IP對外提供服務
# Mandatory: no
# Default:
#ListenIP=0.0.0.0
### 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.
# 多少小時清理一次代理端數據庫的history, alert, and alarms,以保持代理端數據庫輕便,建議保持默認
# Mandatory: no
# Range: 0-24
# Default:
# HousekeepingFrequency=1
### 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).
# Zabbix重新發送失敗報警的頻率 (單位秒).
# 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.
# 用於存儲主機、監控項、觸發器數據的共享內存大小.Zabbix2.2.3版本前最大可配置值為2GB
# Mandatory: no
# Range: 128K-8G
# Default:
CacheSize=8M
### Option: CacheUpdateFrequency
# How often Zabbix will perform update of configuration cache, in seconds.
# Zabbix緩存更新頻率, 單位秒.
# Mandatory: no
# Range: 1-3600
# Default:
# CacheUpdateFrequency=60
### Option: StartDBSyncers
# Number of pre-forked instances of DB Syncers.
# 數據庫同步實例數
# Mandatory: no
# Range: 1-100
# Default:
# StartDBSyncers=4
### 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.
# 歷史值數據緩存大小, 單位bytes.緩存item歷史數據請求的共享內存大小.0即禁止緩存 (不建議).當緩存大小超過共享內存時,每5分鍾會向服務器日志寫入一條警告信息.該參數 Zabbix 2.2.0以后的版本中都支持.
# 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).
# Agent, SNMP 設備或外部檢查(External check)的超時時長(單位秒)
# Mandatory: no
# Range: 1-30
# Default:
# Timeout=3
Timeout=30
### Option: TrapperTimeout
# Specifies how many seconds trapper may spend processing new data.
# 捕捉器(Zabbix Trapper)處理新數據的最長時間
# Mandatory: no
# Range: 1-300
# Default:
# TrapperTimeout=300
### Option: UnreachablePeriod
# After how many seconds of unreachability treat a host as unavailable.
# 在多少秒連接不到客戶端,即視為客戶端主機不可到達
# Mandatory: no
# Range: 1-3600
# Default:
# UnreachablePeriod=45
### Option: UnavailableDelay
# How often host is checked for availability during the unavailability period, in seconds.
# 在不可用期間,主機多少秒檢查一次是否可用
# Mandatory: no
# Range: 1-3600
# Default:
# UnavailableDelay=60
### Option: UnreachableDelay
# How often host is checked for availability during the unreachability period, in seconds.
# 在不可達期間,主機多少秒檢查一次是否可用
# Mandatory: no
# Range: 1-3600
# Default:
# UnreachableDelay=15
#思考上面的兩個選項UnavailableDelay和UnreachableDelay有什么區別????
### Option: AlertScriptsPath
# Full path to location of custom alert scripts.
# Default depends on compilation options.
# 自定義報警腳本位置 (依賴編譯安裝時的參數設置 datadir).
# Mandatory: no
# Default:
# AlertScriptsPath=${datadir}/zabbix/alertscripts
### Option: ExternalScripts
# Full path to location of external scripts.
# Default depends on compilation options.
# 外部腳本位置 (依賴編譯安裝時的變量datadir). 配置External check類型的監控時需要用到該腳本
# Mandatory: no
# Default:
# ExternalScripts=${datadir}/zabbix/externalscripts
### Option: FpingLocation
# Location of fping.
# Make sure that fping binary has root ownership and SUID flag set.
# fping指令的路徑.確保fping的屬主是root用戶,並且設置了SUID!
# Mandatory: no
# Default:
# FpingLocation=/usr/sbin/fping
FpingLocation=/usr/local/fping/sbin/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.
# fping6指令的路徑.確保fping的宿主是root用戶,並且設置了SUID!
# Mandatory: no
# Default:
# Fping6Location=/usr/sbin/fping6
### Option: SSHKeyLocation
# Location of public and private keys for SSH checks and actions.
# 用於SSH檢查和操作的公鑰和私鑰的位置(注意,這里僅是路徑,不要包含秘鑰文件名)
# Mandatory: no
# Default:
# SSHKeyLocation=
### 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.
# 在記錄之前數據庫查詢可能需要多長時間(以毫秒為單位)。
# DebugLevel設置為3,4或5時,才生效!!!!!
# 0 不記錄慢查詢
# Mandatory: no
# Range: 1-3600000
# Default:
# LogSlowQueries=0
LogSlowQueries=3000
### Option: TmpDir
# Temporary directory.
# 臨時目錄
# Mandatory: no
# Default:
# TmpDir=/tmp
### Option: StartProxyPollers
# Number of pre-forked instances of pollers for passive proxies.
# 被動代理(proxy)的預分派輪詢實例的數量
# 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.
# Zabbix Server發送配置數據到Zabbix Proxy的頻率,單位秒。 此參數僅用於被動模式下的Proxy代理!!!!!
# Mandatory: no
# Range: 1-3600*24*7
# Default:
# ProxyConfigFrequency=3600
### 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.
# Zabbix Server向Zabbix Proxy請求歷史數據的頻率,單位秒。此參數僅用於被動模式下的Proxy代理!!!!!!
# Mandatory: no
# Range: 1-3600
# Default:
# ProxyDataFrequency=1
### 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
# 允許服務器以“root”身份運行。如果禁用並且服務器以“root”啟動,則服務器將嘗試切換到User配置選項指定的用戶。如果在普通用戶下啟動,則不起作用!!!!!
# 0 不允許
# 1 允許
# Mandatory: no
# Default:
# AllowRoot=0
### Option: User
# Drop privileges to a specific, existing user on the system.
# Only has effect if run as 'root' and AllowRoot is disabled.
# 降低權限為系統中存在的指定用戶。僅當系統以'root'身份運行且AllowRoot=0,即禁止時,該參數才起作用。Zabbix 2.4.0后支持該參數。
# Mandatory: no
# Default:
# User=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.
# 您可以將單個文件或所有文件包含在配置文件的目錄中。安裝Zabbix將在/usr/local/etc中創建include目錄,除非在編譯期間進行修改。
# Mandatory: no
# Default:
# 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
# SSL客戶端證書的位置。此參數僅用於Web監控
# Mandatory: no
# Default:
# SSLCertLocation=${datadir}/zabbix/ssl/certs
### Option: SSLKeyLocation
# Location of private keys for SSL client certificates.
# This parameter is used only in web monitoring.
# SSL客戶端證書的私鑰位置。此參數僅用於Web監控。
# Mandatory: no
# Default:
# SSLKeyLocation=${datadir}/zabbix/ssl/keys
### 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.
# 覆蓋用於SSL服務器證書驗證的證書頒發機構(CA)文件的位置。如果未設置,系統范圍的目錄將被使用。該參數僅用於Web監控和SMTP認證。
# Mandatory: no
# Default:
# SSLCALocation=
####### 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.
# 在服務器啟動時加載模塊。模塊用於擴展服務器的功能。格式:LoadModule = <module.so>,模塊必須位於LoadModulePath指定的目錄中。 #允許包含多個LoadModule參數。
# Mandatory: no
# Default:
# LoadModule=
####### TLS-RELATED PARAMETERS #######
### Option: TLSCAFile
# Full pathname of a file containing the top-level CA(s) certificates for
# peer certificate verification.
# 包含對等證書驗證的頂級CA(s)證書的文件的完整路徑名。
# Mandatory: no
# Default:
# TLSCAFile=
### 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=