Host name 填agent的ip或者主机的作用,自己起个名字就好
Visible name host里面看到的名称
Groups 在New group直接填group的名字
Agent interfaces
IP address 写agent的ip(必须),如果内网有dns的话,也可以写dns name,后面的port默认是10050,当然agent的iptables这个端口需要打开
其他的选项默认就可以,这样就添加了一台host 2,创建Items Configuration--Hosts--Items--Create item
Items里面比较重要的Key名称,要保证是唯一的(往数据库键方面想),下面是存储的数据格式:"Type of infomation","Date type";多长时间采集一次数据:"flexible intervals";把采集的数据以原始的数据存储"As is"还是换算为每秒的平均值再存入数据库"Delta (speed per second)",最后"Enabled" Add即可
可以多添加item,比如"system.cpu.intr" "system.cpu.load[,]" "system.cpu.util[,,]"
"system.cpu.intr"没有需要传入的参数
cpu.load可以写system.cpu.load[all,avg5],表示取所有cpu(多核)平均5分钟的负载
cpu.util可以写system.cpu.util[,user,avg5],表示所有cpu的用户空间5分钟的平均利用率 3,添加图形
Configuration--Hosts--Graphs--Create graph
https://www.zabbix.com/documentation/2.4/manual/web_interface/frontend_sections/monitoring/graphs