当前位置:网站首页>zabbix_server配置文件详解
zabbix_server配置文件详解
2022-06-25 21:50:00 【一直在努力学习的菜鸟】
zabbix_server配置文件详解
#zabbix_server配置实例
[[email protected] ~]#grep "^[a-Z]" /etc/zabbix/zabbix_server.conf
ListenPort=10051 #zabbix_server监听端口,端口范围:1024-32767,默认是10051
LogType=file #日志类型,system-系统日志,file-使用LogFile参数指定的文件,console-标准输出,默认是file
LogFile=/var/log/zabbix/zabbix_server.log #日志路径
LogFileSize=500 #指定日志滚动写入大小,当达到指定大小时,会删除旧日志重新从头写入新日志
DebugLevel=3 #指定日志调试级别,0-关于启动和停止Zabbix进程的基本信息,1-关键信息,2-错误信息,3-警告,4-用于调试(产生大量信息),5-扩展调试(产生更多信息)
PidFile=/var/run/zabbix/zabbix_server.pid #PID文件路径
SocketDir=/var/run/zabbix #Socket文件路径
DBHost=10.0.0.17 #数据库地址
DBName=zabbix #数据库名称
DBUser=zabbix #数据库用户名称
DBPassword=zabbix #数据库用户密码
DBPort=3306 #数据库端口
StartPollers=2 #预启动多少个实例数量,一般与CPU核数一致
StartPreprocessors=3 #预启动多少个进程用于处理zabbix_agent数据
StartPollersUnreachable=2 #不可达主机的轮询进程的初始实例启动数量
StartTrappers=5 #预启动的Trappers进程数据
StartPingers=5 #ICMP ping进程的初始实例数量
StartHTTPPollers=3 #http 进程数量
StartTimers=3 #计时器实例数量,计时器用于计算问题的发生时间和步骤同步等
StartEscalators=1 #escalators进程的初始实例数量,用于处理动作中的自动步骤的进程的数量
StartAlerters=3 #警报进程的数量
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log #SNMP触发器临时文件路径
StartSNMPTrapper=1 #SNMP触发器预启动数量
HousekeepingFrequency=4 #多少小时清理一次代理端数据库的 history数据
MaxHousekeeperDelete=1000000 #每次最多删除历史数据的行数
CacheSize=128M #配置信息缓存大小
CacheUpdateFrequency=60 #zabbix更新缓存数据的频率,单位为秒,范围是1-3600
StartDBSyncers=6 #zabbix和数据库同步数据的进程数量
HistoryCacheSize=128M #历史数据的缓存大小
HistoryIndexCacheSize=32M #历史数据索引缓存的大小
TrendCacheSize=16M #用于设置划分多少系统共享内存用于存储计算出来的趋势数据,此参数值从一定程度上可影响数据库读压力,范围是128K-2G
ValueCacheSize=16M #历史值缓存的大小,用于缓存历史数据请求的共享内存大小
Timeout=30 #数据获取等待超时时间
UnavailableDelay=60 #当主机不可用了,多久检查一次该主机的可用性,单位为秒,范围是1-3600
AlertScriptsPath=/usr/lib/zabbix/alertscripts #监控报警脚本路径,取决于编译时候的datadir参数
ExternalScripts=/usr/lib/zabbix/externalscripts #自定义脚本存储路径
FpingLocation=/usr/sbin/fping #fping命令的位置
LogSlowQueries=3000 #慢日志时间(以毫秒为单位),仅当DebugLevel设置为3, 4或5时,才可用,0-不记录慢查询,范围是1-3600000
TmpDir=/var/run/zabbix/ #临时目录
StartProxyPollers=3 #启用多少子进程与代理端通信,若代理较多可考虑加大此数值,范围是0-250
ProxyConfigFrequency=60 #Proxy被动模式下,Server多少秒同步配置文件至Proxy,该参数仅用于被动模式下的代理,范围是1-3600*24*7
ProxyDataFrequency=60 #被动模式下,zabbix_server间隔多少秒向Proxy请求历史数据
AllowRoot=1 #是否允许root启动zabbix
User=root #设置zabbix启动用户
边栏推荐
- ES6-- 集合
- C language and the creation and use of database
- What do l and R of earphone mean?
- Analysis report on market demand situation and investment direction of China's optical transmission equipment industry from 2022 to 2028
- Yyds dry goods inventory CEPH installation visual dashboard
- China soft magnetic material market demand status and prospect scale forecast report 2022-2028
- ORACLE - 数据查询
- 聊聊Adapter模式
- Youku IPv6 evolution and Practice Guide
- 面对AI人才培养的“产学研”鸿沟,昇腾AI如何做厚产业人才黑土地?
猜你喜欢

使用EAST ocr遇到的坑解决方法(编译lanms)

ES6学习-- LET

2022-2028 global TFT touch screen industry research and trend analysis report

2022-2028 global selective laser sintering service industry research and trend analysis report

实战:typora里面如何快捷改变字体颜色(博客分享-完美)-2022.6.25(已解决)

OSPF - detailed explanation of GRE tunnel (including configuration command)

2022-2028 global industrial touch screen industry research and trend analysis report

Tiger Dao VC products are officially launched, a powerful supplement to seektiger ecology

2022-2028 global SiC igniter industry research and trend analysis report
![[intensive lecture] 2022 PHP intermediate and advanced interview questions (II)](/img/50/c9572beaa035d5e6e78a57fcd1302c.jpg)
[intensive lecture] 2022 PHP intermediate and advanced interview questions (II)
随机推荐
AbstractFactory Abstract Factory
Global and Chinese oleic acid operation mode and market supply and demand forecast report 2022 ~ 2028
Eureka core ⼼ source code analysis
Factorymethod factory method
Hotspot JVM "01" class loading, linking and initialization
Online crudhasone Association query reports an error unabletouseinternalvariable:list
华为云短信测了很多手机都提示发送频繁
Youku IPv6 evolution and Practice Guide
ES6-- 集合
Talk about adapter mode
NARI radar's IPO meeting: it plans to raise nearly 1billion yuan. Bao Xiaojun and his wife are Canadians
Programmer weekly (issue 4): the wealth view of programmers
CVPR2022教程 | 马里兰大学《机器学习遥感处理:农业与粮食安全》教程
Thinking while walking
Analysis report on scale investigation and investment development suggestions of China's special equipment inspection and testing industry 2022-2028
Analysis report on market demand situation and investment direction of China's optical transmission equipment industry from 2022 to 2028
哪些PHP开源作品值得关注
2022-2028 global vacuum jacket system industry survey and trend analysis report
Dio encapsulé pour les requêtes réseau flutter (gestion des cookies, ajout d'intercepteurs, téléchargement de fichiers, gestion des exceptions, annulation des requêtes, etc.)
目前期货怎么开户安全些?哪些期货公司靠谱些?