Page 1 of 1

sending mail to a contact group

Posted: Wed Mar 13, 2013 3:23 pm
by cgrediaga
Hello,

I am sending emails with Nagios and I would like to put into the mail format the contact group that is defined in the Value CONTACTGROUP ie you have set the contactgroup_name

Re: sending mail to a contact group

Posted: Wed Mar 13, 2013 3:28 pm
by sreinhardt
You can define custom variables in configs by starting them with an underscore like so _CUSTOMVARIABLE "[email protected]" and the referencing it as $_CUSTOMVARIABLE$ where needed. Try looking at the understanding macros and how they work page for more detail