【问题标题】:collectd not able to send data to graphite carbon daemoncollectd 无法将数据发送到石墨碳守护进程
【发布时间】:2015-01-29 12:45:20
【问题描述】:

我们有一个石墨全栈服务器,它接收来自不同机器的指标。虽然其他 collectd 客户端发送数据正常,但其中一个客户端出现以下错误:

1 月 29 日 23:24:44 collectd-client collectd[25489]:write_graphite 插件:发送 到石墨服务器:2003((null))失败,状态为-1(连接 拒绝)1 月 29 日 23:24:44 collectd-client collectd [25489]:collectd:停止 5 个写线程。

collectd.conf as below
LoadPlugin syslog
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
LoadPlugin rrdtool
LoadPlugin write_graphite
<Plugin df>
        MountPoint "/"
</Plugin>
<Plugin disk>
        Disk "/^[hs]d[a-f][0-9]?$/"
</Plugin>
<Plugin interface>
        Interface "eth0"
</Plugin>
<Plugin write_graphite>
  <Node "carbon">
    Host "sde-graphite"
    Port "2003"
    Prefix "collectd"
    Postfix "collectd"
    StoreRates true
    AlwaysAppendDS false
    EscapeCharacter "_"
  </Node>
</Plugin>

【问题讨论】:

    标签: graphite collectd


    【解决方案1】:

    验证 carbon 是否在主机 sde-graphite 的 2003 端口运行。你可以做一个 netstat 看看 2003 是否有 UDP 监听器。我猜,它没有运行。

    【讨论】:

    • 太棒了,它监听的是 tcp 而不是 udp。在 我添加了“protocol tcp”。现在我可以在 Web 界面中看到图表
    【解决方案2】:

    已解决:

    我遇到了同样的问题,我的指标始终有效,但随机一些节点停止发送指标。并且 collectd 显示相同的错误:

    Jun 18 15:04:23 node-a collectd[20235]: write_graphite plugin: send to 10.8.0.100:2003 (udp) failed with status -1 (Invalid argument)

    6 月 18 日 15:04:23 node-a collectd[20235]:过滤子系统:内置目标“写入”:向所有写入插件分配值失败,状态为 -1。

    守护进程仍然存在,但没有向石墨发送指标。 注意:我的节点通过 openvpn 隧道将数据发送到石墨。

    这似乎是针对石墨服务器的连接超时错误。我可以通过停止/中断 vpn 服务来重现错误,并立即 collectd 显示上述错误。

    希望对你有帮助 享受吧!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多