[mrtg] Re: MRTG-RRD intergartion

Ahmed Attia aattia at eccsolutions.net
Thu Mar 24 10:49:38 MET 2005


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



More information about the mrtg mailing list