4 To install this template:
6 1. Start mailgraph, be sure that .rrd files are created in /var/lib/mailgraph,
7 verify permissions if they do not get created.
9 2. adjust permissions that webserver is able to read the mailgraph .rrd files.
11 3. Create graph via "New Graphs":
12 select "Postfix Processing (Mailgraph)" for host and hit "Create"
14 3. Change data templates point to .rrd files:
15 for "Postfix Processing (Mailgraph)" choose /var/lib/mailgraph/mailgraph.rrd
16 for "Postfix Processing Virus (Mailgraph)" choose /var/lib/mailgraph/mailgraph_virus.rrd
23 To collect multiple graphs from different hosts, use syslog to route the mail
24 logs to your cacti host.
26 Use --host=HOST and --logfile and --daemon-rrd=DIR options to combine results
29 You could even merge results from mailhost1 and mailhost2 if you write their
30 logs to single file with syslog and do not specify --host argument to
33 for example via syslog-ng:
34 1. server side (accepting logs):
35 source s_net { udp(); };
36 filter f_mail { facility(mail); };
37 destination mail_net {
39 "/var/log/mail/$HOST" owner(root) group(http) perm(0640)
40 create_dirs(yes) dir_perm(0710) dir_owner(root) dir_group(http)
43 log { source(s_net); filter(f_mail); destination(mail_net); };
45 2. client side (sending logs):
46 destination maillog { udp("cactihost" port(514)); };
47 log { source(s_sys); filter(f_mail); destination(maillog); };