Discussion:
[rrd-users] Problems with RRDcgi
bhumika joshi
2003-07-16 10:44:04 UTC
Permalink
hi ,
i am using mrtg-rrdtool to graph the cpu utilization of a windows server here.i got those GRAPHS i am attaching to this mail , but for this i had to execute an rrdtool graph instruction on the command line.
now i am trying to use rrdcgi to generate a web page containing my graphs .. my rrd cgi configuration is as follows ------------------------------------------------
<HTML>
<HEAD><TITLE>RRDCGI Demo</TITLE></HEAD>
<BODY>
<H1>RRDCGI Example Page</H1>
<P>
<RRD::GRAPH design.png --start 7/11/03 --en
d 7/16/03 --x-grid HOUR:6:HOUR:12:HOUR:12:0:%d:12%p --title "PCGSQL Processorloa
d " --vertical-label "CPU Utilization in % " --upper-limit 100 --rigid --width 6
00 --height 200 DEF:a=pcgsql.processorload.rrd:ds0:AVERAGE DEF:b=pcgsql.processorload.rrd:ds1:MAX CDEF
:t=a,b,+ CDEF:low=t,20,GT,0,t,IF CDEF:flg2=t,20,GT,1,0,IF CDEF:flg=t,40,GT,0,1,I
F CDEF:re=t,flg,* CDEF:res=re,flg2,* CDEF:high=t,70,GT,t,0,IF LINE3:t#000000:"T
otal cpu utilization" AREA:t#C10061:"In the range 40%-70%" AREA:low#1AEC77:"Less
than 20%" AREA:res#8080C0:"Between 20%-40!" AREA:high#0000DD:"Greater than 70%"
COMMENT: COMMENT: COMMENT:"UTILIZATION FOR THE MONTH OF JULY" COMMENT: COMMENT:
COMMENT:"LABEL KEY -- DAY:TIME:AM or PM">
</P>
</BODY>
</HTML>
-------------------------
i ve placed this cgi[named page.rrdcgi] in the cgi-bin directory .. the rrd files are also in the same directory ..
however when i try opening thie file from the browser it gives me a webpage with the OUTPUT PAGE i have attached to this mail ..
if i simply try opening the rrdcgi file with rrd_cgi (open with option in windows) i get the followinf line on the msdos prompt -->
(offline mode: enter name=value pairs on standard input)
can you please point out my mistakes .. thanks in advance
truly,
bhumika

---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


-- Attached file removed by Ecartis and put at URL below --
-- Type: text/html
-- Desc: output graph.htm
-- Size: 1k (1104 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/output%20graph.htm


-- Attached file removed by Ecartis and put at URL below --
-- Type: image/gif
-- Desc: GRAPH.png
-- Size: 43k (44985 bytes)
-- URL : Loading Image...


--
Unsubscribe mailto:rrd-users-***@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-***@list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
Leigh Sharpe
2003-07-16 23:28:53 UTC
Permalink
Your HTML page contains the command-line for yourRRD Graph function. This
indicates tyhat the server is simply serving up the page, rather than
processing it through rrdcgi. It looks like you have no shebang line in
t\your page, so trhe server doesn't realise that it is supposed to eexecute
it. Is this on a windows box or a *nix machine?
Regards,
Leigh

Leigh Sharpe
Network Systems Engineer
Pacific Wireless
Ph 9584 8966
Mob 0408 009 502
email ***@pacificwireless.com.au
web www.pacificwireless.com.au

----- Original Message -----
From: "bhumika joshi" <***@yahoo.com>
To: <***@ee.ethz.ch>
Cc: <rrd-***@list.ee.ethz.ch>
Sent: Wednesday, July 16, 2003 8:44 PM
Subject: [rrd-users] Problems with RRDcgi
Post by bhumika joshi
hi ,
i am using mrtg-rrdtool to graph the cpu utilization of a windows server
here.i got those GRAPHS i am attaching to this mail , but for this i had to
execute an rrdtool graph instruction on the command line.
Post by bhumika joshi
now i am trying to use rrdcgi to generate a web page containing my graphs
.. my rrd cgi configuration is as follows > i ve placed this cgi[named
page.rrdcgi] in the cgi-bin directory .. the rrd files are also in the same
directory ..
Post by bhumika joshi
however when i try opening thie file from the browser it gives me a
webpage with the OUTPUT PAGE i have attached to this mail ..
Post by bhumika joshi
if i simply try opening the rrdcgi file with rrd_cgi (open with option in
windows) i get the followinf line on the msdos prompt -->
Post by bhumika joshi
(offline mode: enter name=value pairs on standard input)
can you please point out my mistakes .. thanks in advance
truly,
bhumika
--
Unsubscribe mailto:rrd-users-***@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-***@list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
bhumika joshi
2003-07-17 03:13:05 UTC
Permalink
its a windows machine .. yes i did notice that .. but how am i supposed to do that for a windows machine ..
regards
bhumika

---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

--
Unsubscribe mailto:rrd-users-***@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-***@list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
Leigh Sharpe
2003-07-17 03:22:58 UTC
Permalink
The solution to your problem depends on what web server you are using. Assuming that you are using apache, you need to do the following:
1) put your script in a directory that the server can execute cgis from.
2) put a shebang line at the start of the script to tell the server what interpreter to run the script through.
Other web servers will have a similar set-up.

Regards,
Leigh

Leigh Sharpe
Network Systems Engineer
Pacific Wireless
Ph 9584 8966
Mob 0408 009 502
email ***@pacificwireless.com.au
web www.pacificwireless.com.au

----- Original Message -----
From: bhumika joshi
To: Leigh Sharpe
Cc: rrdtool usersmailinglist
Sent: Thursday, July 17, 2003 1:13 PM
Subject: Re: [rrd-users] Re: Problems with RRDcgi


its a windows machine .. yes i did notice that .. but how am i supposed to do that for a windows machine ..
regards
bhumika

Loading...