/[perl]/rrd/graph.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /rrd/graph.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Thu Aug 1 15:27:38 2002 UTC (21 years, 8 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
example rrdcgi page to display graph

1 dpavlin 1.1 #!/usr/bin/rrdcgi
2     <HTML>
3     <HEAD>
4     <title>Graph for last <RRD::CV RANGE></title>
5     <META HTTP-EQUIV="Refresh" CONTENT="150">
6     </HEAD>
7     <BODY>
8    
9     <RRD::GRAPH access.png --title="WWW Server hits -- last <RRD::CV RANGE>"
10     --imgformat PNG
11     --vertical-label "hits"
12     --width 600 --height 400
13     --start <RRD::CV RANGE>
14     DEF:dynamic=access.rrd:dynamic_views:AVERAGE
15     DEF:static=access.rrd:static_views:AVERAGE
16     DEF:other=access.rrd:other_views:AVERAGE
17     AREA:static#00FF00:"HTML pages"
18     STACK:dynamic#0000FF:"dynamic (cgi, php)"
19     STACK:other#FF0000:"other (pictures, binary)"
20     >
21    
22     <FORM>
23     Show last:
24     <INPUT NAME=RANGE TYPE=RADIO VALUE="-1day"> one day
25     <INPUT NAME=RANGE TYPE=RADIO VALUE="-1month"> one month
26     <INPUT NAME=RANGE TYPE=RADIO VALUE="-6month"> six month
27     <INPUT NAME=RANGE TYPE=RADIO VALUE="-1year"> one year
28     <INPUT NAME=RANGE TYPE=RADIO VALUE="-2year"> two years
29     <INPUT TYPE=SUBMIT>
30     </FORM>
31    
32     </BODY>
33     </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26