1. 程式人生 > 其它 >zabbix-server 服務端配置詳解

zabbix-server 服務端配置詳解

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

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


#監聽的埠
#
# Mandatory: no
# Range: 1024-32767
# ListenPort=10051

#在連線其它伺服器時,使用的本機ip地址
#
# Mandatory: no
# SourceIP=

#日誌的型別
#
# Mandatory: no
# LogType=file

#存放日誌的位置,不設定,則使用syslog
#
# Mandatory: no
# Default:
LogFile=/tmp/zabbix_server.log

#單個最大日誌檔案大小,超過則啟動新檔案
#設定為0則不啟動新檔案,單位MB
#
# Mandatory: no
# Range: 0-1024
# LogFileSize=1

#定義列印的日誌登記。
#0:列印日誌
#1:列印重要的錯誤日誌
#2:列印錯誤資訊
#3:列印應該資訊
#4:列印除錯資訊
#
# Mandatory: no
# Range: 0-5
# DebugLevel=3

#pid檔案位置
#
# Mandatory: no
# PidFile=/tmp/zabbix_server.pid

#socket所在目錄
#
# Mandatory: no
# SocketDir=/tmp

#資料庫例項的位置,如果設定為localhost,埠會使用mysql埠
#為空則用PostgreSQL的埠
#
# Mandatory: no
# DBHost=localhost

#資料庫名字。對於sqlite3,要填寫資料庫檔案位置,而資料庫使用者密碼不需要
#
# Mandatory: yes
DBName=zabbix

#僅用於IBM DB2
#
# Mandatory: no
# DBSchema=

#資料庫例項使用者名稱,對sqlite無效
#
# Mandatory: no
# Default:
DBUser=zabbix

#資料庫例項密碼,對sqlite無效
#
# Mandatory: no
# DBPassword=

#mysql的socket檔案路徑
#
# Mandatory: no
# DBSocket=/tmp/mysql.sock

#mysql埠
#
# Mandatory: no
# Range: 1024-65535
# DBPort=3306

############ ADVANCED PARAMETERS ################

#pollers程序數,zabbix-server的工作程序
#
# Mandatory: no
# Range: 0-1000
# StartPollers=5

#IPMI pollers程序數
#
# Mandatory: no
# Range: 0-1000
# StartIPMIPollers=0

#預處理程式啟動數目
#
# Mandatory: no
# Range: 1-1000
# StartPreprocessors=3

#檢查unrechable hosts(包括IPMI)的程序數
#
# Mandatory: no
# Range: 0-1000
# StartPollersUnreachable=1

#trappers程序數。
#trappers接收其它hosts用zabbix_sender、active_agents、active proxies和child nodes傳送的資料
#至少要一個trapper程序來前端顯示zabbix-server是可用的
#
# Mandatory: no
# Range: 0-1000
# StartTrappers=5

#用於discover的discoverer的程序數
#
# Mandatory: no
# Range: 0-1000
# StartPingers=1

#未知
#
# Mandatory: no
# Range: 0-250
# StartDiscoverers=1

#用於http檢查的程序數
#
# Mandatory: no
# Range: 0-1000
# StartHTTPPollers=1

#timers的程序數。
#用於處理基於時間的triggers中的function和maintainence功能
#只有第一個timer程序處理maintainence時間
#
# Mandatory: no
# Range: 1-1000
# StartTimers=1

#未知
#
# Mandatory: no
# Range: 0-100
# StartEscalators=1

#未知
#
# Mandatory: no
# Range: 0-100
# Default:
# StartAlerters=3

#zabbix java getway使用的ip或者hostname
#當java pollers啟動時有效
#
# Mandatory: no
# JavaGateway=

#java geteway使用的埠
#
# Mandatory: no
# Range: 1024-32767
# JavaGatewayPort=10052

#java pollers的程序數
#
# Mandatory: no
# Range: 0-1000
# StartJavaPollers=0

#vmware pollers的程序數
#
# Mandatory: no
# Range: 0-250
# StartVMwareCollectors=0

#zabbix從vmware獲取監控值的頻率,單位是秒
#
# Mandatory: no
# Range: 10-86400
# VMwareFrequency=60

#暫無
#
# Mandatory: no
# Range: 10-86400
# VMwarePerfFrequency=60

#vmware的快取,儲存vmware資料的共享記憶體大小。
#只有當vmware collectors啟動時生效
#
# Mandatory: no
# Range: 256K-2G
# VMwareCacheSize=8M

#暫無
# Mandatory: no
# Range: 1-300
# VMwareTimeout=10

#snmp裝置在將資料傳送到server前會將snmp資料存在檔案中。
#必須和再zabbix_trap_receiver.pl或者snmptt配置檔案中的配置相同。
#
# Mandatory: no
# SNMPTrapperFile=/tmp/zabbix_traps.tmp

#暫無
#
# Mandatory: no
# Range: 0-1
# StartSNMPTrapper=0

#trappers監聽的ip,用逗號分隔ip列表
#
# Mandatory: no
# ListenIP=0.0.0.0

#暫無
#
# Mandatory: no
# Range: 0-24
# HousekeepingFrequency=1

#在zabbix資料庫中有一個housekeeper表,其中記錄了housekeeper要執行的任務
#在一次執行housekeep的過程中,最多刪除這裡定義的數量,為0則無限制
#sqlite3會忽略這個引數
#
# Mandatory: no
# Range: 0-1000000
# MaxHousekeeperDelete=5000

#儲存host、item和trigger資料的儲存空間
#
# Mandatory: no
# Range: 128K-8G
# CacheSize=8M

#將配置資訊同步到記憶體中的頻率
#
# Mandatory: no
# Range: 1-3600
# Default:
# CacheUpdateFrequency=60

#將資料同步到資料庫的DBsyncers程序數
#
# Mandatory: no
# Range: 1-100
# StartDBSyncers=4

#儲存history資料的記憶體大小
#
# Mandatory: no
# Range: 128K-2G
# HistoryCacheSize=16M

#暫無
#
# Mandatory: no
# Range: 128K-2G
# HistoryIndexCacheSize=4M

#儲存trends資料的記憶體大小
#
# Mandatory: no
# Range: 128K-2G
# Default:
# TrendCacheSize=4M

#history資料快取在記憶體中的記憶體大小。
#設定為0,則不快取
#
# Mandatory: no
# Range: 0,128K-64G
# ValueCacheSize=8M

#zabbix等待agent,snmo裝置或自定義指令碼的執行時間
#
# Mandatory: no
# Range: 1-30
Timeout=4

#trapper處理新資料的超時時間
#
# Mandatory: no
# Range: 1-300
# TrapperTimeout=300

#當一個host保持unreachable狀態後多久將其標記為unreachable狀態
#
# Mandatory: no
# Range: 1-3600
# UnreachablePeriod=45

#當host為unavailable狀態時,檢查host的availability的頻率
#
# Mandatory: no
# Range: 1-3600
# UnavailableDelay=60

#當host為unreachable狀態時,檢查host的availability的頻率
#
# Mandatory: no
# Range: 1-3600
# UnreachableDelay=15

#自定義報警指令碼的位置
#
# Mandatory: no
# AlertScriptsPath=${datadir}/zabbix/alertscripts

#自定義監控指令碼的位置
#
# Mandatory: no
# ExternalScripts=${datadir}/zabbix/externalscripts

#fping的位置,fping可執行檔案的owner要設定為root,並且設定suid
#
# Mandatory: no
# FpingLocation=/usr/sbin/fping

#同花順那個,如果fping可以處理ipv6,那麼可以留空
#
# Mandatory: no
# Fping6Location=/usr/sbin/fping6

#使用ssh檢查和action所需要的ssh公鑰,私鑰位置
#
# Mandatory: no
# SSHKeyLocation=

#記錄查詢zabbix資料的慢查詢,單位毫秒。
#只有當debuglevel設定為3/4時才會生效。
#設定為0,則不記錄慢查詢。
#
# Mandatory: no
# Range: 1-3600000
LogSlowQueries=3000

#臨時檔案目錄
#
# Mandatory: no
# TmpDir=/tmp

#被動proxy的poller程序數
#
# Mandatory: no
# Range: 0-250
# StartProxyPollers=1

#zabbix-server 將配置資訊同步到proxy的頻率
#支隊被動的proxy生效
#
# Mandatory: no
# Range: 1-3600*24*7
# ProxyConfigFrequency=3600

#zabbix-server 請求proxy歷史資料的頻率
#支隊被動的proxy生效
# Mandatory: no
# Range: 1-3600
# ProxyDataFrequency=1

#是否允許server以root身份執行
#0不允許,1允許
#不允許則使用zabbix使用者執行
#
# Mandatory: no
# AllowRoot=0

#使用哪個使用者執行
#
# Mandatory: no
# Default:
# User=zabbix


#指定存放了設定自定義監控項的檔案位置
#
# Mandatory: no
# 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

#暫無
#
# Mandatory: no
# SSLCertLocation=${datadir}/zabbix/ssl/certs

#暫無
#
# Mandatory: no
# SSLKeyLocation=${datadir}/zabbix/ssl/keys

#暫無
#
# Mandatory: no
# SSLCALocation=

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

#loadable元件位置
#
# Mandatory: no
# LoadModulePath=${libdir}/modules

#需要server載入的loadable元件,格式為LoadModule=<module.so>
#
# Mandatory: no
# LoadModule=

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

#未知
#
# Mandatory: no
# TLSCAFile=

#未知
# Mandatory: no
# TLSCRLFile=

#未知
#
# Mandatory: no
# TLSCertFile=

#暫無
#
# Mandatory: no
# TLSKeyFile=
本文版權歸作者所有,歡迎轉載,請務必新增原文連結。