A little RRD help

View: New views
9 Messages — Rating Filter:   Alert me  

A little RRD help

by Territory Broadcasting Pty Ltd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone
I think I have installed RRD into a non-standard directory
(/usr/local/rrdtool-1.2.26) and as such Mailgraph can't find it. RRD
certainly runs fine with the test scripts provided by RRD, but I am
wondering if anyone can tell me what directory I should install rrdtool
to stop the following with mailgraph??

Can't locate loadable object for module RRDs in @INC (@INC
contains: /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./mailgraph.pl line 360

Thanks

Mike




--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Re: A little RRD help

by Hugo van der Kooij :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Territory Broadcasting Pty Ltd wrote:
| Hi everyone
| I think I have installed RRD into a non-standard directory
| (/usr/local/rrdtool-1.2.26) and as such Mailgraph can't find it. RRD
| certainly runs fine with the test scripts provided by RRD, but I am
| wondering if anyone can tell me what directory I should install rrdtool
| to stop the following with mailgraph??
|
| Can't locate loadable object for module RRDs in @INC (@INC
| contains: /etc/perl /usr/local/lib/perl/5.8.7
/usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
./mailgraph.pl line 360

I would say this list clearly tells you where perl will be able to find it.

Hugo.

- --
hvdkooij@...               http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

        A: Yes.
        >Q: Are you sure?
        >>A: Because it reverses the logical flow of conversation.
        >>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHx6tZBvzDRVjxmYERAnEGAJ9eeE3HpYN0cHei1q59zIrmyuUVdgCgsmgg
f2x8n/4PV8mI8wV4TBN3MDg=
=UIHM
-----END PGP SIGNATURE-----

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Parent Message unknown Re: A little RRD help

by Territory Broadcasting Pty Ltd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you Trik
That did the Trick!!

Mike

On Fri, 2008-02-29 at 14:28 +0800, Patrick G. Victoriano wrote:

> Hello Mike,
>
> Check if you have this line in your mailgraph.pl
>
> use lib qw(/usr/local/rrdtool/lib/perl);
>
> and also, change your rrd dir from rrdtool-1.x.xx to rrdtool at /usr/local
>
> hope this helps
>
> -Trik
>
>  
>
>
>
>
> -----Original Message-----
> From: mailgraph-bounce@...
> [mailto:mailgraph-bounce@...] On Behalf Of Territory
> Broadcasting Pty Ltd
> Sent: Friday, February 29, 2008 2:20 PM
> To: mailgraph@...
> Subject: [mailgraph] A little RRD help
>
> Hi everyone
> I think I have installed RRD into a non-standard directory
> (/usr/local/rrdtool-1.2.26) and as such Mailgraph can't find it. RRD
> certainly runs fine with the test scripts provided by RRD, but I am
> wondering if anyone can tell me what directory I should install rrdtool
> to stop the following with mailgraph??
>
> Can't locate loadable object for module RRDs in @INC (@INC
> contains: /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7
> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
> /usr/local/lib/site_perl .) at ./mailgraph.pl line 360
>
> Thanks
>
> Mike
>
>
>
>
> --
> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
> Help        mailto:mailgraph-request@...?subject=help
> Archive     http://lists.ee.ethz.ch/mailgraph
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>
>
>


--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Cookie error ?

by Frank-153 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi all,

Would anyone have any idea of what is this error in the apache logs ?
Since I upgraded mailgraph, I can't get anything on my screen anymore..

[Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] Premature
end of script headers: mailgraph.cgi, referer:
http://sun.nasa.gov/cgi-bin/mailgraph.cgi

[Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] ERROR:
reading the cookie off mailgraph.rrd faild, referer:
http://sun.nasa.gov/cgi-bin/mailgraph.cgi


thank you all
>  

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Parent Message unknown Re: Cookie error ?

by Frank-153 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

This is my /var/www/cgi-bin/
rwxr-xr-x  2 root   root   4096 Feb 16 10:29 .
drwxr-xr-x  8 root   root   4096 Jul 14  2007 ..
-rwxr-xr-x  1 apache apache 6898 Feb  5 09:53 mailgraph.cgi
-rwxr-xr-x  1 apache apache  672 Feb  5 10:02 mailgraph.css
-rwxrwxrwt  1 apache apache    0 Feb 16 10:11 mailgraph.rrd


