<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"></span></span></div></span></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On May 20, 2009, at 10:39 AM, Neil Dombrowski wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div bgcolor="#ffffff" text="#000000"> <br> <br> RijilV wrote: <blockquote cite="mid:5068c6420905201122r8b49b7dw99069401e2c9c925@mail.gmail.com" type="cite">  <pre wrap="">2009/5/20 Neil Dombrowski <a class="moz-txt-link-rfc2396E" href="mailto:neil@pricegrabber.com"><neil@pricegrabber.com></a>:
  </pre>  <blockquote type="cite">    <pre wrap="">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


    </pre>  </blockquote>  <pre wrap=""><!---->
<a class="moz-txt-link-freetext" href="http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contact">http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contact</a>

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'
  </pre> </blockquote> 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?<br></div></blockquote><div><br></div><div>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.</div><span class="Apple-style-span" style="font-family: verdana; font-size: 11px; "></span><div><br></div><div><div>-----------------------------------------------</div><div>Israel Brewster</div><div>Computer Support Technician II</div><div>Frontier Flying Service Inc.</div><div>5245 Airport Industrial Rd</div><div>Fairbanks, AK 99709</div><div>(907) 450-7250 x293</div><div>-----------------------------------------------</div><div><br></div></div><br><blockquote type="cite"><div bgcolor="#ffffff" text="#000000"> <br> Thanks,<br>     Neil<br> <pre class="moz-signature" cols="80">-- 
Neil Dombrowski
Linux Administration
Pricegrabber.com
AIM: neilatpg
</pre> </div>  ------------------------------------------------------------------------------<br>Crystal Reports - New Free Runtime and 30 Day Trial<br>Check out the new simplified licensing option that enables <br>unlimited royalty-free distribution of the report engine <br>for externally facing server and web deployment. <br><a href="http://p.sf.net/sfu/businessobjects_______________________________________________">http://p.sf.net/sfu/businessobjects_______________________________________________</a><br>Nagios-users mailing list<br>Nagios-users@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/nagios-users<br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null</blockquote></div><br></body></html>