Git Product home page Git Product logo

Comments (13)

wuhongtao2016 avatar wuhongtao2016 commented on May 23, 2024

zabbix_api --report "CPU" '2016-03-24 00:00:00' '2016-03-25 00:00:00'

from zabbix_manager.

meetbill avatar meetbill commented on May 23, 2024

@wuhongtao2016 您执行的方式是什么?貌似您的时间格式有点问题

from zabbix_manager.

wuhongtao2016 avatar wuhongtao2016 commented on May 23, 2024

zabbix_api --report "CPU idle time" "2016-06-03 00:00:00" "2016-06-10 00:00:00"

from zabbix_manager.

wuhongtao2016 avatar wuhongtao2016 commented on May 23, 2024

有什么问题? 目前没有排查出来。

from zabbix_manager.

meetbill avatar meetbill commented on May 23, 2024

@wuhongtao2016 您的zabbix版本是多少?执行程序时可以通过加参数-d输出调试信息

from zabbix_manager.

wuhongtao2016 avatar wuhongtao2016 commented on May 23, 2024

zabbix 版本是这个2.4.5。
调试的话走到时间那就报错了
Uploading image.png…
11

from zabbix_manager.

wuhongtao2016 avatar wuhongtao2016 commented on May 23, 2024

解决了日期了,又出现其他问题。

from zabbix_manager.

wuhongtao2016 avatar wuhongtao2016 commented on May 23, 2024

w_lib.zabbix_api_lib.ZabbixAPIException: (u'Error -32602: Invalid params., Incorrect API "trend". while sending {"params": {"output": ["itemid", "clock", "num", "value_min", "value_avg", "value_max"], "time_till": 1490371200, "time_from": 1490284801, "limit": "8760", "itemids": "24088"}, "jsonrpc": "2.0", "method": "trend.get", "auth": "2e7b3dc74bf9cb6b1f464c64f5feafb9", "id": 1}', -32602)

from zabbix_manager.

meetbill avatar meetbill commented on May 23, 2024

@wuhongtao2016 zabbix_manage是根据zabbix3.0的接口写的,2.4的话,相应接口可能有些改动

from zabbix_manager.

wuhongtao2016 avatar wuhongtao2016 commented on May 23, 2024

我们只用发送报表的?需要改哪里,能提示一下吗

from zabbix_manager.

meetbill avatar meetbill commented on May 23, 2024

@wuhongtao2016 zabbix3.0 新增了trend接口,使用2.4的话,需要编写一个函数替换zabbix_api.py中的__trend_get函数,此函数是输出一段时间内某个item的最大值,平均值,最小值

from zabbix_manager.

meetbill avatar meetbill commented on May 23, 2024

@wuhongtao2016 zabbix会收集历史数据(history_get获取),以及还会收集每小时的平均数据作为趋势数据(trend_get),每小时才收集一次,所以trends(趋势)占用的资源很小。这样的话,2.4需要通过history_get输出一段时间内某个item的最大值,平均值,最小值,【注意:需要注意history的保留时间】

from zabbix_manager.

wuhongtao2016 avatar wuhongtao2016 commented on May 23, 2024

有点困难,我在找找别的有没有同样的开源的吧。谢谢了

from zabbix_manager.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.