[rrd-users] 500 Server Error in Apache

Kade Cole kcolemail at gmail.com
Mon Aug 13 16:26:23 CEST 2007


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.

#! /usr/local/bin/rrdcgi

<HTML>
<HEAD>
<TITLE>Wireless Buildings Overview</TITLE>
</HEAD>
<BODY>

<H1>Wireless APs main Residence</H1>
<P><RRD::GRAPH /usr/local/www/data/rrd/wireless-aps-main-rrd.png
--lazy
--imginfo '<IMG SRC=/rrd/wireless-aps-main-rrd.png>'
--width 800
--height 300
--lower-limit 0
--start 'end-24h'
--title "Wireless AP Usage in main Residence  <RRD::TIME::NOW %c>"
   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
   DEF:AP46121=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.1.2.rrd:ds0:AVERAGE
   DEF:AP46122=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.1.2.rrd:ds1:AVERAGE
  CDEF:AP4612=AP46121,AP46122,+
 LINE1:AP4612#00CC00:46.1.2
GPRINT:AP4612:LAST:%2.0lf
GPRINT:AP4612:MAX:%2.0lf
   DEF:AP46131=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.1.3.rrd:ds0:AVERAGE
   DEF:AP46132=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.1.3.rrd:ds1:AVERAGE
  CDEF:AP4613=AP46131,AP46132,+
 LINE1:AP4613#333300:46.1.3
GPRINT:AP4613:LAST:%2.0lf
GPRINT:AP4613:MAX:%2.0lf
   DEF:AP46141=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.1.4.rrd:ds0:AVERAGE
   DEF:AP46142=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.1.4.rrd:ds1:AVERAGE
  CDEF:AP4614=AP46141,AP46142,+
 LINE1:AP4614#33CC00:46.1.4
GPRINT:AP4614:LAST:%2.0lf
GPRINT:AP4614:MAX:%2.0lf
   DEF:AP46211=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.1.rrd:ds0:AVERAGE
   DEF:AP46212=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.1.rrd:ds1:AVERAGE
  CDEF:AP4621=AP46211,AP46212,+
 LINE1:AP4621#663300:46.2.1
GPRINT:AP4621:LAST:%2.0lf
GPRINT:AP4621:MAX:%2.0lf
   DEF:AP46221=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.2.rrd:ds0:AVERAGE
   DEF:AP46222=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.2.rrd:ds1:AVERAGE
  CDEF:AP4622=AP46221,AP46222,+
 LINE1:AP4622#66CC00:46.2.2
GPRINT:AP4622:LAST:%2.0lf
GPRINT:AP4622:MAX:%2.0lf\n
   DEF:AP46231=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.3.rrd:ds0:AVERAGE
   DEF:AP46232=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.3.rrd:ds1:AVERAGE
  CDEF:AP4623=AP46231,AP46232,+
 LINE1:AP4623#993300:46.2.3
GPRINT:AP4623:LAST:%2.0lf
GPRINT:AP4623:MAX:%2.0lf
   DEF:AP46241=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.4.rrd:ds0:AVERAGE
   DEF:AP46242=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.4.rrd:ds1:AVERAGE
  CDEF:AP4624=AP46241,AP46242,+
 LINE1:AP4624#99CC00:46.2.4
GPRINT:AP4624:LAST:%2.0lf
GPRINT:AP4624:MAX:%2.0lf
   DEF:AP46251=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.5.rrd:ds0:AVERAGE
   DEF:AP46252=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.5.rrd:ds1:AVERAGE
  CDEF:AP4625=AP46251,AP46252,+
 LINE1:AP4625#CC3300:46.2.5
GPRINT:AP4625:LAST:%2.0lf
GPRINT:AP4625:MAX:%2.0lf
   DEF:AP46261=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.6.rrd:ds0:AVERAGE
   DEF:AP46262=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.6.rrd:ds1:AVERAGE
  CDEF:AP4626=AP46261,AP46262,+
 LINE1:AP4626#CCCC00:46.2.6
GPRINT:AP4626:LAST:%2.0lf
GPRINT:AP4626:MAX:%2.0lf
   DEF:AP46271=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.7.rrd:ds0:AVERAGE
   DEF:AP46272=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.7.rrd:ds1:AVERAGE
  CDEF:AP4627=AP46271,AP46272,+
 LINE1:AP4627#FF3300:46.2.7
