AW: [Postfixbuch-users] Mailgraph Error

Zimmermann Christian C.Zimmermann at virtuelle-apotheke.de
Mi Dez 3 14:48:59 CET 2003



> -----Ursprüngliche Nachricht-----
> Von: postfixbuch-users-bounces at listi.jpberlin.de [mailto:postfixbuch-
> users-bounces at listi.jpberlin.de] Im Auftrag von Peter Spiess
> Gesendet: Mittwoch, 3. Dezember 2003 14:07
> An: Eine Diskussionsliste rund um das Postfix-Buch.
> Betreff: Re: AW: [Postfixbuch-users] Mailgraph Error
> 
> Hallo Christian,

Hallo Peter,

Ok gesagt getan.
Kann auch über http://server/mailgraph.cgi auf den server zugreifen nur sehe ich nicht die Statistik sonden etwas in der Art.

#!/usr/bin/perl -w # mailgraph -- a postfix statistics rrdtool frontend # copyright (c) 2000-2002 David Schweikert # released under the GNU General Public License use RRDs; use POSIX qw(uname); my $VERSION = "1.4"; my $host = (POSIX::uname())[1]; my $scriptname = 'mailgraph.cgi'; my $xpoints = 540; my $points_per_sample = 3; my $ypoints = 150; my $ypoints_err = 80; my $rrd = '/usr/local/mailgraph-1.4/mailgraph.rrd'; # path to where the RRD database is my $rrd_virus = '/usr/local/mailgraph-1.4/mailgraph_virus.rrd'; # path to where the Virus RRD database is my $tmp_dir = '/tmp/mailgraph'; # temporary directory where to store the images my @graphs = ( { title => 'Day Graph', seconds => 3600*24, }, { title => 'Week Graph', seconds => 3600*24*7, }, { title => 'Month Graph', seconds => 3600*24*31, }, { title => 'Year Graph', seconds => 3600*24*365, }, ); my %color = ( sent => '000099', # rrggbb in 


> das CGI-script liegt in /usr/local/httpd/htdocs, außerdem läuft ein
> apache. Wenn ich jetzt über einen Browser http://server/mailgraph.cgi
> aufrufe, werden die Grafiken angezeigt.
> 
> Wenn nicht, dann schau mal in die Log-Datei vom Apache.


Da steht auch nicht all zu viel drin.

192.168.96.160 - cosmo [03/Dec/2003:14:44:14 +0100] "GET /%22$scriptname/mailgraph_${n}_err.png/%22 HTTP/1.1" 404 344
192.168.96.160 - cosmo [03/Dec/2003:14:44:30 +0100] "GET /mailgraph.cgi HTTP/1.1" 200 6648
192.168.96.160 - cosmo [03/Dec/2003:14:44:30 +0100] "GET /%22$scriptname/mailgraph_${n}.png/%22 HTTP/1.1" 404 340
192.168.96.160 - cosmo [03/Dec/2003:14:44:30 +0100] "GET /%22$scriptname/mailgraph_${n}_err.png/%22 HTTP/1.1" 404 344

Hoffe ich nerve nicht all zu sehr :) 
Ciao Christian

> Servus
> Peter
> 
> --
> _______________________________________________
> Postfixbuch-users mailingliste
> JPBerlin - Mailbox und Politischer Provider
> Postfixbuch-users at listi.jpberlin.de
> http://listi.jpberlin.de/mailman/listinfo/postfixbuch-users
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : Zimmermann Christian.vcf
Dateityp    : text/x-vcard
Dateigröße  : 581 bytes
Beschreibung: Zimmermann Christian.vcf
URL         : <https://listi.jpberlin.de/pipermail/postfixbuch-users/attachments/20031203/b60b1d0f/attachment.vcf>


Mehr Informationen über die Mailingliste Postfixbuch-users