| 1 |
9 |
dpavlin |
#!/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> |