How can I insert host group name into alert message?

How can I insert host group name into alert message?

Q: How can I insert host group name into alert message?

A: We provide a number of template variables, listed in details on Main parameters tab online help page. We suggest using those variables to make generic text of alerts more informative, for either manual or automated further processing.

For example, to display host group name given host/monitor belongs to, insert $HostGroupName variable into corresponding place where that name should be visible.

Note that template variables can be used both in alerts and in monitors/hosts/monitor types properties. Note that there are alerts-only variables, that can only be used in alert templates.

We strongly recommend adjusting default alert template so that it could be easier to spot and process.

Related topics

What is inheritance of Alerts and Alerting Rules?

Frequently Asked Questions

Check out our Knowledge Base where we answer questions regarding various topics.

Which template variable inserts the host group name into an alert?

Use $HostGroupName in the alert message template where the host group name should appear.

Where can template variables be used?

Template variables can be used in alerts and in monitor, host, and monitor type properties, with some variables available only for alert templates.

Why adjust the default alert template?

A clearer default alert template makes notifications easier to understand, identify, and process manually or through automated tools.