This is the message that will be displayed as the message body of all UP / Down Device Messages (1024 Char MAX).HTML is allowed, but will be removed for text only Emails.There are several common replacement tags that may be used in include:<br><HOSTNAME> <HOST_ID> <DESCRIPTION> <SITE> <LOCATION> <UPTIME> <UPTIMETEXT> <DOWNTIME> <TIME> <DATE> <DATE_RFC822> <BREACHED_ITEMS> <MESSAGE> <SUBJECT> <DOWN/UP> <SNMP_HOSTNAME> <SNMP_LOCATION> <SNMP_CONTACT> <SNMP_SYSTEM> <LAST_FAIL> <AVAILABILITY> <TOT_POLL> <FAIL_POLL> <CUR_TIME> <AVG_TIME> <NOTES>
This is the message that will be displayed as the message body of all UP / Down Device Messages (1024 Char MAX).HTML is allowed, but will be removed for text only Emails.There are several common replacement tags that may be used in include:<br><HOSTNAME> <HOST_ID> <DESCRIPTION> <SITE> <LOCATION> <UPTIME> <UPTIMETEXT> <DOWNTIME> <TIME> <DATE> <DATE_RFC822> <BREACHED_ITEMS><MESSAGE> <SUBJECT> <DOWN/UP> <SNMP_HOSTNAME> <SNMP_LOCATION> <SNMP_CONTACT> <SNMP_SYSTEM> <LAST_FAIL> <AVAILABILITY> <TOT_POLL> <FAIL_POLL> <CUR_TIME> <AVG_TIME> <NOTES>
When a Device changes state from a Cacti perspective (UP to DOWN or DOWN to RECOVERING/UP), run the following command.This command must NOT include command line arguments.However, the following variables can be pulled from the environment of the script:<br><THOLD_HOSTNAME> <THOLD_SITE> <THOLD_LOCATION> <THOLD_HOST_ID> <THOLD_DESCRIPTION> <THOLD_UPTIME> <THOLD_UPTIMETEXT> <THOLD_DOWNTIME> <THOLD_TIME> <THOLD_DATE> <THOLD_DATE_RFC822> <THOLD_BREACHED_ITEMS> <THOLD_MESSAGE> <THOLD_SUBJECT> <THOLD_DOWNUP> <THOLD_SNMP_HOSTNAME> <THOLD_SNMP_LOCATION> <THOLD_SNMP_CONTACT> <THOLD_SNMP_SYSTEM> <THOLD_LAST_FAIL> <THOLD_AVAILABILITY> <THOLD_TOT_POLL> <THOLD_FAIL_POLL> <THOLD_CUR_TIME> <THOLD_AVG_TIME> <THOLD_NOTES>
If set, and if a High Threshold is breached, this command will be run.Please enter a valid command.In addition, there are several replacement tags available that can be used to pass information from the Threshold to the script.You can do this as arguments on the command line, or preferably, in the environment of the script.All replacement values will appear in the environment of the script prefixed with THOLD_.So, for example CURRENTVALUE will become THOLD_CURRENTVALUE, and so on.The variables include: <DESCRIPTION> <HOSTNAME> <TIME> <DATE> <URL> <GRAPHID> <CURRENTVALUE> <THRESHOLDNAME> <DSNAME> <SUBJECT> <GRAPH> <HI> <LOW> <DURATION> <TRIGGER> <DETAILS_URL> <DATE_RFC822> <BREACHED_ITEMS>.Finally, Host, Data Query and Data Input replacement can be made.For example, if you have a data input custom data called pending, to perform the replacement use |pending|.For Data Query, and Host replacement use Cacti conventions |query_xxxx|, and |host_xxxx| respectively.
This Threshold will be Templated.When using the Threshold Template option, you will be prompted for a Threshold Template, Graph Template, Device and possibly Data Query Item information before receiving the 'Create' prompt at which time, if any overridable Graph or Data Source information is allowed at the Graph and Data Source Template level, you will be prompted for it.Then, by pressing the 'Create' button, both the Graph and Threshold will be created simultaneously.