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
|
=cut
TITLE=graph.cgi
DESCRIPTION=exporting remstats graphs
KEYWORDS=graphs
DOCTOP=index
DOCPREV=datapage.cgi
DOCNEXT=log-event.cgi
=pod
=head1 graph.cgi - exporting remstats graphs
The purpose of C<graph.cgi> is to allow remstats graphs
to appear on external (not part of remstats) web-pages.
It's B<not> efficient, with the graphs being generated whenever
the page is reloaded, but it is portable. All you do is to
create an <IMG SRC...> tag with the appropriate values, like:
<IMG SRC="@@HTMLURL@@/graph.cgi?host=aaa&rrd=bbb&graph=ccc&graphtime=ddd">
and replace C<aaa> with the name of the host, as remstats knows it, C<bbb>
with the name of the RRD, C<ccc> with the name of the graph within that RRD,
and C<ddd> with the name of the timespan, from the
L<times config-file|configfile-times>. If the RRD is a wildcard RRD, e.g.
C<snmpif-*>, then you must use the specific instance, e.g. C<snmpif-eth0>.
That's all there is to it.
|