Modèle:Config/Munin/Prx
Révision datée du 16 février 2015 à 18:36 par import>Fleon
Les plugins suivants sont supprimés :
root #
cd /etc/munin/plugins/
root #
rm {nfsd*,exim*,*_eth1}
Monitoring des services spécifiques :
root #
cd /etc/munin/plugins/
root #
ln -sf /usr/share/munin/plugins/multips ./
root #
ln -sf /usr/share/munin/plugins/multips_memory ./
root #
ln -sf /usr/share/munin/plugins/apache_accesses ./
root #
ln -sf /usr/share/munin/plugins/apache_processes ./
root #
ln -sf /usr/share/munin/plugins/apache_volume ./
root #
ln -sf /usr/share/munin/plugins/fail2ban ./
Le plugin perdition a été modifié :
root #
cp /usr/share/munin/plugins/perdition ./
root #
diff -Naur /usr/share/munin/plugins/perdition ./perdition > /tmp/patch
--- /usr/share/munin/plugins/perdition 2013-11-12 23:13:22.000000000 +0100 +++ perdition 2015-01-30 15:59:52.229366426 +0100 @@ -108,16 +108,16 @@ fi if [ $ARGS != 0 ]; then - ${LOGTAIL} -f ${PERDITION_LOG} -o ${OFFSET_FILE} > ${TEMP_FILE} + ${LOGTAIL} -f ${PERDITION_LOG} -o ${OFFSET_FILE} | grep -v 192.168.10.72 | grep -v 192.168.10.82 > ${TEMP_FILE} else - ${LOGTAIL} ${PERDITION_LOG} ${OFFSET_FILE} > ${TEMP_FILE} + ${LOGTAIL} ${PERDITION_LOG} ${OFFSET_FILE} | grep -v 192.168.10.72 | grep -v 192.168.10.82 > ${TEMP_FILE} fi connection=`grep "Connect:" ${TEMP_FILE} | wc -l` disconnected=`grep "Close:" ${TEMP_FILE} | wc -l` -imap=`grep 'port="143" status="ok"' ${TEMP_FILE} | wc -l` -imaps=`grep 'port="993" status="ok"' ${TEMP_FILE} | wc -l` -pop=`grep 'port="110" status="ok"' ${TEMP_FILE} | wc -l` -pops=`grep 'port="995" status="ok"' ${TEMP_FILE} | wc -l` +imap=`grep "protocol=IMAP4 .*status=\"ok\"" ${TEMP_FILE} | wc -l` +imaps=`grep "protocol=IMAP4S.*status=\"ok\"" ${TEMP_FILE} | wc -l` +pop=`grep "protocol=POP3 .*status=\"ok\"" ${TEMP_FILE} | wc -l` +pops=`grep "protocol=POP3S.*status=\"ok\"" ${TEMP_FILE} | wc -l` fatal=`grep 'Fatal [e|E]rror' ${TEMP_FILE} | wc -l` rm ${TEMP_FILE}
Configuration des plugins :
[apache_*] env.url http://127.0.0.1:%d/server-status?auto env.ports 80 env.showfree 1 [apt] user root env.MUNIN_PLUGSTATE /var/lib/munin/plugin-state/ [multips*] env.names apache2 perdition.imap4 perdition.imaps perdition.pop3 perdition.pop3s [perdition] user root env.logfile /var/log/syslog/messages