mirror of
https://github.com/cmur2/munin-postfix.git
synced 2024-11-18 12:56:17 +01:00
Update README
This commit is contained in:
parent
7af8334532
commit
6a387009eb
12
README.md
12
README.md
@ -25,9 +25,8 @@ symlinkas *root* in /etc/munin/plugins by using e.g.:
|
|||||||
|
|
||||||
cd /etc/munin/plugins; ln -s /your/path/to/postfix_mailqueue postfix_mailqueue
|
cd /etc/munin/plugins; ln -s /your/path/to/postfix_mailqueue postfix_mailqueue
|
||||||
|
|
||||||
Since this script does not honor a environment variable to locate your
|
(In case you already used the original plugin you should remove the old symlink.
|
||||||
*mail.log* you currently have to set the `MAILLOG` variable (which defaults
|
Then **wait** about 10 minutes before add the new symlink described above.)
|
||||||
to */var/log/mail.log*) in the script's header.
|
|
||||||
|
|
||||||
Next make sure that munin is allowed or at least allows this script to read
|
Next make sure that munin is allowed or at least allows this script to read
|
||||||
your *mail.log*. How to do this depends on your system.
|
your *mail.log*. How to do this depends on your system.
|
||||||
@ -39,7 +38,12 @@ where you should change/add a line to the `[postfix_mailqueue]` section:
|
|||||||
|
|
||||||
group adm
|
group adm
|
||||||
|
|
||||||
Later you will set the *mail.log* path here, too.
|
If your *mail.log* is not located at */var/log/mail.log* (the default)
|
||||||
|
you should add another line with your custom path:
|
||||||
|
|
||||||
|
env.maillog /var/log/mail.log
|
||||||
|
|
||||||
|
**Don't forget to restart your munin-node deamon.**
|
||||||
|
|
||||||
syslog5mins
|
syslog5mins
|
||||||
-----------
|
-----------
|
||||||
|
@ -55,6 +55,7 @@ spool directory. Is postconf is not available in the $PATH then
|
|||||||
|
|
||||||
[postfix_mailqueue]
|
[postfix_mailqueue]
|
||||||
env.spooldir /var/spool/postfix
|
env.spooldir /var/spool/postfix
|
||||||
|
env.maillog /var/log/mail.log
|
||||||
|
|
||||||
=head1 AUTHOR
|
=head1 AUTHOR
|
||||||
|
|
||||||
@ -78,7 +79,7 @@ munin-node.
|
|||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
MAILLOG="/var/log/mail.log"
|
MAILLOG=${maillog:-/var/log/mail.log}
|
||||||
|
|
||||||
# atempt to get spooldir via postconf, but environment overrides.
|
# atempt to get spooldir via postconf, but environment overrides.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user