其他分享
首页 > 其他分享> > zabbix获取历史告警问题

zabbix获取历史告警问题

作者:互联网

mysql -uroot -p -S mysql.sock -e "use zabbix;select
FROM_UNIXTIME(zabbix.events.clock) 告警时间,
zabbix.hosts.host 告警主机,
zabbix.events.name 告警信息
from
zabbix.hosts,
zabbix.items,
zabbix.functions,
zabbix.triggers,
zabbix.events
where
zabbix.hosts.hostid=zabbix.items.hostid
AND zabbix.items.itemid = zabbix.functions.itemid
AND zabbix.functions.triggerid = zabbix.triggers.triggerid
AND zabbix.triggers.triggerid = zabbix.events.objectid
order by zabbix.events.clock desc ;"

标签:functions,triggers,items,获取,zabbix,hosts,告警,events
来源: https://www.cnblogs.com/suyj/p/15879687.html