Press "Enter" to skip to content

zabbix中配置当memory剩余不足20%时触发报警

在zabbix中默认当内存剩余量不足2G的时候触发报警,并没有使用百分比来触发如下:

现在需要配置:当memory剩余不足20%时触发报警,具体操作方法如下:

1)创建item

Configuration-->Templates-->Template OS Linux-->items-->create item


如上配置,需要填写的信息:
name:Ava memory percent
type:Calculated #计算类型
key:vm.memory.free[percent]
Formula:100*last("vm.memory.size[available]")/last("vm.memory.size[total]")
Applications:Memory

2)创建trigger

Configuration-->Templates-->Template OS Linux-->Triggers-->create trigger
Name:free mem less 20%
Expression:{Template OS Linux:vm.memory.free[percent].last()}<20


3)创建Graphs




图形效果如下:

Be First to Comment

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注