将石墨点指向Ganglia RRD

时间:2015-10-13 22:32:42

标签: python linux graphite rrdtool ganglia

我按照https://github.com/ganglia/monitor-core/wiki/Ganglia-Graphite处的“Point Graphite to Ganglia RRDs”的说明来分析Ganglia RRD文件。

我的rrdcached正在运行。我看到指标的导航树。如果我选择一个指标,我只会在Graphite Web UI中的作曲家中获得一个损坏的图像。

ubuntu@graphite-server-v735i33ut4fq:~$ ps -ef | grep rrd
root      7044     1  0 18:07 ?        00:00:00 /usr/bin/rrdcached -l unix:/var/run/rrdcached.sock -j /var/lib/rrdcached/journal/ -F -b /var/lib/rrdcached/db/ -B -p /var/run/rrdcached.pid

如果我右键单击损坏的图像并选择查看图像。我收到以下堆栈跟踪,并显示错误消息“无法连接到rrdcached:权限被拒绝”。

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/graphite/render/views.py", line 110, in renderView
seriesList = evaluateTarget(requestContext, target)
  File "/usr/lib/python2.7/dist-packages/graphite/render/evaluator.py", line 10, in evaluateTarget
result = evaluateTokens(requestContext, tokens)
  File "/usr/lib/python2.7/dist-packages/graphite/render/evaluator.py", line 21, in evaluateTokens
return evaluateTokens(requestContext, tokens.expression)
  File "/usr/lib/python2.7/dist-packages/graphite/render/evaluator.py", line 24, in evaluateTokens
return fetchData(requestContext, tokens.pathExpression)
  File "/usr/lib/python2.7/dist-packages/graphite/render/datalib.py", line 229, in fetchData
dbResults = dbFile.fetch( timestamp(startTime), timestamp(endTime) )
  File "/usr/lib/python2.7/dist-packages/graphite/storage.py", line 405, in fetch
rrdtool.flushcached(self.fs_path, '--daemon', settings.FLUSHRRDCACHED)
error: Unable to connect to rrdcached: Permission denied

我做错了什么?我应该在哪里看得更远?

顺便说一下,我在/etc/graphite/local_settings.py中设置了FLUSHRRDCACHED = 'unix:/var/run/rrdcached.sock'。我也安装了python-rrdtool。

谢谢,

大卫

0 个答案:

没有答案