items

zabbix模板及监控项目笔记

模版图示

image-20221110110244222

常用模版

Zabbix Items

Items 监控项

比如监控项:监控内存包含很多维度,某一个维度(信息是数值还是字母,获取数据的间隔。)

获取监控数据方式

  • zabbix-agent
  • SNMP-简单的网际管理协议

取值的数据类型/单位

  • 磁盘容量单位一般为B

  • 网卡流量单位为bps

  • MySQL每秒select,insert, //每秒访问量 qps

  • CPU

    • Interrupts per second ips //每秒的中断总数。
    • user time float %
    • Context switches per second sps //每秒上下文切换进程线程切换
  • Host boot time unixtime // 系统启动的时间

新建items

监控项:服务器启动分区剩余空间

新增模板

image-20221110110334457

image-20221110110339469新增监控项

zabbix管理页面》配置》模板》Linux_OS_NEW 》监控项》创建监控项

image-20221110110347373

image-20221110110357810

查看项

image-20221110110404229

新增图形

配置》模板》刚刚新建的模板》图形

image-20221110110412022

image-20221110110422671

关联主机和模版

image-20221110110431271

查看图形

image-20221110110438261

image-20221110110443308

监控项:服务器网络接口进出流量

网卡流量的监控key
net.if.in[if,] Network interface input statistic. Integer value. If mode is missing bytes is used.
net.if.out[if,] Network interface output statistic. Integer value. If mode is missing bytes is used.
net.if.total[if,] Sum of network interface incoming and outgoing statistics. Integer value. Mode - one of bytes (default), packets, errors or dropped

新建IN(网卡进流量)

image-20221110113438224

image-20221110113655841

image-20221110114243409

image-20221110114313456

新建OUT(网卡出流量)

image-20221110115142502

image-20221110115206098

image-20221110115436530

image-20221110115447337

新建项all(流量总和 进➕出)

image-20221110134246275

image-20221110134304619

image-20221110134432806

image-20221110134600847

新建项MEM(内存)

image-20221110140150915

image-20221110140251166

创建图形并关联主机

image-20221110140600105

image-20221110140621546

image-20221110140705363

创建聚合图形

image-20221110141605880

image-20221110141801718

posted @ 2022-11-14 10:50  我真的兔了  阅读(328)  评论(0编辑  收藏  举报