GPRINT:AP4627:LAST:%2.0lf
GPRINT:AP4627:MAX:%2.0lf
   DEF:AP46281=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.8.rrd:ds0:AVERAGE
   DEF:AP46282=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.8.rrd:ds1:AVERAGE
  CDEF:AP4628=AP46281,AP46282,+
 LINE1:AP4628#FFCC00:46.2.8
GPRINT:AP4628:LAST:%2.0lf
GPRINT:AP4628:MAX:%2.0lf\n
   DEF:AP46291=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.9.rrd:ds0:AVERAGE
   DEF:AP46292=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.9.rrd:ds1:AVERAGE
  CDEF:AP4629=AP46291,AP46292,+
 LINE1:AP4629#006633:46.2.9
GPRINT:AP4629:LAST:%2.0lf
GPRINT:AP4629:MAX:%2.0lf
   DEF:AP462101=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.10.rrd:ds0:AVERAGE
   DEF:AP462102=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.10.rrd:ds1:AVERAGE
  CDEF:AP46210=AP462101,AP462102,+
 LINE1:AP46210#00FF33:46.2.10
GPRINT:AP46210:LAST:%2.0lf
GPRINT:AP46210:MAX:%2.0lf
   DEF:AP462111=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.11.rrd:ds0:AVERAGE
   DEF:AP462112=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.11.rrd:ds1:AVERAGE
  CDEF:AP46211=AP462111,AP462112,+
 LINE1:AP46211#336633:46.2.11
GPRINT:AP46211:LAST:%2.0lf
GPRINT:AP46211:MAX:%2.0lf
   DEF:AP462121=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.12.rrd:ds0:AVERAGE
   DEF:AP462122=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.12.rrd:ds1:AVERAGE
  CDEF:AP46212=AP462121,AP462122,+
 LINE1:AP46212#33FF33:46.2.12
GPRINT:AP46212:LAST:%2.0lf
GPRINT:AP46212:MAX:%2.0lf
   DEF:AP462131=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.13.rrd:ds0:AVERAGE
   DEF:AP462132=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.2.13.rrd:ds1:AVERAGE
  CDEF:AP46213=AP462131,AP462132,+
 LINE1:AP46213#666633:46.2.13
GPRINT:AP46213:LAST:%2.0lf
GPRINT:AP46213:MAX:%2.0lf
   DEF:AP46311=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.1.rrd:ds0:AVERAGE
   DEF:AP46312=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.1.rrd:ds1:AVERAGE
  CDEF:AP4631=AP46311,AP46312,+
 LINE1:AP4631#66FF33:46.3.1
GPRINT:AP4631:LAST:%2.0lf
GPRINT:AP4631:MAX:%2.0lf\n
   DEF:AP46321=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.2.rrd:ds0:AVERAGE
   DEF:AP46322=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.2.rrd:ds1:AVERAGE
  CDEF:AP4632=AP46321,AP46322,+
 LINE1:AP4632#996633:46.3.2
GPRINT:AP4632:LAST:%2.0lf
GPRINT:AP4632:MAX:%2.0lf
   DEF:AP46331=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.3.rrd:ds0:AVERAGE
   DEF:AP46332=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.3.rrd:ds1:AVERAGE
  CDEF:AP4633=AP46331,AP46332,+
 LINE1:AP4633#99FF33:46.3.3
GPRINT:AP4633:LAST:%2.0lf
GPRINT:AP4633:MAX:%2.0lf
   DEF:AP46341=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.4.rrd:ds0:AVERAGE
   DEF:AP46342=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.4.rrd:ds1:AVERAGE
  CDEF:AP4634=AP46341,AP46342,+
 LINE1:AP4634#CC6633:46.3.4
GPRINT:AP4634:LAST:%2.0lf
GPRINT:AP4634:MAX:%2.0lf
   DEF:AP46351=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.5.rrd:ds0:AVERAGE
   DEF:AP46352=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.5.rrd:ds1:AVERAGE
  CDEF:AP4635=AP46351,AP46352,+
 LINE1:AP4635#CCFF33:46.3.5
GPRINT:AP4635:LAST:%2.0lf
GPRINT:AP4635:MAX:%2.0lf
   DEF:AP46361=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.6.rrd:ds0:AVERAGE
   DEF:AP46362=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.6.rrd:ds1:AVERAGE
  CDEF:AP4636=AP46361,AP46362,+
 LINE1:AP4636#FF6633:46.3.6