And this is /tmpd/mailgraph/
drwxr-xr-x  3 apache apache 4096 Feb 28 22:37 .
drwxrwxrwt  4 root   root   4096 Mar  3 08:24 ..
drwxr-xr-x  2 apache apache 4096 Feb 28 22:37 ,cgi-bin

/tmpd/mailgraph/,cgi-bin/
drwxr-xr-x  2 apache apache 4096 Feb 28 22:37 .
drwxr-xr-x  3 apache apache 4096 Feb 28 22:37 ..



Any idea  ?


Patrick G. Victoriano wrote:

> Hi Frank,
>
> I think it's a permission error on your configuration.
> Check the permission of your mailgraph directory and /tmp/mailgraph
> It should be owned by apache.
>
> Hope it solved your problem.
>
>  
> -Trik
>
>
> -----Original Message-----
> From: mailgraph-bounce@...
> [mailto:mailgraph-bounce@...] On Behalf Of Frank
> Sent: Saturday, March 01, 2008 11:51 PM
> Cc: mailgraph@...
> Subject: [mailgraph] Cookie error ?
>
>
> hi all,
>
> Would anyone have any idea of what is this error in the apache logs ?
> Since I upgraded mailgraph, I can't get anything on my screen anymore..
>
> [Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] Premature
> end of script headers: mailgraph.cgi, referer:
> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>
> [Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] ERROR:
> reading the cookie off mailgraph.rrd faild, referer:
> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>
>
> thank you all
>  
>>  
>>    
>
> --
> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
> Help        mailto:mailgraph-request@...?subject=help
> Archive     http://lists.ee.ethz.ch/mailgraph
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>
>
>
>  

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Parent Message unknown Re: Cookie error ?

by Frank-153 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Trik,

Thank you for your email..
This is the conf. I have in mailgraph.cgi:

my $host = (POSIX::uname())[1];
my $scriptname = 'mailgraph.cgi';
my $xpoints = 540;
my $points_per_sample = 3;
my $ypoints = 160;
my $ypoints_err = 96;
my $rrd = 'mailgraph.rrd'; # path to where the RRD database is
my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD
database is
my $tmp_dir = '/tmpd/mailgraph'; # temporary directory where to store
the images



Now, when I tried to launch it, I had this in the logs:
[Mon Mar 03 17:32:33 2008] [error] [client 169.242.118.124] ERROR:
opening 'mailgraph.rrd': No such file or directory, referer:
http://sun.nasa.org/cgi-bin/mailgraph.cgi
[Mon Mar 03 17:32:33 2008] [error] [client 169.242.118.124] Premature
end of script headers: mailgraph.cgi, referer:
http://sun.nasa.gov/cgi-bin/mailgraph.cgi


and if I add the file mailgraph.rrd in the cgi-bin folder, I get another
error:

root@sun:/var/www/cgi-bin> touch mailgraph.rrd;chmod 755 mailgraph.rrd
root@sun:/var/www/cgi-bin> chown apache.apache mailgraph.rrd
root@sun:/var/www/cgi-bin> ls -la
total 20
drwxr-xr-x  2 root   root   4096 Mar  3 17:34 .
drwxr-xr-x  8 root   root   4096 Jul 14  2007 ..
-rwxr-xr-x  1 apache apache 6899 Mar  3 17:26 mailgraph.cgi
-rwxr-xr-x  1 apache apache  672 Feb  5 10:02 mailgraph.css
-rwxr--r--  1 apache apache    0 Mar  3 17:34 mailgraph.rrd


Mon Mar 03 17:35:39 2008] [error] [client 169.242.118.124] ERROR:
reading the cookie off mailgraph.rrd faild, referer:
http://sun.nasa.gov/cgi-bin/mailgraph.cgi
[Mon Mar 03 17:35:39 2008] [error] [client 169.242.118.124] Premature
end of script headers: mailgraph.cgi, referer:
http://sun.nasa.gov/cgi-bin/mailgraph.cgi



thank you guys







Patrick G. Victoriano wrote:

