如何为 collectd 安装插件

Iai*_*ain 5 software-installation statistics plugin

我已经安装了 collectd 并让它运行,但也想使用 Ping 插件(https://collectd.org/wiki/index.php/Plugin:Ping)但它实际上并未默认安装(即不在插件列表中)在 /opt/collectd/lib/collectd

如何安装 collectd 未附带的插件以及从何处获取插件本身?

我一直为此在谷歌上搜索,但找不到任何东西。

谢谢,

Iai*_*ain 3

终于想通了。我安装了 EPEL Repos,然后执行了以下操作(无论如何对于 CentOS):

# Install collectd-ping plugin. See http://www.rpmfind.net//linux/RPM/fedora/devel/rawhide/x86_64/c/collectd-ping-5.4.1-2.fc21.x86_64.html and above for versions

yum install collectd-ping.x86_64

cp /usr/lib64/collectd/ping.so /opt/collectd/lib/collectd/
Run Code Online (Sandbox Code Playgroud)

现在,当我运行collectd时,我不会收到旧错误:“找到‘ping’插件的配置,但该插件未加载或未注册配置回调。”

我收到另一个错误“ping 插件:ping_host_add (10.0.1.29) 失败:没有这样的设备”,但是通过 Google 搜索并查看 Collectd 常见问题解答,这个问题应该更容易解决!