On 06/19/2013 08:18 AM, Grant wrote:
I think I need to tell munin where my postfix logs are
(/var/log/mail/current) since I use metalog. How can I do that?
- Grant
Try'n read some documentation
http://munin.readthedocs.org/en/latest/
I've read a lot of it but:
"0 Results for postfix"
Then check out /etc/munin/plugin-conf.d/munin-node
I've successfully configured apache and nginx in that file but munin
postfix config is extremely hard to find online.
Instead of searching online, use the built-in pod based format, e.g.:
$ munindoc postfix_mailstats
NAME
postfix_mailstats - Plugin to monitor the number of mails
delivered and rejected by postfix
CONFIGURATION
Configuration parameters for /etc/munin/postfix_mailstats, if
you need to override the defaults below:
[postfix_mailstats]
env.logdir - Which logfile to use
env.logfile - What file to read in logdir
DEFAULT CONFIGURATION
[postfix_mailstats]
env.logdir /var/log
env.logfile mail.log
Munin plugins are controlled by the files in /etc/munin/plugin-conf.d/.
Based on the above, either create a section for postfix_mailstats in the
file "munin-node" or create a new one (they will all be parsed),
detailing the location of your mail log.
Explicitly, if your mail log is /var/log/mail/current, add this:
[postfix_mailstats]
env.logdir /var/log/mail
env.logfile current
You might also need to set group permissions to be able to read the log
file.
--
Bjørn