-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetting.sh
25 lines (19 loc) · 928 Bytes
/
setting.sh
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
#!/bin/bash
if [ -f /usr/share/munin/plugins/redis_info_commandstats_call ]; then
echo "exist redis_info_commandstats_call plugin"
else
cp plugins/redis_info_commandstats_call /usr/share/munin/plugins
chown root. /usr/share/munin/plugins/redis_info_commandstats_call
chmod a+x /usr/share/munin/plugins/redis_info_commandstats_call
ln -s /usr/share/munin/plugins/redis_info_commandstats_call /etc/munin/plugins/
fi
if [ -f /usr/share/munin/plugins/redis_info_commandstats_usec_per_call ]; then
echo "exist redis_info_commandstats_usec_per_call "
else
cp plugins/redis_info_commandstats_usec_per_call /usr/share/munin/plugins
chown root. /usr/share/munin/plugins/redis_info_commandstats_usec_per_call
chmod a+x /usr/share/munin/plugins/redis_info_commandstats_usec_per_call
ln -s /usr/share/munin/plugins/redis_info_commandstats_usec_per_call /etc/munin/plugins/
fi
/etc/init.d/munin-node restart
exit 0