]> git.pld-linux.org Git - packages/cacti-template-mailgraph.git/blame - README
- syslog-ng sample
[packages/cacti-template-mailgraph.git] / README
CommitLineData
18ee158b
ER
1Setup
2~~~~~
3
4To install this template:
5
61. Start mailgraph, be sure that .rrd files are created in /var/lib/mailgraph,
7verify permissions if they do not get created.
8
92. adjust permissions that webserver is able to read the mailgraph .rrd files.
10
113. Create graph via "New Graphs":
12select "Postfix Processing (Mailgraph)" for host and hit "Create"
13
143. Change data templates point to .rrd files:
15for "Postfix Processing (Mailgraph)" choose /var/lib/mailgraph/mailgraph.rrd
16for "Postfix Processing Virus (Mailgraph)" choose /var/lib/mailgraph/mailgraph_virus.rrd
17
18Enjoy!
19
20Multiple graphs
21~~~~~~~~~~~~~~~
22
23To collect multiple graphs from different hosts, use syslog to route the mail
24logs to your cacti host.
25
26Use --host=HOST and --logfile and --daemon-rrd=DIR options to combine results
27for your needs.
28
29You could even merge results from mailhost1 and mailhost2 if you write their
30logs to single file with syslog and do not specify --host argument to
31mailgraph.pl daemon.
d9cf392a
ER
32
33for example via syslog-ng:
341. server side (accepting logs):
35 source s_net { udp(); };
36 filter f_mail { facility(mail); };
37 destination mail_net {
38 file(
39 "/var/log/mail/$HOST" owner(root) group(http) perm(0640)
40 create_dirs(yes) dir_perm(0710) dir_owner(root) dir_group(http)
41 );
42 };
43 log { source(s_net); filter(f_mail); destination(mail_net); };
44
452. client side (sending logs):
46destination maillog { udp("cactihost" port(514)); };
47log { source(s_sys); filter(f_mail); destination(maillog); };
This page took 0.050499 seconds and 4 git commands to generate.