Adding contacts
Marc Powell
marc at ena.com
Mon Jan 22 17:27:26 CET 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Artyom Khmelnitsky
> Sent: Sunday, January 21, 2007 5:15 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Adding contacts
>
> Hello,
>
> Is it possible to declare multiple email contacts for a single
contact?
> For instance:
>
> email myname at domain.com, admin at domain.com
Yes, if your notification command supports it. For example, /bin/mail,
the standard mail program used in notifications, expects multiple
addresses to use multiple -c or -b args --
mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr...
In your example, you could pass $CONTACTEMAIL$ to a wrapper script that
split the comma separated addresses, used one as the to-addr and created
appropriate -c args for the rest before calling /bin/mail.
The other recommendation for multiple contacts in a group is usually
easier for most.
--
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