zabbix 由于历史数据过大, 因此导致磁盘空间暴涨, 下面是解决方法步骤: 一.分析数据库: 1. 统计数据库中每个表所占的空间: mysql> SELECT table_name AS "Tables", ), ) "Size in MB" FROM information_schema.TABLES WHERE table_schema = 'zabbixdb' ORDER BY (data_length + index_length) DESC;
linux memory: mysql -u zabbix -p -h 127.0.0.1 zabbix -e "select h.name, 100-AVG(hi.value_avg) from hosts h join items i on h.hostid=i.hostid join trends_uint hi on i.itemid=hi.itemid where h.status=0 and i.key_='vm.memory.free.[percent]' and hi.clock
hive> select * from (select *,row_number() over (partition by id) num from t_link) t where t.num=1; 保留crt_time最新的一个数据 select * from (select *,row_number() over (partition by id order by crt_time desc) num from t_link) t where t.num=1; 将查询的去重数据保存到新表t_
<script type="text/javascript"> var t function cleaData() { t = setTimeout(syc, 3000); } function syc() { document.getElementById("Label1").innerText = ""; cleart(t); } </script>