Modèle:Config/Munin/Mel

De Wikinfini
Sauter à la navigation Sauter à la recherche

Monitoring des services spécifiques :

root # cd /etc/munin/plugins/
root # ln -sf /usr/share/munin/plugins/bind9 ./
root # ln -sf /usr/share/munin/plugins/postfix_mailstats ./

D'autres plugins non fournis par le paquet officiel sont utilisés, on les stocks dans le répertoire /usr/local/share/munin:

root # mkdir /usr/local/share/munin
root # nano /usr/local/share/munin/{amavis_db,multimemory,postfix_filtered_awk,postfix_mail_stats,sshd_access,clamav}

Activation des plugins :

root # for i in multimemory postfix_filtered_awk postfix_mail_stats sshd_access clamav; do

> ln -sf /usr/local/share/munin/$i /etc/munin/plugins/
> done

root # ln -sf /usr/local/share/munin/amavis_db /etc/munin/plugins/amavis_time
root # ln -sf /usr/local/share/munin/amavis_db /etc/munin/plugins/amavis_content

Configuration des plugins :

File ~ nano /etc/munin/plugin-conf.d/munin-node
[amavis_*]
env.amavis_db_home /var/lib/amavis/db
env.amavislog  /var/log/syslog/messages
env.logtail /usr/sbin/logtail
env.MUNIN_MKTEMP  'mktemp -p /tmp/ $1'
env.MUNIN_PLUGSTATE /var/lib/munin/plugin-state/
user amavis

[bind9]
env.logfile   /var/log/named/bind.log

[clamav]
user root

[multimemory]
env.names named postfix amavisd

[postfix_filtered_awk]
user root
group adm

[postfix_mailstats]
env.logdir /var/log/syslog
env.logfile messages
group adm

[postfix_mail_stats]
group adm

[postfix_mailvolume]
env.logdir /var/log/syslog
env.logfile messages
group adm

[sshd_access]
user root
group root
env.logfile /var/log/syslog/messages
env.category network