问题是在syslog文件中看不到预期的输出。我编写了一个Python插件,位于“/home/my/collectd”/pyPlugin.py". /etc/Collectd中的collected配置/集合D.conf“(Python plugin在globals true下启用)具有以下块:
<Plugin python>
ModulePath "/home/my/collectd/"
LogTraces true
Interactive false
Import pyPlugin
<Module pyPlugin>
Test "arg1" "arg2"
</Module>
</Plugin>
插件非常简单:
^{pr2}$当我查看“/var/log/syslog”时,没有看到任何输出。在
把这个放在你的集合D.conf文件:
LoadPlugin "syslog"
从FAQ:
默认情况下,syslog插件将显示
info
级别。还要确认Collectd正在运行,请查看进程列表或/etc/init.d/collectd status
。在相关问题 更多 >
编程相关推荐