[rrd-users] rrdcgi

Ed Donahue III ed.donahue at mavenwire.com
Tue Apr 16 21:52:37 CEST 2013


Hello,

I am trying to create graphs via rrdcgi and I get 500 error, I can 
create the graphs via rrdtool graph, but I want them run in real-time 
(when user refreshes the page):

CODE:
  #!/usr/bin/rrdcgi
  <HTML>
  <HEAD><TITLE>RRDCGI Demo</TITLE></HEAD>
  <BODY>
  <H1>RRDCGI Example Page</H1>
  <P>
  <RRD::GRAPH TWO_HOUR.png --title="HWEBP01"
DEF:GCb=/opt/RRD_REPO/hwebp01_site02_gc_before.rrd:GC:AVERAGE
           AREA:GCb#0000FF:"HEAP Before (MB)">

  </P>
  </BODY>
  </HTML>

ERROR_log:
(8)Exec format error: exec of '/opt/RRD_REPO/cgi-bin/two_hour.cgi' failed
Premature end of script headers: two_hour.cgi

-- 
Thanks,
Ed Donahue III



More information about the rrd-users mailing list