Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

\n

\n \n \n \n \n \n \n \n \n \n \n \n \n
Related DocumentationVersion of up.time affectedAffected Platforms
Custom Alert Format Variables4.4 or newerAll

...

...

Article Contents \n

...

...

Overview

...

Table of Contents

Overview

up.time's standard alert format should be well suited for most alerting needs. However, you can modify the alert content by adding or removing variables from one of the three custom alert templates. For more information on the variables, see see Alert Profile and Action Profile Variables and Custom Alert Format Variables.

...

Alert Formats

...

There are three custom alert formats:

...

  • Small Template

    \n

    Contains the date and time of the alert, as well as the names and status of the service and host for which the alert was generated. This corresponds to the template used for pager alerts, as shown below:

    \n \n$SERVICESTATE$ Alert \n \n$DATETIME$ \nType: $TYPE$ \nService

    Code Block
    languagetext
    $SERVICESTATE$ Alert 
     $DATETIME$ 
     Type: $TYPE$ 
     Service: $SERVICENAME$ ($SERVICESTATE$) 
    
    \nHost
     Host: $HOSTNAME$ ($HOSTSTATE$)
    
    \n
    \n
  • \n
  • Medium Template

    \n

    Contains the information in the small template, as well as an expanded subject line, the type of notification, and output from the service monitorService Monitor. This corresponds to the template used for email alerts, as shown below:

    \n \nup
    Code Block
    languagetext
    up.time Alert - $SERVICENAME$ -> 
    $SERVICESTATE$ \n \nNotification
    $SERVICESTATE$ 
    Notification type: $TYPE$ 
    $DATETIME$ \n \nHost
    $DATETIME$ 
    Host: $HOSTNAME$ ($HOSTSTATE$) 
    
    \nService
    Service:
    $SERVICENAME$
    $SERVICENAME$ 
    
    \nService
    Service State: 
    $SERVICESTATE$ \n \nOutput
    $SERVICESTATE$ 
    Output: $OUTPUT$
    \n
    \n
  • \n
  • Long Template

    \n

    Contains the information in the medium template, as well as the status of the host, as shown below:

    \n \nup

    Code Block
    languagetext
    up.time Alert - $DATETIME$ - $SERVICENAME$ -> 
    $SERVICESTATE$ \n \nDate
    $SERVICESTATE$ 
    Date: 
    $DATE$
    $DATE$ 
    
    \nTime
    Time: 
    $TIME$
    $TIME$ 
    
    \nDate
    Date & Time: 
    $DATETIME$
    $DATETIME$ 
    
    \nHostname
    Hostname: 
    $HOSTNAME$
    $HOSTNAME$ 
    
    \nHost
    Host State: 
    $HOSTSTATE$
    $HOSTSTATE$ 
    
    \nService
    Service: 
    $SERVICENAME$
    $SERVICENAME$ 
    
    \nService
    Service State: 
    $SERVICESTATE$
    $SERVICESTATE$ 
    
    \nNotification
    Notification Type: 
    $TYPE$
    $TYPE$ 
    
    \nOutput
    Output: $OUTPUT$
    \n \n \n
  • \n

...

Defining Custom Alert Formats

...

To define a custom alert format:

...

    1. Define an alert profile (see the up.time User Guide for more information).
    \n
    1. In the Custom Format Options section, click Custom Formats.
    \n


    1. Image Modified

    \n \n
    1. From the dropdown list, select one of the following options:
    \n \n
      • Small Template
    \n
      • Medium Template
    \n
      • Long Template
    \n \n \n \n
    1. Click Fill.

    1. The variables associated with the template appear in the subject and body fields.
    \n

    1. Add variables by typing them into the text box. Remove variables highlighting them and pressing the Delete key on your keyboard.
    \n

    1. You can also add other information to the body of the alert, such as paths to custom scripts or the names of alternative contacts.
    \n

    1. Click Save.
    \n

 

...