问题

使用Zabbix监控一些云主机时,可能遇到:

Lack of free swap space on Zabbix server1

使用命令:

free -m

看到:

Zabbix:Lack of free swap space on Zabbix server 解决

Swap 的total,used,free值都是0。这是因为Zabbix没有考虑云主机用户。

处理步骤:


1. 管理-模板-Template OS Linux-触发器


Zabbix:Lack of free swap space on Zabbix server 解决

Zabbix:Lack of free swap space on Zabbix server 解决


2. 选择 Lack of free swap space on {HOST.NAME}

Zabbix:Lack of free swap space on Zabbix server 解决


3. 修改Expression

{Template OS Linux:system.swap.size[,pfree].last(0)}<501

修改为

{Template OS Linux:system.swap.size[,pfree].last(0)}<50 and {Template OS Linux:system.swap.size[,free].last(0)}<>0


Zabbix:Lack of free swap space on Zabbix server 解决

点击更新保存即可,稍等片刻故会变成 '已解决',确认

Zabbix:Lack of free swap space on Zabbix server 解决




转载于:https://blog.51cto.com/9499607/2163615

相关文章:

  • 2021-12-09
  • 2021-10-29
  • 2021-11-14
  • 2021-10-28
  • 2022-12-23
  • 2021-07-25
  • 2021-05-18
  • 2022-12-23
猜你喜欢
  • 2021-11-29
  • 2021-12-05
  • 2021-12-03
  • 2022-12-23
  • 2021-10-16
  • 2021-08-11
  • 2021-05-26
相关资源
相似解决方案