<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body 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>
<br>
Thanks,<br>
Neil<br>
<pre class="moz-signature" cols="80">--
Neil Dombrowski
Linux Administration
Pricegrabber.com
AIM: neilatpg
</pre>
</body>
</html>