mysql - 关于zabbix出现slow query问题
阿神
阿神 2017-04-17 14:23:39
0
0
444

我的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

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

阿神
阿神

闭关修行中......

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!