[mrtg] Re: MRTG-RRD intergartion

Ahmed Attia aattia at eccsolutions.net
Sun Mar 27 12:14:14 MEST 2005


Hi, 

The error is no longer appreade.
But, No graphs are alo appreaed.

When I point my server to http://localserver/mrtg-rrd.cgi , I got teh
following error:
"Access Forbidden:
You don't have permission to access the requested object. It is either
read-protected or not readable by the server."

I made all MRTG files accesseed by the user used by my Apache.
I also make my Apache use the user "root" ans also I got the same error

Any Advise?

Thanks.

Ahmed.
-----Original Message-----
From: Stefano Giraldo [mailto:stefano at neotokyo3.it] 
Sent: Friday, March 25, 2005 5:59 PM
To: Ahmed Attia; mrtg at list.ee.ethz.ch
Subject: Re: [mrtg] Re: MRTG-RRD intergartion

In mrtg-rrd.cgi in the lines referred to RRDs.pm use this config.

# Location of RRDs.pm, if it is not in @INC
# use lib '/usr/lib/perl5/5.00503/i386-linux';
use lib '/usr/lib/perl5/RRDs.pm';
use RRDs;

Be sure where is the file RRDs.pm... maybe in HP-UX is somewhere else and
not in /usr/lib/perl5/.

Bye,

        Ste.

----- Original Message ----- 
From: "Ahmed Attia" <aattia at eccsolutions.net>
To: "'Stefano Giraldo'" <stefano at neotokyo3.it>; <mrtg at list.ee.ethz.ch>
Sent: Thursday, March 24, 2005 10:49 AM
Subject: [mrtg] Re: MRTG-RRD intergartion


> Hi
>
> I did all what you mention and still get an error:
> "Error message:
> Premature end of script headers: /usr/httpd/mrtg/cgi-bin/mrtg-rrd.cgi"
>
> When I try to execute the CGI file from the command line, not from the
> browser, I got the following error:
> areword "RRDs::error" not allowed while "strict subs" in use at
mrtg-rrd.cgi
> line 452.
> BEGIN not safe after errors--compilation aborted at mrtg-rrd.cgi line
1028.
>
> This means that there's an error in the scrip itself.
> I didn't make any changes in the script (Except changing the paths of MRTG
> configuration files). So what can I do now?
>
> Thanks
>
> Ahmed Attia.
>
> -----Original Message-----
> From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
> Behalf Of Stefano Giraldo
> Sent: Wednesday, March 23, 2005 5:12 PM
> To: Ahmed Attia; mrtg at list.ee.ethz.ch
> Subject: [mrtg] Re: MRTG-RRD intergartion
>
> Hi,
> take also a look to
> http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-rrd.html where is
> explained how to create the rrd file with MRTG.
>
> But more importand, the file must be writeble... my apache run with
username
> www-data, so I did a chown and chgrp to all file in /var/www/mrtg, now
> apache is able to write on that files when run the cgi script pointing the
> browser on http://server_name/mrtg-rrd.cgi/
>
> Note that when you run the cgi script, the png are also available in the
> mrtg folder... so http://server_name/mrtg/ have the same output... so the
> users didn't have to change their bookmarked URL.
> The problem in this solution is only run the cgi script... when you go to
> http://server_name/mrtg/ the cgi script is not executed... so I don't know
> how to execute without go to http://server_name/mrtg-rrd.cgi/
> If anyone have suggestion will be apprecied. :)
>
> Bye,
>
>         Ste.
>
> ----- Original Message ----- 
> From: "Ahmed Attia" <aattia at eccsolutions.net>
> To: <mrtg at list.ee.ethz.ch>
> Sent: Wednesday, March 23, 2005 3:56 PM
> Subject: [mrtg] MRTG-RRD intergartion
>
>
> > Dears,
> >
> >
> > I installed MRTG 2.11.1 on an HP-UX server. It was running fine.
> >
> > I tried to integrate MRTG with RRD tool. I installed the RRD tool , then
> > install mrtg-rrd CGI script. In the manual, they said that to get the
> output
> > graphs, just put the mrtg-rrd.cgi file in the executable folder of your
> > Apache server and then use the URL http://localserver/mrtg-rrd.cgi
> >
> >
> >
> > I did so but I didn't get any output
> >
> > Can anyone support me in this issue?
> >
> >
> >
> > Thanks
> >
> > Ahmed Attia.
> >
> >
> >
> >
> >
> > --
> > Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> > Archive     http://www.ee.ethz.ch/~slist/mrtg
> > FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> > WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> >
> >
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
>
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
>
>


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list