Change alert information send by nagios

Hi there,

I was just wondering if there is a possibility to add the hostgroup to the e-mails and text messages that are being sent by Nagios whenever an alert has been generated. I’ve devided my hosts using the hostgroups…

I could change the hostname, but there are about 400 devices in there and that would take a lot of time.

Add one of the following macros to the email notification command object…
[blockquote]
$HOSTGROUPNAME$ The short name of the hostgroup that this host belongs to. This value is taken from the hostgroup_name directive in the hostgroup definition. If the host belongs to more than one hostgroup this macro will contain the name of just one of them.

$HOSTGROUPNAMES$ A comma separated list of the short names of all the hostgroups that this host belongs to. [/blockquote]Standard Macros in Nagios