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: [EMAIL PROTECTED] [mailto:nagios- users-
[EMAIL PROTECTED] On Behalf Of Andy Moran
Sent: Wednesday, February 21, 2007 4:49 PM
To: [email protected]
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 [EMAIL PROTECTED] -c [EMAIL PROTECTED]
[EMAIL PROTECTED]
        }


--
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
[email protected]
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-------------------------------------------------------------------------
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
[email protected]
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

Reply via email to