> Hi,
>
> Did you check your entry in the mailgraph.cgi the directory of your tmp
> files?
>
> You should change
>
> my $tmp_dir = /tmp/mailgraph
>
> to
>
> my $tmp_dir = /tmpd/mailgraph
>
>
> -Trik
>  
>  
>  
>  
>  
> -----Original Message-----
> From: mailgraph-bounce@...
> [mailto:mailgraph-bounce@...] On Behalf Of Frank
> Sent: Monday, March 03, 2008 9:29 PM
> To: Patrick G. Victoriano
> Cc: mailgraph@...
> Subject: [mailgraph] Re: Cookie error ?
>
> Hi,
>
> This is my /var/www/cgi-bin/
> rwxr-xr-x  2 root   root   4096 Feb 16 10:29 .
> drwxr-xr-x  8 root   root   4096 Jul 14  2007 ..
> -rwxr-xr-x  1 apache apache 6898 Feb  5 09:53 mailgraph.cgi
> -rwxr-xr-x  1 apache apache  672 Feb  5 10:02 mailgraph.css
> -rwxrwxrwt  1 apache apache    0 Feb 16 10:11 mailgraph.rrd
>
>
> And this is /tmpd/mailgraph/
> drwxr-xr-x  3 apache apache 4096 Feb 28 22:37 .
> drwxrwxrwt  4 root   root   4096 Mar  3 08:24 ..
> drwxr-xr-x  2 apache apache 4096 Feb 28 22:37 ,cgi-bin
>
> /tmpd/mailgraph/,cgi-bin/
> drwxr-xr-x  2 apache apache 4096 Feb 28 22:37 .
> drwxr-xr-x  3 apache apache 4096 Feb 28 22:37 ..
>
>
>
> Any idea  ?
>
>
> Patrick G. Victoriano wrote:
>  
>> Hi Frank,
>>
>> I think it's a permission error on your configuration.
>> Check the permission of your mailgraph directory and /tmp/mailgraph
>> It should be owned by apache.
>>
>> Hope it solved your problem.
>>
>>  
>> -Trik
>>
>>
>> -----Original Message-----
>> From: mailgraph-bounce@...
>> [mailto:mailgraph-bounce@...] On Behalf Of Frank
>> Sent: Saturday, March 01, 2008 11:51 PM
>> Cc: mailgraph@...
>> Subject: [mailgraph] Cookie error ?
>>
>>
>> hi all,
>>
>> Would anyone have any idea of what is this error in the apache logs ?
>> Since I upgraded mailgraph, I can't get anything on my screen anymore..
>>
>> [Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] Premature
>> end of script headers: mailgraph.cgi, referer:
>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>>
>> [Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] ERROR:
>> reading the cookie off mailgraph.rrd faild, referer:
>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>>
>>
>> thank you all
>>  
>>    
>>>  
>>>    
>>>      
>> --
>> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
>> Help        mailto:mailgraph-request@...?subject=help
>> Archive     http://lists.ee.ethz.ch/mailgraph
>> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>>
>>
>>
>>  
>>    
>
> --
> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
> Help        mailto:mailgraph-request@...?subject=help
> Archive     http://lists.ee.ethz.ch/mailgraph
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>
>
>
>  

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Parent Message unknown Re: Cookie error ?

by Frank-153 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Patrick,
Please find attached the .PL and .CGI.
I don't have any mailgraph-init that i can find.. Would it be my issue !?
Thank you


Patrick G. Victoriano wrote:

> Frank,
>
> Please also include your mailgraph-init file
>  
>  
>  
>  
>  
>
> -----Original Message-----
> From: Frank [mailto:frank@...]
> Sent: Tuesday, March 04, 2008 6:39 AM
> To: Patrick G. Victoriano
> Cc: mailgraph@...
> Subject: Re: [mailgraph] Re: Cookie error ?
>
> Hi Trik,
>
> Thank you for your email..
> This is the conf. I have in mailgraph.cgi:
>
> my $host = (POSIX::uname())[1];
> my $scriptname = 'mailgraph.cgi';
> my $xpoints = 540;
> my $points_per_sample = 3;
> my $ypoints = 160;
> my $ypoints_err = 96;
> my $rrd = 'mailgraph.rrd'; # path to where the RRD database is
> my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD
> database is
> my $tmp_dir = '/tmpd/mailgraph'; # temporary directory where to store
> the images
>
>
>
> Now, when I tried to launch it, I had this in the logs:
> [Mon Mar 03 17:32:33 2008] [error] [client 169.242.118.124] ERROR:
> opening 'mailgraph.rrd': No such file or directory, referer:
> http://sun.nasa.org/cgi-bin/mailgraph.cgi
> [Mon Mar 03 17:32:33 2008] [error] [client 169.242.118.124] Premature
> end of script headers: mailgraph.cgi, referer:
> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>
>
> and if I add the file mailgraph.rrd in the cgi-bin folder, I get another
> error:
>
> root@sun:/var/www/cgi-bin> touch mailgraph.rrd;chmod 755 mailgraph.rrd
> root@sun:/var/www/cgi-bin> chown apache.apache mailgraph.rrd
> root@sun:/var/www/cgi-bin> ls -la
> total 20
> drwxr-xr-x  2 root   root   4096 Mar  3 17:34 .
> drwxr-xr-x  8 root   root   4096 Jul 14  2007 ..
> -rwxr-xr-x  1 apache apache 6899 Mar  3 17:26 mailgraph.cgi
> -rwxr-xr-x  1 apache apache  672 Feb  5 10:02 mailgraph.css
> -rwxr--r--  1 apache apache    0 Mar  3 17:34 mailgraph.rrd
>
>
> Mon Mar 03 17:35:39 2008] [error] [client 169.242.118.124] ERROR:
> reading the cookie off mailgraph.rrd faild, referer:
> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
> [Mon Mar 03 17:35:39 2008] [error] [client 169.242.118.124] Premature
> end of script headers: mailgraph.cgi, referer:
> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>
>
>
> thank you guys
>
>
>
>
>
>
>
> Patrick G. Victoriano wrote:
>  
>> Hi,
>>
>> Did you check your entry in the mailgraph.cgi the directory of your tmp
>> files?
>>
>> You should change
>>
>> my $tmp_dir = /tmp/mailgraph
>>
>> to
>>
>> my $tmp_dir = /tmpd/mailgraph
>>
>>
>> -Trik
>>  
>>  
>>  
>>  
>>  
>> -----Original Message-----
>> From: mailgraph-bounce@...
>> [mailto:mailgraph-bounce@...] On Behalf Of Frank
>> Sent: Monday, March 03, 2008 9:29 PM
>> To: Patrick G. Victoriano
>> Cc: mailgraph@...
>> Subject: [mailgraph] Re: Cookie error ?
>>
>> Hi,
>>
>> This is my /var/www/cgi-bin/
>> rwxr-xr-x  2 root   root   4096 Feb 16 10:29 .
>> drwxr-xr-x  8 root   root   4096 Jul 14  2007 ..
>> -rwxr-xr-x  1 apache apache 6898 Feb  5 09:53 mailgraph.cgi
>> -rwxr-xr-x  1 apache apache  672 Feb  5 10:02 mailgraph.css
>> -rwxrwxrwt  1 apache apache    0 Feb 16 10:11 mailgraph.rrd
>>
>>
>> And this is /tmpd/mailgraph/
>> drwxr-xr-x  3 apache apache 4096 Feb 28 22:37 .
>> drwxrwxrwt  4 root   root   4096 Mar  3 08:24 ..
>> drwxr-xr-x  2 apache apache 4096 Feb 28 22:37 ,cgi-bin
>>
>> /tmpd/mailgraph/,cgi-bin/
>> drwxr-xr-x  2 apache apache 4096 Feb 28 22:37 .
>> drwxr-xr-x  3 apache apache 4096 Feb 28 22:37 ..
>>
>>
>>
>> Any idea  ?
>>
>>
>> Patrick G. Victoriano wrote:
>>  
>>    
>>> Hi Frank,
>>>
>>> I think it's a permission error on your configuration.
>>> Check the permission of your mailgraph directory and /tmp/mailgraph
>>> It should be owned by apache.
>>>
>>> Hope it solved your problem.
>>>
>>>  
>>> -Trik
>>>
>>>
>>> -----Original Message-----
>>> From: mailgraph-bounce@...
>>> [mailto:mailgraph-bounce@...] On Behalf Of Frank
>>> Sent: Saturday, March 01, 2008 11:51 PM
>>> Cc: mailgraph@...
>>> Subject: [mailgraph] Cookie error ?
>>>
>>>
>>> hi all,
>>>
>>> Would anyone have any idea of what is this error in the apache logs ?
>>> Since I upgraded mailgraph, I can't get anything on my screen anymore..
>>>
>>> [Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] Premature
>>> end of script headers: mailgraph.cgi, referer:
>>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>>>
>>> [Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] ERROR:
>>> reading the cookie off mailgraph.rrd faild, referer:
>>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>>>
>>>
>>> thank you all
>>>  
>>>    
>>>      
>>>>  
>>>>    
>>>>      
>>>>        
>>> --
>>> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
>>> Help        mailto:mailgraph-request@...?subject=help
>>> Archive     http://lists.ee.ethz.ch/mailgraph
>>> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>>>
>>>
>>>
>>>  
>>>    
>>>      
>> --
>> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
>> Help        mailto:mailgraph-request@...?subject=help
>> Archive     http://lists.ee.ethz.ch/mailgraph
>> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>>
>>
>>
>>  
>>    
>
>
>  


-- Attached file removed by Ecartis and put at URL below --
-- Type: text/plain
-- Size: 6k (6900 bytes)
-- URL : http://lists.ee.ethz.ch/p/mailgraph.cgi


-- Attached file removed by Ecartis and put at URL below --
-- Type: text/plain
-- Size: 28k (29231 bytes)
-- URL : http://lists.ee.ethz.ch/p/02-mailgraph.pl


--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Parent Message unknown Re: Cookie error ?

by Frank-153 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, I saw that we could not attach files.
I uploaded those files on my private server:
http://www.anotherviewfor.us/mailgraph.zip

Thank you for your help

Patrick G. Victoriano wrote:

> Hi Frank,
>
> Can you give me your whole mailgraph.cgi and mailgraph.pl file
>
>  
>  
>  
>  
>  
>
> -----Original Message-----
> From: Frank [mailto:frank@...]
> Sent: Tuesday, March 04, 2008 6:39 AM
> To: Patrick G. Victoriano
> Cc: mailgraph@...
> Subject: Re: [mailgraph] Re: Cookie error ?
>
> Hi Trik,
>
> Thank you for your email..
> This is the conf. I have in mailgraph.cgi:
>
> my $host = (POSIX::uname())[1];
> my $scriptname = 'mailgraph.cgi';
> my $xpoints = 540;
> my $points_per_sample = 3;
> my $ypoints = 160;
> my $ypoints_err = 96;
> my $rrd = 'mailgraph.rrd'; # path to where the RRD database is
> my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD
> database is
> my $tmp_dir = '/tmpd/mailgraph'; # temporary directory where to store
> the images
>
>
>
> Now, when I tried to launch it, I had this in the logs:
> [Mon Mar 03 17:32:33 2008] [error] [client 169.242.118.124] ERROR:
> opening 'mailgraph.rrd': No such file or directory, referer:
> http://sun.nasa.org/cgi-bin/mailgraph.cgi
> [Mon Mar 03 17:32:33 2008] [error] [client 169.242.118.124] Premature
> end of script headers: mailgraph.cgi, referer:
> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>
>
> and if I add the file mailgraph.rrd in the cgi-bin folder, I get another
> error:
>
> root@sun:/var/www/cgi-bin> touch mailgraph.rrd;chmod 755 mailgraph.rrd
> root@sun:/var/www/cgi-bin> chown apache.apache mailgraph.rrd
> root@sun:/var/www/cgi-bin> ls -la
> total 20
> drwxr-xr-x  2 root   root   4096 Mar  3 17:34 .
> drwxr-xr-x  8 root   root   4096 Jul 14  2007 ..
> -rwxr-xr-x  1 apache apache 6899 Mar  3 17:26 mailgraph.cgi
> -rwxr-xr-x  1 apache apache  672 Feb  5 10:02 mailgraph.css
> -rwxr--r--  1 apache apache    0 Mar  3 17:34 mailgraph.rrd
>
>
> Mon Mar 03 17:35:39 2008] [error] [client 169.242.118.124] ERROR:
> reading the cookie off mailgraph.rrd faild, referer:
> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
> [Mon Mar 03 17:35:39 2008] [error] [client 169.242.118.124] Premature
> end of script headers: mailgraph.cgi, referer:
> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>
>
>
> thank you guys
>
>
>
>
>
>
>
> Patrick G. Victoriano wrote:
>  
>> Hi,
>>
>> Did you check your entry in the mailgraph.cgi the directory of your tmp
>> files?
>>
>> You should change
>>
>> my $tmp_dir = /tmp/mailgraph
>>
>> to
>>
>> my $tmp_dir = /tmpd/mailgraph
>>
>>
>> -Trik
>>  
>>  
>>  
>>  
>>  
>> -----Original Message-----
>> From: mailgraph-bounce@...
>> [mailto:mailgraph-bounce@...] On Behalf Of Frank
>> Sent: Monday, March 03, 2008 9:29 PM
>> To: Patrick G. Victoriano
>> Cc: mailgraph@...
>> Subject: [mailgraph] Re: Cookie error ?
>>
>> Hi,
>>
>> This is my /var/www/cgi-bin/
>> rwxr-xr-x  2 root   root   4096 Feb 16 10:29 .
>> drwxr-xr-x  8 root   root   4096 Jul 14  2007 ..
>> -rwxr-xr-x  1 apache apache 6898 Feb  5 09:53 mailgraph.cgi
>> -rwxr-xr-x  1 apache apache  672 Feb  5 10:02 mailgraph.css
>> -rwxrwxrwt  1 apache apache    0 Feb 16 10:11 mailgraph.rrd
>>
>>
>> And this is /tmpd/mailgraph/
>> drwxr-xr-x  3 apache apache 4096 Feb 28 22:37 .
>> drwxrwxrwt  4 root   root   4096 Mar  3 08:24 ..
>> drwxr-xr-x  2 apache apache 4096 Feb 28 22:37 ,cgi-bin
>>
>> /tmpd/mailgraph/,cgi-bin/
>> drwxr-xr-x  2 apache apache 4096 Feb 28 22:37 .
>> drwxr-xr-x  3 apache apache 4096 Feb 28 22:37 ..
>>
>>
>>
>> Any idea  ?
>>
>>
>> Patrick G. Victoriano wrote:
>>  
>>    
>>> Hi Frank,
>>>
>>> I think it's a permission error on your configuration.
>>> Check the permission of your mailgraph directory and /tmp/mailgraph
>>> It should be owned by apache.
>>>
>>> Hope it solved your problem.
>>>
>>>  
>>> -Trik
>>>
>>>
>>> -----Original Message-----
>>> From: mailgraph-bounce@...
>>> [mailto:mailgraph-bounce@...] On Behalf Of Frank
>>> Sent: Saturday, March 01, 2008 11:51 PM
>>> Cc: mailgraph@...
>>> Subject: [mailgraph] Cookie error ?
>>>
>>>
>>> hi all,
>>>
>>> Would anyone have any idea of what is this error in the apache logs ?
>>> Since I upgraded mailgraph, I can't get anything on my screen anymore..
>>>
>>> [Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] Premature
>>> end of script headers: mailgraph.cgi, referer:
>>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>>>
>>> [Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] ERROR:
>>> reading the cookie off mailgraph.rrd faild, referer:
>>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>>>
>>>
>>> thank you all
>>>  
>>>    
>>>      
>>>>  
>>>>    
>>>>      
>>>>        
>>> --
>>> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
>>> Help        mailto:mailgraph-request@...?subject=help
>>> Archive     http://lists.ee.ethz.ch/mailgraph
>>> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>>>
>>>
>>>
>>>  
>>>    
>>>      
>> --
>> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
>> Help        mailto:mailgraph-request@...?subject=help
>> Archive     http://lists.ee.ethz.ch/mailgraph
>> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>>
>>
>>
>>  
>>    
>
>
>  

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


