Trying to get munin plugin to work with redis

352 views
Skip to first unread message

David Montgomery

unread,
Feb 28, 2012, 9:48:42 AM2/28/12
to redi...@googlegroups.com
Hi,

I and trying to use the munin plugin from
https://github.com/gilles/redis-munin.git

Below is my bash script for installing.

However, when I run any of the plugins I get no results e.g. #> sudo
./redis_memory

Any idea on why the plugins are not working?

Thanks


git clone https://github.com/gilles/redis-munin.git
cd redis-munin
sudo rm README.md
mv redis_memory_ redis_memory
mv redis_changes_since_last_save_ redis_changes_since_last_save
mv redis_commands_ redis_commands
mv redis_connections_ redis_connections
mv redis_databases_ redis_databases
mv redis_users_ redis_users
mv resque_failed_ resque_failed
mv resque_queues_ resque_queues
mv resque_workers_ resque_workers
sudo chmod 755 *

sudo cp * /usr/share/munin/plugins/
sudo ln -s /usr/share/munin/plugins/redis_memory /etc/munin/plugins/redis_memory
sudo ln -s /usr/share/munin/plugins/redis_changes_since_last_save
/etc/munin/plugins/redis_changes_since_last_save
sudo ln -s /usr/share/munin/plugins/redis_commands
/etc/munin/plugins/redis_commands
sudo ln -s /usr/share/munin/plugins/redis_connections
/etc/munin/plugins/redis_connections
sudo ln -s /usr/share/munin/plugins/redis_databases
/etc/munin/plugins/redis_databases
sudo ln -s /usr/share/munin/plugins/redis_users /etc/munin/plugins/redis_users
sudo ln -s /usr/share/munin/plugins/resque_failed
/etc/munin/plugins/resque_failed
sudo ln -s /usr/share/munin/plugins/resque_queues
/etc/munin/plugins/resque_queues
sudo ln -s /usr/share/munin/plugins/resque_workers
/etc/munin/plugins/resque_workers
cd ..
sudo rm -rf redis-munin/

leon zhang

unread,
Mar 12, 2012, 2:57:41 AM3/12/12
to Redis DB
maybe you should run munin script under user munin.
try login as munin `su - munin --shell "/bin/bash"`
and run you script again.

On Feb 28, 10:48 pm, David Montgomery <davidmontgom...@gmail.com>
wrote:
> Hi,
>
> I and trying to use the munin plugin fromhttps://github.com/gilles/redis-munin.git
>
> Below is my bash script for installing.
>
> However, when I run any of the plugins I get no results e.g. #> sudo
> ./redis_memory
>
> Any idea on why the plugins are not working?
>
> Thanks
>
> git clonehttps://github.com/gilles/redis-munin.git
Reply all
Reply to author
Forward
0 new messages