Comments (13)
zabbix_api --report "CPU" '2016-03-24 00:00:00' '2016-03-25 00:00:00'
from zabbix_manager.
@wuhongtao2016 您执行的方式是什么?貌似您的时间格式有点问题
from zabbix_manager.
zabbix_api --report "CPU idle time" "2016-06-03 00:00:00" "2016-06-10 00:00:00"
from zabbix_manager.
有什么问题? 目前没有排查出来。
from zabbix_manager.
@wuhongtao2016 您的zabbix版本是多少?执行程序时可以通过加参数-d
输出调试信息
from zabbix_manager.
zabbix 版本是这个2.4.5。
调试的话走到时间那就报错了
11
from zabbix_manager.
解决了日期了,又出现其他问题。
from zabbix_manager.
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.
@wuhongtao2016 zabbix_manage是根据zabbix3.0的接口写的,2.4的话,相应接口可能有些改动
from zabbix_manager.
我们只用发送报表的?需要改哪里,能提示一下吗
from zabbix_manager.
@wuhongtao2016 zabbix3.0 新增了trend接口,使用2.4的话,需要编写一个函数替换zabbix_api.py中的__trend_get函数,此函数是输出一段时间内某个item的最大值,平均值,最小值
from zabbix_manager.
@wuhongtao2016 zabbix会收集历史数据(history_get获取),以及还会收集每小时的平均数据作为趋势数据(trend_get),每小时才收集一次,所以trends(趋势)占用的资源很小。这样的话,2.4需要通过history_get输出一段时间内某个item的最大值,平均值,最小值,【注意:需要注意history的保留时间】
from zabbix_manager.
有点困难,我在找找别的有没有同样的开源的吧。谢谢了
from zabbix_manager.
Related Issues (17)
- python HOT 1
- zabbix4.0可以用吗? HOT 6
- ImportError: No module named w_lib.zabbix_api_lib HOT 2
- 导出可行性报表时所得数据与zabbix不符
- how to config zabbix_manager HOT 1
- 查询返回都是一个错误页面代码 HOT 7
- 提供pip requirement file HOT 2
- zabbix5.2新版本失效否? HOT 1
- 关于zabbix_api 的ssl配置问题 HOT 6
- 能否多个监控项一起添加 HOT 3
- url error HOT 3
- 报错?centos7,python2.7 HOT 25
- 作者以后是否会考虑加入图形的报表 HOT 1
- 突然出现故障 HOT 1
- 导出报表根据单位排序bug HOT 1
- 根据key导出报表时报错了,zabbix版本是3.4,db用的是oracle。 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zabbix_manager.