在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
图形效果如下:
转载于:https://www.cnblogs.com/kevingrace/p/7425135.html
原文链接:https://blog.csdn.net/weixin_30342827/article/details/98925425
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
还没有人抢沙发呢~