zabbix-server端配置

G8bao7發表於2015-09-28
轉載: http://407711169.blog.51cto.com/6616996/1346795

# This is a configuration file for Zabbix Server process
# To get more information about Zabbix,
# visit /> ############ GENERAL PARAMETERS #################
############一般引數
### Option: NodeID
#   Unique NodeID in distributed setup. #用於proxy之類的設定中,0為獨立的服務
#   0 - standalone server
#
# Mandatory: no 強制性:不
# Range: 0-999
# Default:
# NodeID=0
### Option: ListenPort  #監聽埠
#   Listen port for trapper.
#
# Mandatory: no
# Range: 1024-32767
# Default:
# ListenPort=10051
### Option: SourceIP    #透過哪個ip連線出去;用於多網路卡的伺服器
#   Source IP address for outgoing connections.
#
# Mandatory: no
# Default:
# SourceIP=
### Option: LogFile     #日誌位置
#   Name of log file.
#   If not set, syslog is used.
#
# Mandatory: no
# Default:
# LogFile=
LogFile=/tmp/zabbix_server.log
### Option: LogFileSize     #日誌大小,增長~
#   Maximum size of log file in MB.
#   0 - disable automatic log rotation.
#
# Mandatory: no
# Range: 0-1024
# Default:
LogFileSize=1024
### Option: DebugLevel      #日誌記錄的級別(報錯級別,具體詳情看下)
#   Specifies debug level
#   0 - no debug
#   1 - critical information
#   2 - error information
#   3 - warnings
#   4 - for debugging (produces lots of information)
#
# Mandatory: no
# Range: 0-4
# Default:
DebugLevel=3
### Option: PidFile     #PIDfile
#   Name of PID file.
#
# 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.
#
# Mandatory: no
# Default:
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=zabbix
### Option: DBSchema    #資料庫
#   Schema name. Used for IBM DB2.
#
# Mandatory: no
# Default:
# DBSchema=
### Option: DBUser
#   Database user. Ignored for SQLite.
#
# Mandatory: no
# Default:
# DBUser=
### Option: DBPassword
#   Database password. Ignored for SQLite.
#   Comment this line if no password is used.
#
# Mandatory: no
# Default:
### Option: DBSocket
#   Path to MySQL socket.
#
# Mandatory: no
# Default:
# 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.      輪詢器中preforked模型的個數
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartPollers=5
### Option: StartIPMIPollers    #start IPMI pollers
#   Number of pre-forked instances of IPMI pollers.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartIPMIPollers=0
### Option: StartPollersUnreachable     #unreachable
#   Number of pre-forked instances of pollers for unreachable hosts (including IPMI).
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartPollersUnreachable=1
### Option: StartTrappers       #start Trapper 開啟捕捉器
#   Number of pre-forked instances of trappers.
#   Trappers accept incoming connections from Zabbix sender, active agents, active proxies and child nodes.
#   接收來自zabbix_sender、活動代理、活動節點、子節點等發來的資訊。
#   At least one trapper process must be running to display server availability in the frontend.
#   最後1個trapper程式必須在前端顯示服務的可用性。
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartTrappers=5
### Option: StartPingers  
#   Number of pre-forked instances of ICMP pingers.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartPingers=1
### Option: StartDiscoverers
#   Number of pre-forked instances of discoverers.
#
# Mandatory: no
# Range: 0-250
# Default:
# StartDiscoverers=1
### Option: StartHTTPPollers
#   Number of pre-forked instances of HTTP pollers.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartHTTPPollers=1
### Option: JavaGateway
#   IP address (or hostname) of Zabbix Java gateway.
#   Only required if Java pollers are started.
#
# Mandatory: no
# Default:
# JavaGateway=
### Option: JavaGatewayPort
#   Port that Zabbix Java gateway listens on.
#
# Mandatory: no
# Range: 1024-32767
# Default:
# JavaGatewayPort=10052
### Option: StartJavaPollers
#   Number of pre-forked instances of Java pollers.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartJavaPollers=0
### Option: SNMPTrapperFile
#   Temporary file used for passing data from SNMP trap daemon to the server.
#   臨時檔案用於儲存來自SNMP trap守護程式傳送過來的資料。
#   Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file.
#   必須和 zabbix_trap_receiver.pl or SNMPTT 中配置相同
#
# Mandatory: no
# Default:
# SNMPTrapperFile=/tmp/zabbix_traps.tmp
### Option: StartSNMPTrapper    開啟SNMP trapper
#   If 1, SNMP trapper process is started.  1開啟
#
# 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.
#
# Mandatory: no
# Default:
# ListenIP=0.0.0.0
# ListenIP=127.0.0.1
### Option: HousekeepingFrequency   #整理頻率
#   How often Zabbix will perform housekeeping procedure (in hours).
#   zabbix多久將進行一次整理工作。
#   Housekeeping is removing unnecessary information from history, alert, and alarms tables.
#   整理工作是從歷史、警示、報警表中刪除不必要的資訊。
#
# Mandatory: no
# Range: 1-24
# Default:
# HousekeepingFrequency=1
### Option: MaxHousekeeperDelete    最大刪除數(zabbix管家)
#   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: DisableHousekeeping     關閉!
#   If set to 1, disables housekeeping.
#
# Mandatory: no
# Range: 0-1
# Default:
# DisableHousekeeping=0
### 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:
# CacheSize=8M
CacheSize=1G
### Option: CacheUpdateFrequency
#   How often Zabbix will perform update of configuration cache, in seconds.
#   cache重新整理週期
#
# 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=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:
# HistoryTextCacheSize=16M
### Option: NodeNoEvents    節點無事件
#   If set to '1' local events won't be sent to master node.
#   如果是1,則本地事件不在主節點中顯示出來,
#   This won't impact ability of this node to propagate events from its child nodes.
#   不會影響節點之間傳播的能力。
#
# Mandatory: no
# Range: 0-1
# Default:
# 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:
# NodeNoHistory=0
### Option: Timeout     超時時間
#   Specifies how long we wait for agent, SNMP device or external check (in seconds).
#   指定等待多久,SNMP or 外部檢查裝置(單位:秒)。
#
# Mandatory: no
# Range: 1-30
# Default:
# Timeout=3
### Option: TrapperTimeout  捕捉器超時
#   Specifies how many seconds trapper may spend processing new data.
#   指定捕捉器處理新資料花費的超時時間。
#
# 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
### Option: AlertScriptsPath    報警指令碼路徑(郵件、簡訊)
#   Full path to location of custom alert scripts.
#   Default depends on compilation options.
#
# Mandatory: no
# Default:
AlertScriptsPath=/usr/local/zabbix/share/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   fping命令的位置
#   Location of fping.
#   Make sure that fping binary has root ownership and SUID flag set.
#
# Mandatory: no
# Default:
# FpingLocation=/usr/sbin/fping
### Option: Fping6Location  fping6位置
#   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
### Option: SSHKeyLocation  SSHKEY位置
#   Location of public and private keys for SSH checks and actions
#
# Mandatory: no
# Default:
# SSHKeyLocation=
### Option: LogSlowQueries
#   How long a database query may take before being logged (in milliseconds).
#   0 - don't log slow queries.
#
# Mandatory: no
# Range: 1-3600000
# Default:
# LogSlowQueries=0
### Option: TmpDir
#   Temporary directory.
#
# Mandatory: no
# Default:
# TmpDir=/tmp
### 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=
# Include=/usr/local/etc/zabbix_server.general.conf
# Include=/usr/local/etc/zabbix_server.conf.d/
### Option: StartProxyPollers   開啟接收proxy的poller中的例項數量
#   Number of pre-forked instances of pollers for passive proxies.
#
# Mandatory: no
# Range: 0-250
# Default:
# StartProxyPollers=1
### Option: ProxyConfigFrequency    多久傳送配置資訊到proxy中
#   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
### Option: ProxyDataFrequency      從proxy中請求歷史資料
#   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

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26250550/viewspace-1810669/,如需轉載,請註明出處,否則將追究法律責任。

相關文章