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

圖形效果如下:


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM