exec插件每个interval执行一次,如果上次的进程没有结束的话不会创建新的进程
exec user 执行文件 参数1 参数2 …
<Plugin exec> Exec "fang" "/home/fang/bin/sayhello" "arg1" </Plugin>
redis 自带的插件不好用,我们用python的插件
<LoadPlugin python> Globals true </LoadPlugin> <Plugin python> ModulePath "/opt/collectd/lib/collectd/plugins/python" Import "redis_info" <Module redis_info> Host "localhost" Port 6379 Verbose false </Module> </Plugin>
直接编译即可
<Plugin mysql> <Database fang> Host "localhost" User "root" Password "" Port "3306" </Database> </Plugin>