Contact definitions and multiple email addresses?
Marc Powell
marc at ena.com
Thu Feb 22 00:49:51 CET 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Andy Moran
> Sent: Wednesday, February 21, 2007 4:49 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Contact definitions and multiple email
addresses?
>
>
> Can a contact definition contain a list of email addresses, and if so,
> will Nagios email them all?
>
Nagios doesn't care. As far as it's concerned, it's just a string of
text. It'll happily pass them on to your notification program as one
string. The real question is, can your notification program handle them
appropriately? The default notification program, /bin/mail will not, at
least not as a comma separated list. To use /bin/mail you'd either need
to set your notification command to a script that parsed the multiple
recipients and added the appropriate number of -c arguments to
/bin/mail, or possibly, untested, use something like the following for
your contact definition --
define contact{
...
email -c address1 at foo.bar -c address2 at foo.bar
addressTo at foo.bar
}
--
Marc
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list