screen翻译成中文为“屏幕”,在超市、单位等等地方都比较常见到监控视频,视频上有多块小视频,实际上zabbix screen和这个功能类似。你可以设置多个screen,每个screen可以显示特定信息,例如某台主机的cpu、内存、硬盘、网卡流量使用状况,也可以显示text文本,甚至能够嵌入其他screen。不明白?看图
以上图片请点击查看大图,zabbix screen就是上面那个样子,上面都是小图表,zabbix screen支持很多格式。接着往下看。文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
zabbix screen支持的元素类型
simple graphs
user-defined custom graphs
maps
other screens
plain text information
server information (overview)
hosts information (overview)
trigger information (overview)
host/hostgroup issues (status of triggers)
system status
data overview
clock
history of events
history of actions
URL (data taken from another location)文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
一共15种,最常用的是simple graphs,想对这些有更大的一个了解,请看后续章节,会有一个专门的演示文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
创建screen
点击configuration--screen--create screen,输入如下信息:文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
Name: screen名称,可以用中文文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
Columns:列个数文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
Rows:行个数文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
screen元素添加
点击configuration--screen--"zabbix_screen_for_ttlsa"文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
说明:文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
1. change:可添加元素,例如图表、map、text等等元素文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
2. 加号:相应增加行或者列文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
3.减号:响应删除行或者列文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
点击Change,如下图:文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
参数说明文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
参数 | 说明 |
Resource | simple graphs user-defined custom graphs maps other screens plain text information server information (overview) hosts information (overview) trigger information (overview) host/hostgroup issues (status of triggers) system status data overview clock history of events history of actions URL (data taken from another location) |
Horizontal align | 水平对齐方式: Center(居中) Left(左对齐) Right(右对齐) |
Vertical align | 垂直对齐方式: Middle(中间) Top(顶部) Bottom(底部) |
Column span | 列跨度,当前元素占用几个列 |
Row span | 行跨度,当前元素占用几个行 |
Dynamic elements | 动态元素,有点不好理解。如果这个screen有一个元素选中了Dynamic elements,在monitoring->screen,screen下拉列表选择这个screen,会出现hosts下拉表,选中一个hosts,如果当前元素不属于这个主机,那么不会显示,如果属于这个主机便会显示。 |
Dynamic elements文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
普通的screen文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
可以看到仅有screens一个下拉列表文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
带动态元素的screen:文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
1. 多了两个下拉列表,可以选择主机文章源自运维生存时间-https://www.ttlsa.com/zabbix/zabbix-screens-configure/
2.有一个时钟,当前时钟不属于任何hosts,所以不管你选哪一个host,他都能正常显示
3.当前Host"gg"左侧出现"ERROR:No items defined",这里是一个动态元素,因为动态元素不属于gg,所以显示出错了。我们选择对的host,情况如下:
动态元素支持的类型:Graphs (custom graphs)、Simple graphs、Plain text

1F
动态元素里我有一点不太满意的,就是网卡,多台主机间网卡名字不一样,就会导致切换主机时遇到找不到item的问题。
B1
@ 卷毛就是我 ☺