gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 23:38:21 25 4
gpt4 key购买 nike

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

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

服务器详细信息

操作系统-Redhat 6.4Mysql服务器版本: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;)

最佳答案

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

关于mysql - 需要每周 mysql zabbix 报告 CPU、内存、磁盘空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35146957/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com