Remstats Home


  About remstats
  architecture
  Release Notes
  FAQ
  Conventions
  Prerequisites
  Installation
  Configuration
      access
      alerts
      alert-destination-map
      alert-template-map
      alert-templates
      archives
      availability
      colors
      customgraphs
      dbi-connects
      dbi-selects
      environment
      general
      groups
      hosts
      host templates
      html
      links
      ntops
      oids
      pages
      page-templates
      remotepings
      run
      run-stages
      rrds
      scripts
      times
      tools
      views
      view templates
  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]

Configuration - alert-templates

The alert-templates directory contains the alert message templates. They are just text files with magic cookies in them. The cookies available are slightly different than the standard list, but they work the same way. You put ##COOKIENAME## wherever you want to see the value of the 'cookiename' variable. The ones available for alerts are:

  • HOST - the host for the alert
  • REALRRD - the RRD instance for the alert
  • FIXEDRRD - the RRD instance with the character-set translated a bit for file-names and message-id's
  • VAR - the variable name
  • STATUS - the alert status (OK, WARN, ERROR, CRITICAL)
  • VALUE - the value of the variable that caused this alert
  • RELATION and THRESHOLD - the alert is triggered when the VALUE is no longer in RELATION to the THRESHOLD value.
  • START - when the alert was first noticed
  • DURATION - how long the alert has been in this STATUS
  • HOSTDESC - the description line for this host
  • RRDDESC - the description for this instance of the RRD
  • NOW - the current time as a unix timestamp
  • NOWTEXT - the current time for email headers
  • ALERTHOST - the hostname of the host sending the alert
  • TOWHO - the addressee for this alert

There are three special files in the alert-templates directory, which must exist:

  • DEFAULT - which contains the default template to be used when no other matches the alert-template-map.
  • HEADERS - which supplies the headers for each message, with the same substitutions as the rest of the template files. Make very sure that the HEADERS file ends with or contains an empty line or your message will be interpreted as part of the headers and will undoubtedly look wrong. The alert-email script does not check this.
  • FOOTER - supplies a standard ending for each message.


[Top] [Remstats] [SourceWorks] [RRDtool] [SourceForge]
Last updated Fri Jun 22 13:37:42 GMT 2007 by <terskine@users.sourceforge.net>.