-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathREADME
50 lines (33 loc) · 1.56 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
This is a Munin public domain plugin for Redis.
It tries to extensively cover Redis INFO output, while keeping the
dependencies low (currently, only needs awk, tr, sed, redis-cli and Munin 1.4+).
It can monitor several Redis instances, remotes or locals to the server
(via network or socket connection).
To install : just copy the redis_ script to your $MUNIN_LIBDIR
(on Debian, that's /usr/share/munin/plugins/).
Then create a symbolic link like this:
ln -s '/usr/share/munin/plugins/redis_' \
'/etc/munin/plugins/redis_127.0.0.1_6379'
Or let "munin-node-configure --shell | bash" do it for you.
To monitor remote servers (or monitor local Redis instances listening
on non-defaults ports), create a symbolic link accordingly, ie. :
/etc/munin/plugins/redis_remoteserverip_remoteserverport
To monitor local running socket-based redis setups, create a symbolic
link like this:
/etc/munin/plugins/redis_socket_socketpath_with_underscores_filename
i.e. :
ln -s '/usr/share/munin/plugins/redis_' \
'/etc/munin/plugins/redis_socket_var_run_redis_redis.sock'
It's important to use the word socket as second part after redis_, to signal
the script to use a socket connection. The redis-cli command must have
access to the socket.
The script convert the naming after socket into a socket real path.
Passwords can be set in a config file ala /etc/munin/plugin-conf.d/redis:
[redis_*]
env.password secret-password
and/or
[redis_remoteserverip_remoteserverport]
env.password another-secret-password
and/or
[redis_socket_socketpath]
env.password another-secret-password