運維基礎——Zabbix:Lack of free swap space on Zabbix server

使用Zabbix監控一些雲主機時,可能遇到:

Lack of free swap space on Zabbix server
  • 1

使用命令:

free -m 
  • 1

看到: 
這裏寫圖片描述

Swap 的total,used,free值都是0。這是因爲Zabbix沒有考慮雲主機用戶。

處理步驟:

  1. Configuration-Templates-Template OS Linux-Triggers 
    這裏寫圖片描述

  2. 選擇 Lack of free swap space on {HOST.NAME}

  3. 修改Expression
{Template OS Linux:system.swap.size[,pfree].last(0)}<50
  • 1

修改爲

{Template OS Linux:system.swap.size[,pfree].last(0)}<50 and {Template OS Linux:system.swap.size[,free]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章