adubkov / graphite-to-zabbix Goto Github PK
View Code? Open in Web Editor NEWGraphite to zabbix proxy, allow use zabbix triggers with graphite data.
License: GNU General Public License v2.0
Graphite to zabbix proxy, allow use zabbix triggers with graphite data.
License: GNU General Public License v2.0
Hello,
This is a request to create a step by step blog or Create Video of setting UP Graphite to Zabbix Monitoring.
Best,
Aakash Sapra
Successfully get graphite data and build ZabbixMetric data as follows. but always get response from zabbix server told that all metrics send failed.
11/14/2017 11:27:09 AM ZabbixMetric: {"host": "CAS0530000221", "value": "186427.0", "key": "graphite[virt.instance_1.disk_ops.sda.read]", "clock": 1510629870}
11/14/2017 11:27:09 AM ZabbixMetric: {"host": "CAS0530000221", "value": "50724838.5", "key": "graphite[virt.instance_1.disk_ops.sda.write]", "clock": 1510629870}
11/14/2017 11:27:09 AM Messages: ['{"host": "CAS0530000221", "value": "186427.0", "key": "graphite[virt.instance_1.disk_ops.sda.read]", "clock": 1510629870}', '{"host": "CAS0530000221", "value": "50724838.5", "key": "graphite[virt.instance_1.disk_ops.sda.write]", "clock": 1510629870}']
11/14/2017 11:27:09 AM Request: {"request":"sender data","data":[{"host": "CAS0530000221", "value": "186427.0", "key": "graphite[virt.instance_1.disk_ops.sda.read]", "clock": 1510629870},{"host": "CAS0530000221", "value": "50724838.5", "key": "graphite[virt.instance_1.disk_ops.sda.write]", "clock": 1510629870}]}
11/14/2017 11:27:09 AM Packet [str]: ZBXD{"request":"sender data","data":[{"host": "CAS0530000221", "value": "186427.0", "key": "graphite[virt.instance_1.disk_ops.sda.read]", "clock": 1510629870},{"host": "CAS0530000221", "value": "50724838.5", "key": "graphite[virt.instance_1.disk_ops.sda.write]", "clock": 1510629870}]}
11/14/2017 11:27:09 AM Packet [hex]: 5a:42:58:44:1:19:1:0:0:0:0:0:0:7b:22:72:65:71:75:65:73:74:22:3a:22:73:65:6e:64:65:72:20:64:61:74:61:22:2c:22:64:61:74:61:22:3a:5b:7b:22:68:6f:73:74:22:3a:20:22:43:41:53:30:35:33:30:30:30:30:32:32:31:22:2c:20:22:76:61:6c:75:65:22:3a:20:22:31:38:36:34:32:37:2e:30:22:2c:20:22:6b:65:79:22:3a:20:22:67:72:61:70:68:69:74:65:5b:76:69:72:74:2e:69:6e:73:74:61:6e:63:65:5f:31:2e:64:69:73:6b:5f:6f:70:73:2e:73:64:61:2e:72:65:61:64:5d:22:2c:20:22:63:6c:6f:63:6b:22:3a:20:31:35:31:30:36:32:39:38:37:30:7d:2c:7b:22:68:6f:73:74:22:3a:20:22:43:41:53:30:35:33:30:30:30:30:32:32:31:22:2c:20:22:76:61:6c:75:65:22:3a:20:22:35:30:37:32:34:38:33:38:2e:35:22:2c:20:22:6b:65:79:22:3a:20:22:67:72:61:70:68:69:74:65:5b:76:69:72:74:2e:69:6e:73:74:61:6e:63:65:5f:31:2e:64:69:73:6b:5f:6f:70:73:2e:73:64:61:2e:77:72:69:74:65:5d:22:2c:20:22:63:6c:6f:63:6b:22:3a:20:31:35:31:30:36:32:39:38:37:30:7d:5d:7d
11/14/2017 11:27:09 AM Sending data to ('127.0.0.1', 10051)
11/14/2017 11:27:09 AM Response header: ZBXDZ
11/14/2017 11:27:09 AM Data received: {u'info': u'processed: 0; failed: 2; total: 2; seconds spent: 0.000077', u'response': u'success'}
11/14/2017 11:27:09 AM ('127.0.0.1', 10051) response: {u'info': u'processed: 0; failed: 2; total: 2; seconds spent: 0.000077', u'response': u'success'}
12/15/2016 05:30:43 PM G2ZProxy:_getMonitored():[{'host': u'192.168.3.119', 'metric': u'sitespeed_io.default.summary.www_gszwfw_gov_cn.chrome.native.browsertime.firstPaint.median'}]
12/15/2016 05:30:43 PM G2ZProxy:_getGraphiteData(): url:http://192.168.3.119:8080/render?from=-5minutes&rawData=true&target=192.168.3.119.sitespeed_io.default.summary.www_gszwfw_gov_cn.chrome.native.browsertime.firstPaint.median&format=json
12/15/2016 05:30:43 PM HTTP Error 401: Unauthorized
http://192.168.3.119:8080/render?from=-5minutes&rawData=true&target=192.168.3.119.sitespeed_io.default.summary.www_gszwfw_gov_cn.chrome.native.browsertime.firstPaint.median&format=json 0ms
12/15/2016 05:30:43 PM Used config: /etc/zabbix/zabbix_agentd.conf
12/15/2016 05:30:43 PM Loaded params: [('192.168.3.112', 10051)]
can u help me
Hi
Thank for making this software. It fills my exact needs. When setting this up I got an error on the SSL certificate. This is wierd considering I'm using http links in the command. Is an SSL connection forced and can I overrule this error?
command:
g2zproxy -z http://zabbix.server -zu User -zp secret -g http://graphite.server/graphite
error:
http://<servernaam>/graphite/render?from=-5minutes&rawData=true&target=<graphitestring>&format=json 65ms
04/23/2019 01:41:50 PM <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)>
PS. You should add (pip install) pyyaml as a dependency. This was needed for me to get this running.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.