Parent Message unknown Re: Cookie error ?

by Frank-153 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh, this file ! Never mind.. My head was on some other planet..
Here is the init.. And with the use in the perl file, I still have the
same issue.. This is only since the upgrade though.. I used an old
version of MailGraph before, and everything worked perfectly.. Thank you
again Patrick..

#!/bin/sh

# $Id: mailgraph-init 19 2005-06-13 11:23:22Z dws $
# example init script for mailgraph
#
# chkconfig: 2345 82 28
# description: mailgraph postfix log grapher.
#
# processname: mailgraph.pl
# pidfile: /var/run/mailgraph.pid


PATH=/bin:/usr/bin
MAILGRAPH_PL=/usr/local/bin/mailgraph.pl
MAIL_LOG=/var/log/maillog
PID_FILE=/var/run/mailgraph.pid
RRD_DIR=/var/lib

case "$1" in
'start')
    echo "Starting mail statistics grapher: mailgraph";
    nice -19 $MAILGRAPH_PL -l $MAIL_LOG -d \
        --daemon-pid=$PID_FILE --daemon-rrd=$RRD_DIR
    ;;

'stop')
    echo "Stopping mail statistics grapher: mailgraph";
    if [ -f $PID_FILE ]; then
        kill `cat $PID_FILE`
        rm $PID_FILE
    else
        echo "mailgraph not running";
    fi
    ;;

*)
    echo "Usage: $0 { start | stop }"
    exit 1
    ;;

esac
exit 0











Patrick G. Victoriano wrote:

> Frank,
>
> Please include this line to your mailgraph.pl and check what is the output
>
>
> use lib qw(/usr/local/rrdtool/lib/perl);
>
>  
> about the mailgraph-init
>
> mailgraph-init is used to start and stop mailgraph.
> If you do not have this file, how do you start and stop mailgraph?
>
> Also, it also directs where to create the pid file and path the RRD
> directory
>  
>  
>  
>  
> PATRICK G VICTORIANO aka TRIK
> FTCP - Network Group
> Fujitsu Ten Solutions Philippines Inc.
> 8th Floor East Tower PSE Center
> Ortigas Center Pasig City
>
> -----Original Message-----
> From: Frank [mailto:frank@...]
> Sent: Tuesday, March 04, 2008 7:03 AM
> To: Patrick G. Victoriano
> Cc: mailgraph@...
> Subject: Re: [mailgraph] Re: Cookie error ?
>
> Hi Patrick,
>
> Please find attached the .PL and .CGI.
> I don't have any mailgraph-init that i can find.. Would it be my issue !?
> Thank you
>
>
> Patrick G. Victoriano wrote:
>  
>> Frank,
>>
>> Please also include your mailgraph-init file
>>  
>>  
>>  
>>  
>>  
>>
>> -----Original Message-----
>> From: Frank [mailto:frank@...]
>> Sent: Tuesday, March 04, 2008 6:39 AM
>> To: Patrick G. Victoriano
>> Cc: mailgraph@...
>> Subject: Re: [mailgraph] Re: Cookie error ?
>>
>> Hi Trik,
>>
>> Thank you for your email..
>> This is the conf. I have in mailgraph.cgi:
>>
>> my $host = (POSIX::uname())[1];
>> my $scriptname = 'mailgraph.cgi';
>> my $xpoints = 540;
>> my $points_per_sample = 3;
>> my $ypoints = 160;
>> my $ypoints_err = 96;
>> my $rrd = 'mailgraph.rrd'; # path to where the RRD database is
>> my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD
>> database is
>> my $tmp_dir = '/tmpd/mailgraph'; # temporary directory where to store
>> the images
>>
>>
>>
>> Now, when I tried to launch it, I had this in the logs:
>> [Mon Mar 03 17:32:33 2008] [error] [client 169.242.118.124] ERROR:
>> opening 'mailgraph.rrd': No such file or directory, referer:
>> http://sun.nasa.org/cgi-bin/mailgraph.cgi
>> [Mon Mar 03 17:32:33 2008] [error] [client 169.242.118.124] Premature
>> end of script headers: mailgraph.cgi, referer:
>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>>
>>
>> and if I add the file mailgraph.rrd in the cgi-bin folder, I get another
>> error:
>>
>> root@sun:/var/www/cgi-bin> touch mailgraph.rrd;chmod 755 mailgraph.rrd
>> root@sun:/var/www/cgi-bin> chown apache.apache mailgraph.rrd
>> root@sun:/var/www/cgi-bin> ls -la
>> total 20
>> drwxr-xr-x  2 root   root   4096 Mar  3 17:34 .
>> drwxr-xr-x  8 root   root   4096 Jul 14  2007 ..
>> -rwxr-xr-x  1 apache apache 6899 Mar  3 17:26 mailgraph.cgi
>> -rwxr-xr-x  1 apache apache  672 Feb  5 10:02 mailgraph.css
>> -rwxr--r--  1 apache apache    0 Mar  3 17:34 mailgraph.rrd
>>
>>
>> Mon Mar 03 17:35:39 2008] [error] [client 169.242.118.124] ERROR:
>> reading the cookie off mailgraph.rrd faild, referer:
>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>> [Mon Mar 03 17:35:39 2008] [error] [client 169.242.118.124] Premature
>> end of script headers: mailgraph.cgi, referer:
>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>>
>>
>>
>> thank you guys
>>
>>
>>
>>
>>
>>
>>
>> Patrick G. Victoriano wrote:
>>  
>>    
>>> Hi,
>>>
>>> Did you check your entry in the mailgraph.cgi the directory of your tmp
>>> files?
>>>
>>> You should change
>>>
>>> my $tmp_dir = /tmp/mailgraph
>>>
>>> to
>>>
>>> my $tmp_dir = /tmpd/mailgraph
>>>
>>>
>>> -Trik
>>>  
>>>  
>>>  
>>>  
>>>  
>>> -----Original Message-----
>>> From: mailgraph-bounce@...
>>> [mailto:mailgraph-bounce@...] On Behalf Of Frank
>>> Sent: Monday, March 03, 2008 9:29 PM
>>> To: Patrick G. Victoriano
>>> Cc: mailgraph@...
>>> Subject: [mailgraph] Re: Cookie error ?
>>>
>>> Hi,
>>>
>>> This is my /var/www/cgi-bin/
>>> rwxr-xr-x  2 root   root   4096 Feb 16 10:29 .
>>> drwxr-xr-x  8 root   root   4096 Jul 14  2007 ..
>>> -rwxr-xr-x  1 apache apache 6898 Feb  5 09:53 mailgraph.cgi
>>> -rwxr-xr-x  1 apache apache  672 Feb  5 10:02 mailgraph.css
>>> -rwxrwxrwt  1 apache apache    0 Feb 16 10:11 mailgraph.rrd
>>>
>>>
>>> And this is /tmpd/mailgraph/
>>> drwxr-xr-x  3 apache apache 4096 Feb 28 22:37 .
>>> drwxrwxrwt  4 root   root   4096 Mar  3 08:24 ..
>>> drwxr-xr-x  2 apache apache 4096 Feb 28 22:37 ,cgi-bin
>>>
>>> /tmpd/mailgraph/,cgi-bin/
>>> drwxr-xr-x  2 apache apache 4096 Feb 28 22:37 .
>>> drwxr-xr-x  3 apache apache 4096 Feb 28 22:37 ..
>>>
>>>
>>>
>>> Any idea  ?
>>>
>>>
>>> Patrick G. Victoriano wrote:
>>>  
>>>    
>>>      
>>>> Hi Frank,
>>>>
>>>> I think it's a permission error on your configuration.
>>>> Check the permission of your mailgraph directory and /tmp/mailgraph
>>>> It should be owned by apache.
>>>>
>>>> Hope it solved your problem.
>>>>
>>>>  
>>>> -Trik
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: mailgraph-bounce@...
>>>> [mailto:mailgraph-bounce@...] On Behalf Of Frank
>>>> Sent: Saturday, March 01, 2008 11:51 PM
>>>> Cc: mailgraph@...
>>>> Subject: [mailgraph] Cookie error ?
>>>>
>>>>
>>>> hi all,
>>>>
>>>> Would anyone have any idea of what is this error in the apache logs ?
>>>> Since I upgraded mailgraph, I can't get anything on my screen anymore..
>>>>
>>>> [Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] Premature
>>>> end of script headers: mailgraph.cgi, referer:
>>>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>>>>
>>>> [Sat Mar 01 10:46:27 2008] [error] [client 169.242.118.124] ERROR:
>>>> reading the cookie off mailgraph.rrd faild, referer:
>>>> http://sun.nasa.gov/cgi-bin/mailgraph.cgi
>>>>
>>>>
>>>> thank you all
>>>>  
>>>>    
>>>>      
>>>>        
>>>>>  
>>>>>    
>>>>>      
>>>>>        
>>>>>          
>>>> --
>>>> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
>>>> Help        mailto:mailgraph-request@...?subject=help
>>>> Archive     http://lists.ee.ethz.ch/mailgraph
>>>> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>>>>
>>>>
>>>>
>>>>  
>>>>    
>>>>      
>>>>        
>>> --
>>> Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
>>> Help        mailto:mailgraph-request@...?subject=help
>>> Archive     http://lists.ee.ethz.ch/mailgraph
>>> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>>>
>>>
>>>
>>>  
>>>    
>>>      
>>  
>>    
>
>
>  

--
Unsubscribe mailto:mailgraph-request@...?subject=unsubscribe
Help        mailto:mailgraph-request@...?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi