Templates
Templates are used to individually adjust the notifications generated by the SONARPLEX appliance. You set up the desired information from predefined variables. There are e-mail or text messages as well as host and service messages.
To send a text message, an external GSM modem must be connected to the SONARPLEX appliance. Information regarding the ports is provided in the supplied data sheet of the SONARPLEX appliance.
For customizing alert templates structure for email or SMS notifications, proceed as follows:
- Open the Administration Web Interface > Configuration > Templates and select a template (see picture below).
- Modify the default template structure by copying and pasting in the desired place or you can insert new variables (%VARIABLE_NAME%). Variable names are listed in the table below.
- Click on to save your changes or click on to save your changes and send a test e-mail or test SMS to the administrator.
The following variables can be used in templates:
Host Notifications - Variable name | Service Notifications - Variable name |
---|---|
ADMINEMAIL | ADMINEMAIL |
ADMINPAGER | ADMINPAGER |
CONTACTALIAS | CONTACTALIAS |
CONTACTEMAIL | CONTACTEMAIL |
CONTACTNAME | CONTACTNAME |
CONTACTPAGER | CONTACTPAGER |
DATE | DATE |
GMTIME | GMTIME |
HOSTADDRESS | HOSTADDRESS |
HOSTALIAS | HOSTALIAS |
HOSTCHECKS_ENABLED | HOSTCHECKS_ENABLED |
HOSTCHECK_COMMAND | HOSTCHECK_COMMAND |
HOSTCONTACTS | HOSTCONTACTS |
HOSTCONTACT_GROUPS | HOSTCONTACT_GROUPS |
HOSTHOST_NAME | HOSTHOST_NAME |
HOSTMAX_ATTEMPTS | HOSTMAX_ATTEMPTS |
HOSTMAX_CHECK_ATTEMPTS | HOSTMAX_CHECK_ATTEMPTS |
HOSTNAME | HOSTNAME |
HOSTNOTES | HOSTNOTES |
HOSTNOTES_URL | HOSTNOTES_URL |
HOSTNOTIFICATIONS_ENABLED | HOSTNOTIFICATIONS_ENABLED |
HOSTNOTIFICATION_INTERVAL | HOSTNOTIFICATION_INTERVAL |
HOSTNOTIFICATION_PERIOD | HOSTNOTIFICATION_PERIOD |
HOSTPASSIVE_CHECKS_ENABLED | HOSTPASSIVE_CHECKS_ENABLED |
HOSTSTATE | HOSTSTATE |
HOST_ALTITUDE | HOST_ALTITUDE |
HOST_LATITUDE | HOST_LATITUDE |
HOST_LONGITUDE | HOST_LONGITUDE |
LASTHOSTCHECK | LASTHOSTCHECK |
LASTHOSTSTATECHANGE | LASTHOSTSTATECHANGE |
LONGDATETIME | LONGDATETIME |
NOTIFICATIONNUMBER | NOTIFICATIONNUMBER |
NOTIFICATIONTYPE | NOTIFICATIONTYPE |
OUTPUT | OUTPUT |
REMOTE_ADDR | REMOTE_ADDR |
SHORTDATETIME | SHORTDATETIME |
SONARPLEX_ADDRESS | SONARPLEX_ADDRESS |
SONARPLEX_LOCATION | SONARPLEX_LOCATION |
SYSID | SYSID |
TIME | TIME |
TIMET | TIMET |
SERVICEACKAUTHOR | |
SERVICEACKCOMMENT | |
SERVICECHECKS_ENABLED | |
SERVICECHECK_COMMAND | |
SERVICECHECK_PERIOD | |
SERVICECONTACTS | |
SERVICECONTACT_GROUPS | |
SERVICEDESC | |
SERVICEEVENT_HANDLER | |
SERVICEEXECUTIONTIME | |
SERVICEFAILURE_PREDICTION_ENABLED | |
SERVICEHOST_NAME | |
SERVICEHOST_NAMES | |
SERVICELATENCY | |
SERVICEMAX_ATTEMPTS | |
SERVICEMAX_CHECK_ATTEMPTS | |
SERVICENORMAL_CHECK_INTERVAL | |
SERVICENOTIFICATIONS_ENABLED | |
SERVICENOTIFICATION_INTERVAL | |
SERVICENOTIFICATION_PERIOD | |
SERVICEOUTPUT | |
SERVICEPASSIVE_CHECKS_ENABLED | |
SERVICEPERFDATA | |
SERVICEPROCESS_PERF_DATA | |
SERVICESERVICE_DESCRIPTION | |
SERVICESHOULD_BE_SCHEDULED | |
SERVICESTATE |
Not all variables are available for every notification.
- style