Page 1 of 1
How to display all alarm receivers in the alarm email.
Posted: Sun Dec 18, 2011 10:12 pm
by o2401c
Hi,Experts,
As you know nagios alarm emails send one by one, how to add the all alarm receivers in the alarm CC list.( display all receivers in the one email.)
Thanks.
Re: How to display all alarm receivers in the alarm email.
Posted: Mon Dec 19, 2011 4:30 pm
by jsmurphy
The only way I know of accomplishing this is to have all of their email addresses in a single contact definition, that is unless you wrote your own handler to do some magic.
Re: How to display all alarm receivers in the alarm email.
Posted: Fri Dec 23, 2011 2:10 am
by o2401c
Thanks. but base email groups,seems can't set like this. I want to some groups in CC list of email. email define is not good way, due to receiver always changes.
Re: How to display all alarm receivers in the alarm email.
Posted: Sun Dec 25, 2011 9:54 am
by crfriend
You may want to investigate the various macros that ara available to the notification plugins, specifically $CONTACTNAME$ and $CONTACTGROUPMEMBERS$. Note that if you are transmitting to a mailling list there is no way for Nagios to know who is subscribed to that list unless one writes another plugin to find that and stash it someplace that your notification plugin can get too it.
Re: How to display all alarm receivers in the alarm email.
Posted: Sun Dec 25, 2011 8:34 pm
by o2401c
Thanks crfriend,
I tried these 2 micro, but nagios can't send emails to this members, due to only display in the memeber's name not email address. so the email can't send out.
but you let me find another way, put this 2 micro in the email content, then we can know who received this email. it is good way too.
Thanks.