Remstats Home


  About remstats
  Release Notes
  FAQ
  Conventions
  Prerequisites
  Installation
  Configuration
  Configuration Tools
  Servers
  Collectors
  Updater
  Monitors
  run-remstats
  CGIs
      alert-cgi
      availability-report-cgi
      dataimage-cgi
      datapage-cgi
      graph-cgi
      log-event-cgi
      ping-cgi
      showlog-cgi
      traceroute-cgi
      whois-cgi
  do-traceroutes
  Miscellany
  Thank-you
  Index


  Live Data

  Remstats was written by
  Thomas Erskine at the
  CRC in Canada and now
  at SourceWorks.

[Top] [Prev] [Next]

graph.cgi - exporting remstats graphs

The purpose of graph.cgi is to allow remstats graphs to appear on external (not part of remstats) web-pages. It's 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="/remstats/graph.cgi?host=aaa&rrd=bbb&graph=ccc&graphtime=ddd">

and replace aaa with the name of the host, as remstats knows it, bbb with the name of the RRD, ccc with the name of the graph within that RRD, and ddd with the name of the timespan, from the times config-file. If the RRD is a wildcard RRD, e.g. snmpif-*, then you must use the specific instance, e.g. snmpif-eth0.

That's all there is to it.


Last updated Tue Apr 16 19:09:21 PDT 2002 by <thomas.erskine@sourceworks.com>.
[SourceWorks] [Top] [RRDtool]