====== exec ======
exec插件每个interval执行一次,如果上次的进程没有结束的话不会创建新的进程
exec user 执行文件 参数1 参数2 ...
* user 不能是root
Exec "fang" "/home/fang/bin/sayhello" "arg1"
====== redis ======
redis 自带的插件不好用,我们用python的插件
* 下载redis插件包 git clone https://github.com/powdahound/redis-collectd-plugin.git
- 把redis_info.py 放到 /opt/collectd/lib/collectd/plugins/python 目录下(假设你的collectd安装在/opt/collectd目录中)
- 添加如下配置
- 重启collectd
Globals true
ModulePath "/opt/collectd/lib/collectd/plugins/python"
Import "redis_info"
Host "localhost"
Port 6379
Verbose false
====== nginx ======
直接编译即可
====== mysql ======
Host "localhost"
User "root"
Password ""
Port "3306"