当前位置:网站首页>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启动用户
边栏推荐
- Oracle - 基本入门
- adb常用命令
- Online crudhasone Association query reports an error unabletouseinternalvariable:list
- QT learning setting executable exe attribute (solving the problem of Chinese attribute garbled)
- Research and Analysis on the current situation of Chinese acne drug market and forecast report on its development prospect (2022)
- Why is BeanUtils not recommended?
- [WPF] XAML code skills that can be directly used for converting CAD engineering drawings to WPF
- ES6-Const常量与数组解构
- 2022-2028 global web and browser isolation platform industry research and trend analysis report
- Fujilai pharmaceutical has passed the registration: the annual revenue is nearly 500million yuan. Xiangyun once illegally traded foreign exchange
猜你喜欢
27 Chinese scholars including Yaoban and chendanqi from Tsinghua won the awards, and the list of winners of Sloan award in 2022 was issued
使用EAST ocr遇到的坑解决方法(编译lanms)
面对AI人才培养的“产学研”鸿沟,昇腾AI如何做厚产业人才黑土地?
数据治理,说起来容易,做起来难
Interview shock 23: talk about thread life cycle and transformation process?
Why is BeanUtils not recommended?
2022-2028 global vacuum jacket system industry survey and trend analysis report
Why absolute positioning overlaps
Eureka core ⼼ source code analysis
Talk about adapter mode
随机推荐
面对AI人才培养的“产学研”鸿沟,昇腾AI如何做厚产业人才黑土地?
HotSpot JVM 「01」类加载、链接和初始化
ES6 -- 形参设置初始值、拓展运算符、迭代器、生成函数
CVPR2022教程 | 马里兰大学《机器学习遥感处理:农业与粮食安全》教程
目前期货怎么开户安全些?哪些期货公司靠谱些?
Facing the "industry, University and research" gap in AI talent training, how can shengteng AI enrich the black land of industrial talents?
Openwrt (VIII) application layer development
Raspberry PI (bullseye) replacement method of Alibaba cloud source
ES6-Const常量与数组解构
Dio encapsulated by the flutter network request (cookie management, adding interceptors, downloading files, exception handling, canceling requests, etc.)
Ribbon core ⼼ source code analysis
MySQL数据库常用函数和查询
Jz-064- maximum value of sliding window
Flutter 網絡請求封裝之Dio(Cookie管理、添加攔截器、下載文件、异常處理、取消請求等)
Tiger DAO VC产品正式上线,Seektiger生态的有力补充
2022-2028 global extrusion coating and lamination production line industry research and trend analysis report
Unity技术手册 - 生命周期旋转RotationOverLifetime-速度旋转RotationBySpeed-及外力
再突破!阿里云进入Gartner云AI开发者服务挑战者象限
Analysis report on demand and investment forecast of global and Chinese flame retardant hydraulic oil market from 2022 to 2028
Record the learning record of the exists keyword once