differing notifications

Neil Dombrowski neil at pricegrabber.com
Wed May 20 20:39:38 CEST 2009



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?

Thanks,
    Neil

-- 
Neil Dombrowski
Linux Administration
Pricegrabber.com
AIM: neilatpg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090520/ccd5bfd2/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- 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