From 18ee158b5e31bb0f64dfab00c07fef2e7f9b3d91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 12 Jul 2010 14:13:42 +0000 Subject: [PATCH] - create readme Changed files: README -> 1.1 cacti-template-mailgraph.spec -> 1.2 --- README | 31 +++++++++++++++++++++++++++++++ cacti-template-mailgraph.spec | 5 ++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..d92550e --- /dev/null +++ b/README @@ -0,0 +1,31 @@ +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. diff --git a/cacti-template-mailgraph.spec b/cacti-template-mailgraph.spec index 5330a72..034c2ae 100644 --- a/cacti-template-mailgraph.spec +++ b/cacti-template-mailgraph.spec @@ -2,12 +2,13 @@ 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 @@ -26,6 +27,7 @@ Template for Cacti - Mail statistics via mailgraph rrd files. cp -a %{SOURCE0} . cp -a %{SOURCE1} . cp -a %{SOURCE2} . +cp -a %{SOURCE3} . %install rm -rf $RPM_BUILD_ROOT @@ -42,4 +44,5 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%doc README %{resourcedir}/*.xml -- 2.44.0