Page 1 of 1

Email Notification Subject Host Alias or Description ...

Posted: Mon Oct 22, 2018 11:28 am
by xpertech
Is there possible to add Host Alias or Description on Email Notification Subject?

Re: Email Notification Subject Host Alias or Description ...

Posted: Mon Oct 22, 2018 11:49 am
by lmiltchev
$HOSTALIAS$ is a standard Nagios macro, so you should be able to use something like this:

Code: Select all

%type% Host Alert - %host% (%hostalias%) is %hoststate%
provided the macro is in your notification command.

Code: Select all

--hostalias="$HOSTALIAS$"
For more information on custom notification variables in Nagios XI, please review the document below:

https://assets.nagios.com/downloads/nag ... iables.pdf