[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help needed with mailgraph



The permissions are looking good (see my output below), the only difference
I see is the size of the pictures, the are all 0.

Mailgraph is running, this is out from ps:
[hans@server ~]# ps -ef | grep mailgraph
root     26080     1  0 09:35 ?        00:00:00 /usr/bin/perl -w
/usr/sbin/mailgraph.pl -l /var/log/mail.log -d
--daemon_rrd=/var/lib/mailgraph
hans     26400 26029  0 09:59 pts/18   00:00:00 grep mailgraph

I don't see the differences?

Any way thanks
Hans


Permissions:

[hans@server ~]# ls -ld /var/lib/mailgraph
drwxr-xr-x    8 www-data www-data     4096 Oct 16 10:40 /var/lib/mailgraph

[hans@server ~]# ls -lR /var/lib/mailgraph
/var/lib/mailgraph:
total 112
drwxr-xr-x    2 www-data www-data     4096 Oct 15 16:55
,,cgi-bin,mailgraph.cgi
drwxr-xr-x    2 www-data www-data     4096 Oct 16 10:22 ,cgi-bin
drwxr-xr-x    2 www-data www-data     4096 Oct 15 16:57
,cgi-bin,mailgraph.cgi
drwxr-xr-x    2 www-data www-data     4096 Oct 16 10:40
,cgi-bin,mailgraph.cgi,
drwxr-xr-x    2 www-data www-data     4096 Oct 16 10:40
,cgi-bin,mailgraph.cgi,mailgraph.cgi
drwxr-xr-x    2 www-data www-data     4096 Oct 16 10:40
,cgi-bin,mailgraph.cgi,mailgraph.cgi,
-rw-r--r--    1 root     root        55188 Oct 17 09:51 mailgraph.rrd
-rw-r--r--    1 root     root        28100 Oct 17 09:51 mailgraph_virus.rrd

/var/lib/mailgraph/,,cgi-bin,mailgraph.cgi:
total 0
-rw-r--r--    1 www-data www-data        0 Oct 15 16:55 mailgraph_0.png
-rw-r--r--    1 www-data www-data        0 Oct 15 16:55 mailgraph_0_err.png
-rw-r--r--    1 www-data www-data        0 Oct 15 16:55 mailgraph_1.png
-rw-r--r--    1 www-data www-data        0 Oct 15 16:55 mailgraph_1_err.png
-rw-r--r--    1 www-data www-data        0 Oct 15 16:55 mailgraph_2.png
-rw-r--r--    1 www-data www-data        0 Oct 15 16:55 mailgraph_2_err.png
-rw-r--r--    1 www-data www-data        0 Oct 15 16:55 mailgraph_3.png
-rw-r--r--    1 www-data www-data        0 Oct 15 16:55 mailgraph_3_err.png

/var/lib/mailgraph/,cgi-bin:
total 0

/var/lib/mailgraph/,cgi-bin,mailgraph.cgi:
total 0
-rw-r--r--    1 www-data www-data        0 Oct 17 09:32 mailgraph_0.png
-rw-r--r--    1 www-data www-data        0 Oct 17 09:32 mailgraph_0_err.png
-rw-r--r--    1 www-data www-data        0 Oct 17 09:32 mailgraph_1.png
-rw-r--r--    1 www-data www-data        0 Oct 17 09:32 mailgraph_1_err.png
-rw-r--r--    1 www-data www-data        0 Oct 17 09:32 mailgraph_2.png
-rw-r--r--    1 www-data www-data        0 Oct 17 09:32 mailgraph_2_err.png
-rw-r--r--    1 www-data www-data        0 Oct 17 09:32 mailgraph_3.png
-rw-r--r--    1 www-data www-data        0 Oct 17 09:32 mailgraph_3_err.png

/var/lib/mailgraph/,cgi-bin,mailgraph.cgi,:
total 0

/var/lib/mailgraph/,cgi-bin,mailgraph.cgi,mailgraph.cgi:
total 0

/var/lib/mailgraph/,cgi-bin,mailgraph.cgi,mailgraph.cgi,:
total 0





On Thu, Oct 16, 2003 at 11:44:06AM -0400, Derrick 'dman' Hudson wrote:
> On Thu, Oct 16, 2003 at 10:58:50AM +0200, Hans Steinraht wrote:
> | Maybe anyone can help me with this.
> | 
> | I have installed the package mailgraph on debian unstable.
> | Changed httpd.conf for apache and when i go to the link:
> |    http://www.server.com/cgi-bin/mailgraph.cgi
> | a page shows up that said 'Mail Statistics' but I don't see any images.
> 
> | My question now is if anyone has the same problem or even the solution to
> | this.
> 
> I remember seeing this after a new installation.
> 
> IIRC there are two conditions that can cause this problem :
>     1)  mailgraph hasn't been run and thus hasn't compiled any stats
>             to generate the images from
> 
>     2)  permissions problem on the data
> 
> As for solving #1, make sure you run mailgraph.  Since I have
> sufficient system resources, I just run the daemon continuously.
> 
> As for problem #2, maybe the following information will help you
> identify and solve it.  I don't recall exactly what (if anything) I
> had to do.
> 
> $ ls -ld /var/lib/mailgraph
> drwxr-xr-x    3 www-data www-data     4096 2003-08-15 09:37 /var/lib/mailgraph
> 
> $ ls -lR /var/lib/mailgraph
> /var/lib/mailgraph:
> total 92
> drwxr-xr-x    2 www-data www-data     4096 2003-08-15 09:37 ,cgi-bin,mailgraph.cgi
> -rw-r--r--    1 root     root        55188 2003-10-16 11:40 mailgraph.rrd
> -rw-r--r--    1 root     root        28100 2003-10-16 11:40 mailgraph_virus.rrd
> 
> /var/lib/mailgraph/,cgi-bin,mailgraph.cgi:
> total 68
> -rw-r--r--    1 www-data www-data     6052 2003-10-15 22:14 mailgraph_0_err.png
> -rw-r--r--    1 www-data www-data     9250 2003-10-15 22:14 mailgraph_0.png
> -rw-r--r--    1 www-data www-data     5719 2003-10-15 22:15 mailgraph_1_err.png
> -rw-r--r--    1 www-data www-data     7512 2003-10-15 22:15 mailgraph_1.png
> -rw-r--r--    1 www-data www-data     5774 2003-10-15 22:15 mailgraph_2_err.png
> -rw-r--r--    1 www-data www-data     7860 2003-10-15 22:15 mailgraph_2.png
> -rw-r--r--    1 www-data www-data     4888 2003-10-15 22:15 mailgraph_3_err.png
> -rw-r--r--    1 www-data www-data     5213 2003-10-15 22:15 mailgraph_3.png
> 
> Come to think of it, I may have had to chown those directories and
> files to www-data:www-data.
> 
> HTH,
> -D
> 
> -- 
> "Don't use C;  In my opinion,  C is a library programming language
>  not an app programming language."  - Owen Taylor (GTK+ developer)
>  
> http://dman13.dyndns.org/~dman/









Reply to: