[rrd-users] 500 Server Error in Apache

Kade Cole kcolemail at gmail.com
Mon Aug 13 17:24:01 CEST 2007


This is the output that I received:

prompt:/root# /usr/local/bin/rrdcgi <
/usr/local/www/cgi-bin/wireless-buildings-rrd.cgi
(offline mode: enter name=value pairs on standard input)
ERROR: expected a filename

Kade

On 8/13/07, Geoff Garside <geoff.garside at openhosting.co.uk> wrote:
> If you remove the #! portion and try
>
>         $ /usr/local/bin/rrdcgi < wireless-buildings-rrd.cgi
>
> do you get the same thing?
>
> Geoff
>
>
> On 13 Aug 2007, at 16:05, Kade Cole wrote:
>
> > I tried without the space. That did not help. I also tried running on
> > the command line but I am unable to figure that out. All it says is
> > (offline mode: enter name=value pairs on standard input). Then it just
> > hangs. I tried pasting in the following line:
> >    DEF:AP46111=/usr/local/www/MRTG/WIRELESSAP/main/clients-
> > ap-46.1.1.rrd:ds0:AVERAGE
> >    DEF:AP46112=/usr/local/www/MRTG/WIRELESSAP/main/clients-
> > ap-46.1.1.rrd:ds1:AVERAGE
> >   CDEF:AP4611=AP46111,AP46112,+
> >  LINE1:AP4611#003300:46.1.1
> > GPRINT:AP4611:LAST:%2.0lf
> > GPRINT:AP4611:MAX:%2.0lf
> > But then I get a seg fault. Thanks.
> >
> > Kade
> >
> > On 8/13/07, Geoff Garside <geoff.garside at openhosting.co.uk> wrote:
> >> On 13 Aug 2007, at 15:38, Kade Cole wrote:
> >>
> >>> Sorry should have included that in the first email:
> >>> [Mon Aug 13 09:37:26 2007] [error] [client X.X.X.X] Premature end of
> >>> script headers: wireless-buildings-rrd.cgi
> >>>
> >>> Kade
> >>>
> >>> On 8/13/07, Geoff Garside <geoff.garside at openhosting.co.uk> wrote:
> >>>>
> >>>> On 13 Aug 2007, at 15:26, Kade Cole wrote:
> >>>>
> >>>>> I have the following config file that I am having trouble
> >>>>> getting to
> >>>>> work with rrdcgi. It will not load the page. I get a 500 Internal
> >>>>> Server Error with Apache/2.0.59 running on FreeBSD 6.2. It will
> >>>>> run
> >>>>> fine if I cut some of the variables or CDEFs out. I was
> >>>>> wondering if
> >>>>> anyone had any ideas what the problem might be. I have tried
> >>>>> rrdtool-1.0.50  and rrdtool-1.2.23. Thanks.
> >>>>>
> >>>> <snip>
> >>>>
> >>>> What is Apache writing to your /var/log/httpd-error.log file?
> >>>>
> >>>> Geoff
> >>
> >> Maybe try removing the first space after the #! in your .cgi file?
> >> What happens if you just run the file through rrdcgi on the command
> >> line, what do you get as the headers there?
> >>
> >> Geoff
>
>



More information about the rrd-users mailing list