gpt4 book ai didi

collectd - 无法使用 write_http Collectd 插件

转载 作者:行者123 更新时间:2023-12-02 09:13:43 26 4
gpt4 key购买 nike

我正在运行collectd 5.4.2.788.gf87af5a,我也尝试过使用5.4.1。

我在日志中看到以下内容:

May  8 00:50:01 ip_172_1_1_1 collectd[19559]: Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status 2 (ENOENT). Most likely this means you didn't load any write plugins.

我有 write_http 写入 localhost:9103 并在该端口上监听 netcat。

nc -l 9103

我的collectd.conf:

LoadPlugin write_http
<Plugin write_http>
<URL "http://127.0.0.1:9103/collectd-post">
Format "JSON"
StoreRates false
</URL>
</Plugin>

如果我启用 rrdtool,该消息就会消失,但无论是否启用 rrdtool,netcat 都不会打印任何内容,因此 write_http 不会向该套接字发送任何数据。

更新 1 - 2015.05.08

write_http 正在从 cpu 插件传送统计信息,但不是从我自己的 python 插件传送统计信息。但是python插件确实向rrdtool写入了任何想法吗?

更新 2 - 2015.05.08

一旦我验证 write_http 不能与我的 python 插件一起工作,我就在这里找到了罪魁祸首:https://github.com/collectd/collectd/issues/716使用元数据解决方法解决了该问题。

最佳答案

一旦我验证 write_http 不能与我的 python 插件一起工作,我就在这里找到了罪魁祸首:https://github.com/collectd/collectd/issues/716使用元数据解决方法解决了该问题。

关于collectd - 无法使用 write_http Collectd 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30114112/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com