--- /dev/null
+Setup
+~~~~~
+
+To install this template:
+
+1. Start mailgraph, be sure that .rrd files are created in /var/lib/mailgraph,
+verify permissions if they do not get created.
+
+2. adjust permissions that webserver is able to read the mailgraph .rrd files.
+
+3. Create graph via "New Graphs":
+select "Postfix Processing (Mailgraph)" for host and hit "Create"
+
+3. Change data templates point to .rrd files:
+for "Postfix Processing (Mailgraph)" choose /var/lib/mailgraph/mailgraph.rrd
+for "Postfix Processing Virus (Mailgraph)" choose /var/lib/mailgraph/mailgraph_virus.rrd
+
+Enjoy!
+
+Multiple graphs
+~~~~~~~~~~~~~~~
+
+To collect multiple graphs from different hosts, use syslog to route the mail
+logs to your cacti host.
+
+Use --host=HOST and --logfile and --daemon-rrd=DIR options to combine results
+for your needs.
+
+You could even merge results from mailhost1 and mailhost2 if you write their
+logs to single file with syslog and do not specify --host argument to
+mailgraph.pl daemon.
Summary: Mailgraph statistics template for Cacti
Name: cacti-template-%{template}
Version: 0.1
-Release: 0.2
+Release: 0.3
License: GPL v2
Group: Applications/WWW
Source0: cacti_data_template_postfix_processing_mailgraph.xml
Source1: cacti_data_template_postfix_processing_virus_mailgraph.xml
Source2: cacti_graph_template_postfix_processing_mailgraph.xml
+Source3: README
URL: http://forums.cacti.net/about1571.html
BuildRequires: rpmbuild(macros) >= 1.554
Requires: cacti
cp -a %{SOURCE0} .
cp -a %{SOURCE1} .
cp -a %{SOURCE2} .
+cp -a %{SOURCE3} .
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc README
%{resourcedir}/*.xml