adubkov / graphite-to-zabbix

Graphite to zabbix proxy, allow use zabbix triggers with graphite data.
GNU General Public License v2.0
30 stars 16 forks source link

graphite authorize #10

Open kikyoar opened 7 years ago

kikyoar commented 7 years ago

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

adubkov commented 7 years ago

@kikyoar Looks like you have auth enabled on graphite box. This script currently doesn't support auth. Feel free to add auth support.

kikyoar commented 7 years ago

@blacked ,Thanks