HI All, I'm having trouble customizing the notify email issues. For the time being, I'm defining the hostgroup as "Alisa" with a group name. On the hosts file, define the hostgroup member. The issue now is retrieving the $hostgroupalias$ value and having it return the same value. How can I get the value back with HKG Group 1?
define host{
use passive_host
host_name ADC01
hostgroups HKG1,Windows
}
define hostgroup{
hostgroup_name HKG1
alias HKG Group 1
}
define hostgroup{
hostgroup_name Windows
alias Windows
}
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHostgroup: $HOSTGROUPNAMES$ \nHostgroup: $HOSTGROUPNAMES\n HostGroup Name :$HOSTGROUPALIAS$ .....>
The output result will show windows only.
Thx all