/usr/share/doc/rrdtool/examples/cgi-demo.cgi is in rrdtool 1.5.5-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #! /usr/bin/rrdcgi
<HTML>
<HEAD>
<TITLE>RRDCGI Demo</TITLE>
</HEAD>
<BODY>
Note: This Demo will only work if have previously run
the <TT>shared-demo.pl</TT>.
<H1>This is NOT traffic</H1>
<P><RRD::GRAPH cgi-demo1.png
--lower-limit 0
--start 'end-10h'
--title "Graph in Localtime <RRD::TIME::NOW %c>"
DEF:alpha=shared-demo.rrd:a:AVERAGE
DEF:beta=shared-demo.rrd:b:AVERAGE
AREA:alpha#0022e9:"Trees on Mars"
STACK:beta#00b871:"Elchs in Norway">
</P>
<P><RRD::SETENV TZ UTC>
<RRD::GRAPH cgi-demo2.png
--lower-limit 0
--start 'end-10h'
--title "Graph in UTC"
DEF:alpha=shared-demo.rrd:a:AVERAGE
DEF:beta=shared-demo.rrd:b:AVERAGE
AREA:alpha#0022e9:"Trees on Mars"
STACK:beta#00b871:"Elchs in Norway">
</P>
</BODY>
</HTML>
|