需要每周mysql zabbix报告CPU,内存,磁盘空间

时间:2016-02-02 06:56:45

标签: mysql zabbix

请帮助我们生成每周报告。

我们使用了zabbix提供的数据库。

服务器详细信息

OS-Redhat 6.4 Mysql Server版本:5.5.17

我们在下面查询了当前时间。

查询:

select h.host "Device Type",
replace(replace(replace(i.name,'$1',substring_index(substring_index(i.key_,',',1),'[',-1)),
'$2',substring_index(substring_index(i.key_,',',2),',',-1)),
'$3',substring_index(substring_index(i.key_,',',-1),']',1)) "Parameter Description",
i.lastvalue/1024/1024/1024 "VALUE",
i.delay "Polling Interval(in min)" from hosts h, items i, interface n 
where h.hostid=n.hostid and h.hostid=i.hostid and h.status=0 and i.status=0 and h.host='CRMAPP01' order by h.host;)

1 个答案:

答案 0 :(得分:1)

目前zabbix没有内置的自动报告功能,最好的方法是使用像Pentaho Reporting这样的外部程序每个月运行一次(自动)