1,下载munin redis插件
https://github.com/bpineau/redis-munin
2,加载redis插件
# ln -sf /路径/redis_ /etc/munin/plugins/
3,创建munin的redis配置文件
# vim /etc/munin/plugin-conf.d/redis //新增文件 [redis_*] user root //在这里要root用户 env.host 127.0.0.1 env.port 6379
Can't exec "/etc/munin/plugins/redis_": 权限不够 at /usr/share/perl5/vendor_perl/Munin/Node/Service.pm line 263.
出现这样的错误,基本上权限问题,如文件及文件夹权限,用户没用对等
4,测试munin redis插件是不是ok了
[root@node1 plugins]# munin-run redis_ multigraph redis_clients clients.value 2 multigraph redis_blocked_clients blocked.value 0 multigraph redis_memory memory.value 735040 multigraph redis_fragmentation frag.value 9.79 multigraph redis_changes_since_last_save changes.value 0 multigraph redis_total_connections connections.value 154 multigraph redis_expired_keys expired.value 2 multigraph redis_evicted_keys evicted.value 0 multigraph redis_pubsub_channels channels.value 0 multigraph redis_commands commands.value 157 hits.value 0 misses.value 2 multigraph redis_dbs db0keys.value 4 db0expires.value 0
5,重启munin-node,就可以看到图片了
# /etc/init.d/munin-node restart
转载请注明
作者:海底苍鹰
地址:http://blog.51yip.com/server/1695.html