標籤:taf parameter advance ace trend nal 清理 request ror
zabbix作為營運鄰域不可缺少的一員,它的各種文檔可是數不勝數啊,但是關於設定檔的解釋與說明就有點少。這裡列出zabbix設定檔篇之zabbix_server。
Zabbix Server端設定檔說明
# This is a configuration file for Zabbix Server process
# To get more information about Zabbix,# visit http://www.zabbix.com############ GENERAL PARAMETERS #################### Option: NodeID# Unique NodeID in distributed setup.# 0 - standalone server## Mandatory: no# Range: 0-999# Default:
#說明:服務端節點Id,0表示只有一台服務端;主要用於服務端分布式部署時,視使用者設計ZABBIX系統架構調整 # NodeID=0
### Option: ListenPort# Listen port for trapper.## Mandatory: no# Range: 1024-32767# Default:
#說明:服務端監聽連接埠用於接收二級代理或直連AGENT的採集資料
# ListenPort=10051
### Option: SourceIP# Source IP address for outgoing connections.## Mandatory: no# Default:
#說明:服務端監聽IP,建議指定
# SourceIP=### Option: LogFile# Name of log file.# If not set, syslog is used.## Mandatory: no# Default:# LogFile=
#說明:zabbix服務端日誌路徑,視具體情況指定
LogFile=/smp/sncmon/zabbix_server.log### Option: LogFileSize# Maximum size of log file in MB.# 0 - disable automatic log rotation.## Mandatory: no# Range: 0-1024# Default:
#說明:日誌達到多少M裡就輪轉;若此參數值為0時,則不輪轉,日誌將不斷變大,建議設定成輪轉 # LogFileSize=1### Option: DebugLevel# Specifies debug level# 0 - no debug
無日誌# 1 - critical information
災難日誌,日誌量較少# 2 - error information
錯誤層級,日誌量大於CRITICAL層級# 3 - warnings
警示層級,日誌量大於ERROR層級# 4 - for debugging (produces lots of information)
調試層級,日誌量大於WARNING# # Mandatory: no# Range: 0-4# Default:
#說明:記錄層級0~4,單位時間內組建記錄檔的量不斷增大
# DebugLevel=3### Option: PidFile# Name of PID file.## Mandatory: no# Default:
#說明:zabbix服務端程式PID路徑 # 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.## Mandatory: no# Default:
#說明:指定資料庫資訊,對於mysql,若設定為localhost則mysql用SOCKET來串連(需配合參數 DBSocket 使用),否則用IP串連;若DHHOST值為空白,則預設串連PostgreSQL # DBHost=localhost### Option: DBName# Database name.# For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.## Mandatory: yes# Default:# DBName=
#說明:服務端串連資料庫的庫名 DBName=smp### Option: DBSchema# Schema name. Used for IBM DB2.## Mandatory: no# Default:
#說明:專門用於 IBM DB2資料庫的串連資訊 # DBSchema=### Option: DBUser# Database user. Ignored for SQLite.## Mandatory: no# Default:
#說明:串連資料庫的使用者 # DBUser=DBUser=root### Option: DBPassword# Database password. Ignored for SQLite.# Comment this line if no password is used.## Mandatory: no# Default:
#說明:串連資料庫的密碼
DBPassword=123### Option: DBSocket# Path to MySQL socket.## Mandatory: no# Default:
#說明:指定MYSQL的SOCK串連路徑 # DBSocket=/tmp/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=5### Option: StartIPMIPollers# Number of pre-forked instances of IPMI pollers.## Mandatory: no# Range: 0-1000# Default:##
說明:主要用於IPmi技術用於擷取硬體狀態情境。若無相關監控項,建議設定為0# StartIPMIPollers=0### Option: StartPollersUnreachable# Number of pre-forked instances of pollers for unreachable hosts (including IPMI).## Mandatory: no# Range: 0-1000# Default:
#說明:預設情況下,ZABBIX會啟用指定進程用於探測某些不可達主機的(含IPMI情境);若使用情境中含有代理端,建議保持預設;若直接agent較多,可視具體情況調整
# StartPollersUnreachable=1### Option: StartTrappers# Number of pre-forked instances of trappers.# Trappers accept incoming connections from Zabbix sender, active agents, active proxies and child nodes.# At least one trapper process must be running to display server availability in the frontend.## Mandatory: no# Range: 0-1000# Default:
說明:用於設定諸如SNMP STRAPPER情境提交來的資料的接收進程數,若客戶機SNMP TRAPPER技術較多,建議加大此參數值# StartTrappers=5### Option: StartPingers# Number of pre-forked instances of ICMP pingers.## Mandatory: no# Range: 0-1000# Default:
#說明:用於設定啟用icmp協議PING主機方式啟動線程數量,若單台代理所管理機器超過500台,建議加大此數值# StartPingers=1### Option: StartDiscoverers# Number of pre-forked instances of discoverers.## Mandatory: no# Range: 0-250# Default:
說明:用於設定自動探索主機的線程數量,若單台代理所管理機器超過500台,可以考慮加大此數值(僅適用於直接AGENT情境)# StartDiscoverers=1### Option: StartHTTPPollers# Number of pre-forked instances of HTTP pollers.## Mandatory: no# Range: 0-1000# Default:
#說明:用於設定WEB撥測監控線程數,可視具體情況增加或減少此數值。# 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.## Mandatory: no# Range: 1-1000# Default:
#說明:各執行個體計時器數量,主要用於觸發器,標有維護標識的主機,但只第一個計時器用於計算維護標識主機。
# StartTimers=1### Option: JavaGateway# IP address (or hostname) of Zabbix Java gateway.# Only required if Java pollers are started.## Mandatory: no# Default:
#說明:JAVAGATEWAY 情境下使用# JavaGateway=### Option: JavaGatewayPort# Port that Zabbix Java gateway listens on.## Mandatory: no# Range: 1024-32767# Default:
#說明:JAVAGATEWAY 情境下使用# JavaGatewayPort=10052### Option: StartJavaPollers# Number of pre-forked instances of Java pollers.## Mandatory: no# Range: 0-1000# Default:
#說明:JAVAGATEWAY 情境下使用
# StartJavaPollers=0### Option: StartVMwareCollectors# Number of pre-forked vmware collector instances.## Mandatory: no# Range: 0-250# Default:
#說明:用於設定監控VMWARE Esxi主機執行個體時使用,若為0則不啟用,若要監控ESXI主機,此值最少為1 ;視監控ESXI數量設定對應數值# StartVMwareCollectors=0### Option: VMwareFrequency# How often Zabbix will connect to VMware service to obtain a new data.## Mandatory: no# Range: 10-86400# Default:
#說明:代理端訪問 VMWARE service的頻率,單位:秒# VMwareFrequency=60### 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:
#說明:划出多少共用記憶體用於儲存VMWARE資料# VMwareCacheSize=8M### 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:
#說明:指定SNMP TRAPPER 時的臨時檔案,用於代理端啟用SNMP TRAPPER功能時使用# SNMPTrapperFile=/tmp/zabbix_traps.tmp### Option: StartSNMPTrapper# If 1, SNMP trapper process is started.## Mandatory: no# Range: 0-1# Default:
#說明:是否啟用 snmptrapper功能 ,預設不啟用=0,啟用=1(配合參數SNMPTrapperFile使用)
# 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.## Mandatory: no# Default:
說明:啟用SNMPTRAPPER裡 ,接收端監聽的IP,此參數與StartSNMPTrapper,SNMPTrapperFile 聯合使用# ListenIP=0.0.0.0# ListenIP=127.0.0.1### Option: HousekeepingFrequency# How often Zabbix will perform housekeeping procedure (in hours).# Housekeeping is removing unnecessary information from history, alert, and alarms tables.## Mandatory: no# Range: 1-24# Default:
#說明:多少小時清理一次代理端資料庫的 history, alert, and alarms,以保持代理端資料庫輕便,建議保持預設# 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=500### 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-2G# Default:
#說明;zabbix初始化時佔用多少系統共用記憶體用於儲存配置資訊,HOST,ITEM,TRIGGER資料,視監控主機數量和監控項調整,建議調整到32M或者更大# CacheSize=8M### Option: CacheUpdateFrequency# How often Zabbix will perform update of configuration cache, in seconds.## Mandatory: no# Range: 1-3600# Default:
#說明:zabbix更新作業系統CACHE頻率,若管理頁面操作不頻繁,可以考慮加大參數值# CacheUpdateFrequency=60### Option: StartDBSyncers# Number of pre-forked instances of DB Syncers## Mandatory: no# Range: 1-100# Default:
#說明:將採集資料從CACHE同步到資料庫線程數量,視資料庫伺服器I/O繁忙情況,和資料庫寫能力調整。數值越大,寫能力越強。對資料庫伺服器I/O壓力越大。
# StartDBSyncers=4### Option: HistoryCacheSize# Size of history cache, in bytes.# Shared memory size for storing history data.## Mandatory: no# Range: 128K-2G# Default:
#說明:用於設定劃分多少系統共用記憶體用於儲存採集的曆史資料,此數值越大,資料庫讀壓力越小# HistoryCacheSize=8M### Option: TrendCacheSize# Size of trend cache, in bytes.# Shared memory size for storing trends data.## Mandatory: no# Range: 128K-2G# Default:
#說明:用於設定劃分多少系統共用記憶體用於儲存計算出來的趨勢資料,此參數值從一定程度上可影響資料庫讀壓力# TrendCacheSize=4M### Option: HistoryTextCacheSize# Size of text history cache, in bytes.# Shared memory size for storing character, text or log history data.## Mandatory: no# Range: 128K-2G# Default:
#說明:指定划出多少系統共用記憶體用於儲存 character, text or log history資料,若二級代理記憶體足夠,建議可適當擴大此數值,可很大程度上解決系統I/O壓力,和資料庫讀壓力# HistoryTextCacheSize=16M### 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: NodeNoEvents# If set to ‘1‘ local events won‘t be sent to master node.# This won‘t impact ability of this node to propagate events from its child nodes.## Mandatory: no# Range: 0-1# Default:
#說明:若節點為子結點,是否允許本地事件(events表)發送到主節點,1為不發送,但不影響此節點以下的節點的傳播能力,視ZABBIX分布式系統架構設計開啟或關閉。在不明架構前提下,建議保持預設
# NodeNoEvents=0### Option: NodeNoHistory# If set to ‘1‘ local history won‘t be sent to master node.# This won‘t impact ability of this node to propagate history from its child nodes.## Mandatory: no# Range: 0-1# Default:
說明:若節點為子結點,是否允許本地曆史資料發送到主節點,1為不發送,但不影響此節點以下的節點的傳播能力,視ZABBIX分布式系統架構設計開啟或關閉,在不明架構前提下,建議保持預設# NodeNoHistory=0### Option: Timeout# Specifies how long we wait for agent, SNMP device or external check (in seconds).## Mandatory: no# Range: 1-30# Default:
#說明:與AGNET\SNMP裝置和其它外部裝置通訊逾時設定,單位為秒;若採集資料不完整或網路繁忙,或從管理頁面發現用戶端狀態變化頻繁,可以考慮加大此數值。注意若此數值加大,應該考慮參數 StartPollers 是否有相應加大的必要。# Timeout=3### Option: TrapperTimeout# Specifies how many seconds trapper may spend processing new data.## Mandatory: no# Range: 1-300# Default:
#說明:啟用 trapper功能,用於進程等待逾時設定。根據需要調整# TrapperTimeout=300### Option: UnreachablePeriod# After how many seconds of unreachability treat a host as unavailable.## Mandatory: no# Range: 1-3600# Default:
#說明:當AGNET端處於不可用狀態下,間隔多少秒後,嘗試重新串連。建議根據具體情況設定。注意,若此數值過小,右agent端業務系統繁忙時,有可能造成警示資訊誤判# UnreachablePeriod=45### Option: UnavailableDelay# How often host is checked for availability during the unavailability period, in seconds.## Mandatory: no# Range: 1-3600# Default:
#說明:當AGENT端處於可用狀態下,間隔多少秒後,進行狀態檢查。若出現可正常採集資料,但管理頁面AGENT狀態不正常;若在網路,連接埠等均通暢情況下,AGENT狀態仍不正常,可以考慮加大此數值
# UnavailableDelay=60### Option: UnreachableDelay# How often host is checked for availability during the unreachability period, in seconds.## Mandatory: no# Range: 1-3600# Default:
#說明:當agent端處於不可達狀態下,延遲多少秒後,進行重新嘗試,建議保持預設,在AGENT接入調試階段,可考慮減少此數值# UnreachableDelay=15### Option: AlertScriptsPath# Full path to location of custom alert scripts.# Default depends on compilation options.## Mandatory: no# Default:
#說明:監控警示指令碼路徑,非研發人員不建議修改此參數值# AlertScriptsPath=${datadir}/zabbix/alertscripts### Option: ExternalScripts# Full path to location of external scripts.# Default depends on compilation options.## Mandatory: no# Default:
#說明:自訂指令碼儲存路徑,非研發人員不建議修改此參數值
# ExternalScripts=${datadir}/zabbix/externalscripts### Option: FpingLocation# Location of fping.# Make sure that fping binary has root ownership and SUID flag set.## Mandatory: no# Default:
#說明:IPv4 FPING命令路徑,僅ROOT可用。注意使用此命令時,應該確認此命令是否存在# FpingLocation=/usr/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.## Mandatory: no# Default:
#說明:IPv6 FPING命令路徑,僅ROOT可用。注意使用此命令時,應該確認此命令是否存在# Fping6Location=/usr/sbin/fping6### Option: SSHKeyLocation# Location of public and private keys for SSH checks and actions.## Mandatory: no# Default:
#說明:在服務端需要SSH到AGENT端且採用用KEY驗證方式時使用。非研發人員,不建議修改或設定
# SSHKeyLocation=### Option: LogSlowQueries# How long a database query may take before being logged (in milliseconds).# Only works if DebugLevel set to 3 or 4.# 0 - don‘t log slow queries.## Mandatory: no# Range: 1-3600000# Default:
#說明:用於服務端資料庫慢查詢功能,單位是毫秒;1毫秒=0.001秒,若有服務端資料庫監控慢查詢的需求,可以視具體情況調整此數。# LogSlowQueries=0### Option: TmpDir# Temporary directory.## Mandatory: no# Default:
#說明:zabbix服務端工作的臨時目錄# 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:
#說明:zabbix服務端將設定檔資料同步到代理端的頻率,僅適用於代理端為被動模式情況 下# 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.## Mandatory: no# Range: 1-3600# Default:
說明:zabbix服務端請求代理端採集的資料的頻率,僅適用代理端為被動模式情況下# 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 user ‘zabbix‘ instead. Has no effect if started under a regular user.# 0 - do not allow 不允許# 1 - allow 允許## Mandatory: no# Default:
#說明:是否允許以root身份運行服務端# AllowRoot=0### Option: Include# You may include individual files or all files in a directory in the configuration file.# InstallingZabbix will create include directory in /usr/local/etc, unless modified during the compile time.## Mandatory: no# Default:
#說明:在一些情況下,軟體的參數設定檔很長,為了方便管理,將設定檔切割成N個設定檔,但為了主配置參數檔案的簡潔,便會啟用INCLUDE參數,以方便程式讀取指定目錄下的所有設定檔# Include=# Include=/usr/local/etc/zabbix_server.general.conf# Include=/usr/local/etc/zabbix_server.conf.d/####### 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= 全部zabbix-server設定檔的解釋!
Zabbix設定檔詳解之服務端zabbix_server