Contact definitions and multiple email addresses?
Andy Moran
amoran at apple.com
Thu Feb 22 02:04:32 CET 2007
Oh yech. I'll pass on that.
how about this one:
Is it possible to have a contact receive critical messages for all
services but warning messages ONLY for a particular service?
For example:
All services are set to notify on warning, critical, unknown, and
recovery.. Admins want to be only notified when any service goes
critical.. but they are also interested when a certain volume
check_disk goes into warning.
The only way I can figure out how to do that is to create a separate
contact definition for each admin (like jdoe2), put them in a group,
and say that group also wants warnings, and put that group in the
check_disk service definition instead of the normal admin group.
I'm hoping I'm missing something obvious.
--Andy
On Feb 21, 2007, at 3:49 PM, Marc Powell wrote:
>
>
>> -----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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2415 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070221/67bf97bb/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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