首页 > 关于zabbix出现slow query问题

关于zabbix出现slow query问题

我的zabbix需要监控设备有200多台,都是通过snmpv2进行监控。之前已经对discovery里面的items的项目进行优化,比如提高客户端采集数据的时间,把不需要的item去掉,不太重要的item周期延长等。不过slow query的问题还是存在。语句如下:

slow query: 4.223545 sec, "select distinct t.triggerid,t.description,t.expression,t.error,t.priority,t.type,t.value,t.state,t.lastchange,t.status 
from hosts h,items i,functions f,triggers t 
where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=t.triggerid and h.status in (0,1) and t.flags<>2

对于这个问题,有什么优化的思路和建议么?

【热门文章】
【热门文章】