zoukankan      html  css  js  c++  java
  • zabbix中的sql

    #select *from hosts where hostid=10322
    #select * from items where hostid=10322 and key_ like 'net.if%' and `name` like '%0/0/1%'
    #select * from history_uint where itemid in (33129,32944) and clock=1597119605
    #select ROUND(value/1000/1000,2) as '0/0/1-in' from history_uint where clock=1597119605 and itemid=33129
    #select FROM_UNIXTIME(clock) as 'date' ,ROUND(value/1000/1000,2) as '0/0/1-in' from history_uint where itemid=33129 limit 3

    #查询主机的hostid
    select * from hosts where name like '成都电信%'

    #查询主机key_和别名
    select * from items where hostid=10362 and name like "%10GE1/0/1%"

    #zabbix查询主机接口的value
    select from_unixtime(clock) as DateTime,value,ns from history_uint where itemid=35318 order by clock desc limit 10;
    select from_unixtime(clock) as DateTime,round(value/1024/1024,2) as Traffic_in from history_uint where itemid=35318 and from_unixtime(clock)>='2020-12-20' and from_unixtime(clock)<'2020-12-21' limit 10;

  • 相关阅读:
    洛谷P1085 不高兴的津津
    为什么要学习算法
    洛谷P1001 A+B Problem
    计算机问题求解周期
    洛谷P1000 超级玛丽游戏
    洛谷P1421 小玉买文具
    CF359D Pair of Numbers(ST+二分)
    2020.10.7
    2020.10.10
    2020.10.8
  • 原文地址:https://www.cnblogs.com/dengcongcong/p/13476341.html
Copyright © 2011-2022 走看看