View Full Version : Monitoring Postfix Via Browser
pinguingilo
17th June 2006, 11:07
I Want monitoring my mailserver trafic such as log analyzer and else...How To Monitoring That mailserver...Can do it ?? I use Postfix + Clamav + Clamsmtp..Please Tell me !!! :confused: :confused: :confused:
falko
18th June 2006, 13:57
Have a look at mailgraph: http://people.ee.ethz.ch/~dws/software/mailgraph/
davekeogh
18th June 2006, 22:30
pflogsumm can monitor postfix logs pretty well. Google it and you'll find it!
my5660
19th June 2006, 14:43
OR Have a look at ISOQLOG : www.enderunix.org/isoqlog
AngelDrago
22nd June 2006, 19:27
Have a look at mailgraph: http://people.ee.ethz.ch/~dws/software/mailgraph/ (http://people.ee.ethz.ch/%7Edws/software/mailgraph/)
i installed it but how do i access it?? via web interface...
Thank you,
falko
23rd June 2006, 17:03
There's a file mailgraph.cgi that you must put in the cgi-bin directory of a website and make it executable. Afterwards you can access it like that: www.example.com/cgi-bin/mailgraph.cgi
AngelDrago
26th June 2006, 07:23
i'm getting a 500 error - Internal Server Error! after copying the mailgraph.cgi... how do i make it executable???... Thank you falko Peace AngelDrago
lorello
26th June 2006, 22:44
i'm getting a 500 error - Internal Server Error! after copying the mailgraph.cgi... how do i make it executable???... Thank you falko Peace AngelDrago
I'v ubuntu breeze and I've done a simple
apt-get install mailgraph
then
chmod a+x /usr/lib/cgi-bin/mailgraph.cgi
and then... nothing was functioning properly :mad:
I've made it running, editing some files, as described in this trac ticket (http://trac.altranet.it/altranet/ticket/31)
(in italian, sorry).
You can now see my mail statistics at:
vandana.altranet.it/cgi-bin/mailgraph.cgi (http://vandana.altranet.it/cgi-bin/mailgraph.cgi)
:D
I'm now trying to make couriergraph (http://vandana.altranet.it/cgi-bin/couriergraph.cgi) running... but I'm not very lucky...
falko
27th June 2006, 09:28
i'm getting a 500 error - Internal Server Error! after copying the mailgraph.cgi... how do i make it executable???... Thank you falko Peace AngelDrago
chmod 755 /path/to/mailgraph.cgiIf you use suExec, you must also chown the file.
nenad
17th September 2006, 22:41
My mailgraph don't produce any graphs?
http://www.web-hosting.co.yu/cgi-bin/mailgraph.cgi
test script hello_world.pl is working:
http://www.web-hosting.co.yu/cgi-bin/hello_world.pl
falko
18th September 2006, 12:17
Are the settings in your mailgraph.cgi correct? Maybe the folder for image creation doesn't exist or something like that.
nenad
19th September 2006, 11:55
Exactly like that.
I overseen this line in mailgraph.cgi
my $tmp_dir = '/var/lib/mailgraph'; # temporary directory where to store the images
so, I created that directory
(and cmod and chown it change to the user the suexec of that virtualhost was running)
but there is still no graphs
there is only ,cgi-bin directory created inside /var/lib/mailgraph
nenad
19th September 2006, 13:36
OK, I found what was happening.
/var/lib/mailgraph
directory MUST be created BEFORE installation of rrdtool and mailgraph.
If it is not created then those two files:
mailgraph.rrd
mailgraph_virus.rrd
are not written in this directory, and when you try to see your graphs, you will not see them.
and it must be chmod to 755 and chown to the suexec user of that virtualhost
--------------------------------------------------------------------------
So this is revised falko's tutorial.
This one is "mailgraph for dummies on Debian Sarge 3.1" (dummies as I am :) ). And of course this will help me few months later when I reinstall server to set up mailraph once again :)
In this example virtual host is www.example.com
Web user is web1_user
Step 1:
mkdir /var/lib/mailgraph
chmod 755 /var/lib/mailgraph
chown web1_user:web1 /var/lib/mailgraph
Step 2:
apt-get install rrdtool mailgraph
Note: If you allready installed this, but you find your self in trouble making it work, and you find this tutorial try this instead:
apt-get --reinstall install rrdtool mailgraph
Step 3:
Should Mailgraph start on boot? <-- Yes
Which logfile should be used by mailgraph? <-- /var/log/mail.log
Remove RRD files on purge? <-- No If this is selected as 'Yes' then /var/lib/mailgraph directory will be deleted
Step 4:
Copy mailgraph.cgi to cgi of our website's cgi directory
cp -p /usr/lib/cgi-bin/mailgraph.cgi /var/www/www.example.com/cgi-bin
Step 5:
Change ownership:
chown web1_user:web1 /var/www/www.example.com/cgi-bin/mailgraph.cgi
Step 6:
Point your browser to:
http://www.example.com/cgi-bin/mailgraph.cgi
---------------------------------------------------------------------
Note: I do hope that this will work for you as it works for me:
http://www.web-hosting.co.yu/cgi-bin/mailgraph.cgi
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.