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;

  • 相关阅读:
    面向对象 小游戏 打飞机
    面向对象2
    面向对象
    正则 校验邮箱
    正则 过滤敏感字
    Strobogrammatic Number
    Binary Tree Right Side View
    [?]*Closest Binary Search Tree Value II
    *Closest Binary Search Tree Value
    *Inorder Successor in BST
  • 原文地址:https://www.cnblogs.com/dengcongcong/p/13476341.html
Copyright © 2011-2022 走看看