File: graph-cgi.pod

package info (click to toggle)
remstats 1.00a4-8woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,576 kB
  • ctags: 1,020
  • sloc: perl: 11,706; ansic: 2,776; makefile: 944; sh: 869
file content (28 lines) | stat: -rw-r--r-- 944 bytes parent folder | download
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.