differing notifications

Israel Brewster israel at frontierflying.com
Wed May 20 23:51:18 CEST 2009




On May 20, 2009, at 10:39 AM, Neil Dombrowski wrote:

>
>
> RijilV wrote:
>>
>> 2009/5/20 Neil Dombrowski <neil at pricegrabber.com>:
>>
>>> I haven't been able to find an answer to this conundrum looking at  
>>> the
>>> docs, faq, or googling. I'd love to hear any suggestions.
>>>
>>>
>>> We have two contact groups; group "adminmail" sends an email to our
>>> mailboxes and "adminphone" sends email to our phones. The idea is  
>>> when a
>>> "warning" notification happens, adminmail gets notified, and when a
>>> "critical" notification happens adminphone gets notified.
>>>
>>> As a test I set up two services that check disk. For the first one  
>>> I set:
>>> notification_options w,r
>>> contact_group         adminmail
>>>
>>> For the second service I set:
>>> notification_options  c
>>> contact_group         adminphone
>>>
>>> This works, but it's kludgy.  Is there a way to define one  
>>> contact_group
>>> for a warning, and a different contact group for critical? We are
>>> currently running v1.2(yes, old), but will be upgrading  
>>> eventually. I'd
>>> like to know if there's a solution I can implement now; if we need  
>>> to
>>> upgrade to get this functionality I'd like to know as well.
>>>
>>> Thanks,
>>>    Neil
>>>
>>>
>>>
>>
>> http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contact
>>
>> Just setup two contacts, one for adminmail that gets warnings, the
>> other for adminphone that gets crits.  Add them to the same
>> contract_group, then add that contact group to your service check.
>> This style/syntax hasn't changed really, save for in nagios 3.x you
>> don't need the contact group if you don't want it.
>>
>>
>> .r'
>>
> So, basically you're saying to put both contact_groups (adminmail  
> and adminphone) into a third contact_group, then use that  
> contact_group in the service?  How would I then make warning  
> notifications go only to adminmail, and critical notifications go  
> only to adminphone?

No, in the individual contacts you can define what sort of  
notifications that individual contact receives, using the  
host_notification_options [d,u,r,f,s,n] and  
service_notification_options [w,u,c,r,f,s,n] directives of the  
contact. So what you do is make two contacts (not groups, but  
individual contacts), specifying that adminmail only receives warning  
(not critical) and adminphone only receives critical (not warning).  
Add both contacts to a single contact group, add that contact group to  
the host, and specify that the host send both critical and warning  
notifications. Due to the filters in the contacts, each contact will  
only receive the appropriate types. If you have more people you need  
to contact, just make more contacts for each person, keeping the phone  
contacts and the mail contacts separate.

-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------


>
> Thanks,
>     Neil
> -- 
> Neil Dombrowski
> Linux Administration
> Pricegrabber.com
> AIM: neilatpg
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects_______________________________________________
> 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 --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090520/53c52e04/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
-------------- 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