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

problem:

When using Zabbix to monitor some cloud hosts, you may encounter:

Lack of free swap space on Zabbix server1

The picture is as follows:
Insert picture description here
Use the command:

free -m

see:
Insert picture description here

Swap's total, used, and free values ​​are all 0. This is because Zabbix does not consider cloud host users.

Processing steps:

1. Management-Template-Template OS Linux-Trigger
Insert picture description here

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

Insert picture description here

3. Modify Expression

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

change into

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

Insert picture description here

Click Update to save, wait for a while, it will become "Resolved", confirm

Insert picture description here

Guess you like

Origin blog.csdn.net/ichen820/article/details/115005260