GPRINT:AP4636:LAST:%2.0lf
GPRINT:AP4636:MAX:%2.0lf
   DEF:AP46371=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.7.rrd:ds0:AVERAGE
   DEF:AP46372=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.3.7.rrd:ds1:AVERAGE
  CDEF:AP4637=AP46371,AP46372,+
 LINE1:AP4637#FFFF33:46.3.7
GPRINT:AP4637:LAST:%2.0lf
GPRINT:AP4637:MAX:%2.0lf\n
   DEF:AP46411=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.1.rrd:ds0:AVERAGE
   DEF:AP46412=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.1.rrd:ds1:AVERAGE
  CDEF:AP4641=AP46411,AP46412,+
 LINE1:AP4641#009966:46.4.1
GPRINT:AP4641:LAST:%2.0lf
GPRINT:AP4641:MAX:%2.0lf
   DEF:AP46421=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.2.rrd:ds0:AVERAGE
   DEF:AP46422=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.2.rrd:ds1:AVERAGE
  CDEF:AP4642=AP46421,AP46422,+
 LINE1:AP4642#330066:46.4.2
GPRINT:AP4642:LAST:%2.0lf
GPRINT:AP4642:MAX:%2.0lf
   DEF:AP46431=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.3.rrd:ds0:AVERAGE
   DEF:AP46432=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.3.rrd:ds1:AVERAGE
  CDEF:AP4643=AP46431,AP46432,+
 LINE1:AP4643#339966:46.4.3
GPRINT:AP4643:LAST:%2.0lf
GPRINT:AP4643:MAX:%2.0lf
   DEF:AP46441=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.4.rrd:ds0:AVERAGE
   DEF:AP46442=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.4.rrd:ds1:AVERAGE
  CDEF:AP4644=AP46441,AP46442,+
 LINE1:AP4644#660066:46.4.4
GPRINT:AP4644:LAST:%2.0lf
GPRINT:AP4644:MAX:%2.0lf
   DEF:AP46451=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.5.rrd:ds0:AVERAGE
   DEF:AP46452=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.5.rrd:ds1:AVERAGE
  CDEF:AP4645=AP46451,AP46452,+
 LINE1:AP4645#669966:46.4.5
GPRINT:AP4645:LAST:%2.0lf
GPRINT:AP4645:MAX:%2.0lf
   DEF:AP46461=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.6.rrd:ds0:AVERAGE
   DEF:AP46462=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.6.rrd:ds1:AVERAGE
  CDEF:AP4646=AP46461,AP46462,+
 LINE1:AP4646#990066:46.4.6
GPRINT:AP4646:LAST:%2.0lf
GPRINT:AP4646:MAX:%2.0lf\n
   DEF:AP46471=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.7.rrd:ds0:AVERAGE
   DEF:AP46472=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.7.rrd:ds1:AVERAGE
  CDEF:AP4647=AP46471,AP46472,+
 LINE1:AP4647#999966:46.4.7
GPRINT:AP4647:LAST:%2.0lf
GPRINT:AP4647:MAX:%2.0lf
   DEF:AP46481=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.8.rrd:ds0:AVERAGE
   DEF:AP46482=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.8.rrd:ds1:AVERAGE
  CDEF:AP4648=AP46481,AP46482,+
 LINE1:AP4648#CC0066:46.4.8
GPRINT:AP4648:LAST:%2.0lf
GPRINT:AP4648:MAX:%2.0lf
   DEF:AP46491=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.9.rrd:ds0:AVERAGE
   DEF:AP46492=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.9.rrd:ds1:AVERAGE
  CDEF:AP4649=AP46491,AP46492,+
 LINE1:AP4649#CC9966:46.4.9
GPRINT:AP4649:LAST:%2.0lf
GPRINT:AP4649:MAX:%2.0lf
   DEF:AP464101=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.10.rrd:ds0:AVERAGE
   DEF:AP464102=/usr/local/www/MRTG/WIRELESSAP/main/clients-ap-46.4.10.rrd:ds1:AVERAGE
  CDEF:AP46410=AP464101,AP464102,+
 LINE1:AP46410#FF0066:46.4.10
GPRINT:AP46410:LAST:%2.0lf
GPRINT:AP46410:MAX:%2.0lf
>


</BODY>
</HTML>



More information about the rrd-users mailing list