sending mail to a contact group

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cgrediaga
Posts: 14
Joined: Wed Jul 11, 2012 1:40 am

sending mail to a contact group

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: sending mail to a contact group

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked