mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-23 07:27:05 +00:00
Check munin plugins existence and add fail2ban
This commit is contained in:
parent
f5a59d8bb1
commit
05eca610df
@ -72,9 +72,21 @@ hide_output systemctl unmask munin.service
|
||||
hide_output systemctl enable munin.service
|
||||
|
||||
# Some more munin plugins
|
||||
ln -fs /usr/share/munin/plugins/postfix_mailstats /etc/munin/plugins/
|
||||
ln -fs /usr/share/munin/plugins/spamstats /etc/munin/plugins
|
||||
ln -fs /usr/share/munin/plugins/df_abs /etc/munin/plugins
|
||||
if [ -f /usr/share/munin/plugins/postfix_mailstats ] && [ ! -h /etc/munin/plugins/postfix_mailstats ]; then
|
||||
ln -fs /usr/share/munin/plugins/postfix_mailstats /etc/munin/plugins/
|
||||
fi
|
||||
|
||||
if [ -f /usr/share/munin/plugins/spamstats ] && [ ! -h /etc/munin/plugins/spamstats ]; then
|
||||
ln -fs /usr/share/munin/plugins/spamstats /etc/munin/plugins/
|
||||
fi
|
||||
|
||||
if [ -f /usr/share/munin/plugins/df_abs ] && [ ! -h /etc/munin/plugins/df_abs ]; then
|
||||
ln -fs /usr/share/munin/plugins/df_abs /etc/munin/plugins/
|
||||
fi
|
||||
|
||||
if [ -f /usr/share/munin/plugins/fail2ban ] && [ ! -h /etc/munin/plugins/fail2ban ]; then
|
||||
ln -fs /usr/share/munin/plugins/fail2ban /etc/munin/plugins/
|
||||
fi
|
||||
|
||||
# Restart services.
|
||||
restart_service munin
|
||||
|
Loading…
Reference in New Issue
Block a user