Email Notification Subject Host Alias or Description ...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Email Notification Subject Host Alias or Description ...

Post by xpertech »

Is there possible to add Host Alias or Description on Email Notification Subject?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked