Remstats Home


  About remstats
  architecture
  Release Notes
  FAQ
  Conventions
  Prerequisites
  Installation
      the remstats user
      the webgroup group
      cookies
      private functions
      remstats servers
      your web-server
  Configuration
  Configuration Tools
  Servers
  Collectors
  Updater
  Monitors
  pagemakers
  run-remstats2
  CGIs
  troubleshooting
  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]

Magic Cookies

There are various places in the configuration file where you can have text substituted for you. It's a (very-limited) macro facility. Currently, it only works in graphs, scripts and tools. The cookies are always UPPERCASE and the name is surrounded by "##", so that a request for "color1" would look like "##COLOR1##", without the quotes.

Here they are:

Colours:

You're not required to use these, but you'll really regret not doing so when you decide to change colors later.

  • COLOR1, COLOR2, ... COLOR6 and also COLOR1a, ... - generic colours for graphs
  • PROBLEMCOLOR - an alarming colour
  • TOTALCOLOR - the full amount of something
  • USEDCOLOR - how much is used of something

Other stuff:

  • DB - the full path and file-name of the current rrd
  • CGIDIR - where the CGI programs live
  • CGIURL - where the CGI programs live in web-space
  • DATADIR - where the data files live
  • GRAPH - the name of the current graph
  • GRAPHTIME - the name of the current time-span
  • HOST - the name of this host
  • HOSTDATADIR - where the current host's data files live
  • HOSTDESC - the description of this host
  • HTMLDIR - where the html and graphs live
  • HTMLURL - where the html and graphs live in web-space
  • IP - the IP number of the host
  • IPORHOST - the IP number of the host, if it's defined in the host's config-file, or else its name.
  • RRD - the name of the current RRD, without the .rrd extension or file-name fixing
  • RRDDESC - the description of the current RRD
  • SHORTHOST - the name of the host before the first dot, unless it is a generic name like www or ftp or mail, in which case we use the next part unconditionally.
  • THUMBHEIGHT, THUMBWIDTH - how large to ask for the thumbnail to be. Not how large the resulting gif is.
  • WEBMASTER - who is responsible for this web presense
  • WILDPART - the instance part of a wild rrd. If if-* is being used by if-le0, then WILDPART will be le0.


[
Top] [Remstats] [SourceWorks] [RRDtool] [SourceForge]
Last updated Tue Oct 25 15:14:18 UTC 2005 by <terskine@users.sourceforge.net>.