Configuration - alert-templates
The alert-templates
directory contains the alert message templates. They
are just text files with 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.
Last updated Thu Mar 17 16:58:29 UTC 2005 by <thomas.erskine@sourceworks.com>.
[