User:group is now prometheus:prometheus
This commit is contained in:
parent
95dc471102
commit
a76e547fe0
@ -1,14 +1,14 @@
|
||||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
For postfix_exporter to read maillog, you need to chown it to maildrop group:
|
||||
chown :maildrop /var/log/maillog
|
||||
For postfix_exporter to read maillog, you need to chown it to prometheus group:
|
||||
chown :prometheus /var/log/maillog
|
||||
|
||||
Also configure newsyslog to apply these rights when rotating log:
|
||||
/var/log/maillog root:maildrop 640 7 * @T00 JC
|
||||
/var/log/maillog root:prometheus 640 7 * @T00 JC
|
||||
|
||||
Create postfix_exporter logfile with:
|
||||
touch /var/log/postfix_exporter.log && chown postfix_exporter /var/log/postfix_exporter.log
|
||||
touch /var/log/postfix_exporter.log && chown prometheus /var/log/postfix_exporter.log
|
||||
EOM
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user