1 Star 0 Fork 591

bestkf / DT固定资产设备管理系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
开发.txt 2.10 KB
一键复制 编辑 原始数据 按行查看 历史
Lank 提交于 2020-08-08 20:19 . 常规更新操作
$cpu_idle_top10_sql = "select hosts.name,b.value from (select * from (select * from history where itemid in (select itemid from items where key_='system.cpu.util[,idle]' and hostid in ( select hostid from hosts where available=1)) and clock in (select MAX(clock) from history group by itemid) order by clock) a group by a.itemid order by a.value limit 10) b inner join items on items.itemid=b.itemid inner join hosts on hosts.hostid=items.hostid";
$cpu_idle_top10 = mysqli_query($conn, $cpu_idle_top10_sql);
$network_incoming_top10_sql = "select hosts.name,b.value from (select * from (select * from history_uint where itemid in (select itemid from items where key_ like 'net.if.in[%]' and hostid in ( select hostid from hosts where available=1)) and clock in (select MAX(clock) from history group by itemid) order by clock) a group by a.itemid order by a.value desc limit 10) b inner join items on items.itemid=b.itemid inner join hosts on hosts.hostid=items.hostid";
$network_incoming_top10 = mysqli_query($conn, $network_incoming_top10_sql);
$cpu_load_top10_sql = "select hosts.name,b.value from (select * from (select * from history where itemid in (select itemid from items where key_='system.cpu.load[percpu,avg5]' and hostid in ( select hostid from hosts where available=1)) and clock in (select MAX(clock) from history group by itemid) order by clock) a group by a.itemid order by a.value desc limit 10) b inner join items on items.itemid=b.itemid inner join hosts on hosts.hostid=items.hostid";
$cpu_load_top10 = mysqli_query($conn, $cpu_load_top10_sql);
$network_outgoing_top10_sql = "select hosts.name,b.value from (select * from (select * from history_uint where itemid in (select itemid from items where key_ like 'net.if.out[%]' and hostid in ( select hostid from hosts where available=1)) and clock in (select MAX(clock) from history group by itemid) order by clock) a group by a.itemid order by a.value desc limit 10) b inner join items on items.itemid=b.itemid inner join hosts on hosts.hostid=items.hostid";
$network_outgoing_top10 = mysqli_query($conn, $network_outgoing_top10_sql);
Java
1
https://gitee.com/livecsharp/zcdevmgr.git
git@gitee.com:livecsharp/zcdevmgr.git
livecsharp
zcdevmgr
DT固定资产设备管理系统
master

搜索帮助