<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>lack of notificatons when switching from WARNING to CRITICAL state?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>1) It seems that when a service goes from a WARNING to CRITICAL state, I'm not getting a notification. Basically, I would like warnings to go to opteam only, and criticals/unknowns to go to oncall only - which is how my current config is setup. Basically, for a warning, there's no reason to wake someone up in the middle of the night - it can be dealt with in the morning. But criticals should be sent to the oncall pager.</FONT></P>

<P><FONT SIZE=2>2) I'd also like the recovery messages to go to the correct group ONLY - warning recoveries to opteam only and critical recoveries to oncall only. Currently warning recoveries go to opteam, but critical recoveries go to opteam & oncall.</FONT></P>

<P><FONT SIZE=2>I have read the notifications document (<A HREF="http://nagios.sourceforge.net/docs/1_0/notifications.html" TARGET="_blank">http://nagios.sourceforge.net/docs/1_0/notifications.html</A>) and it seems that a switch from WARNING to CRITICAL would satisfy both conditions of "(1) a notification was already sent out about a problem with the host or service at some point in the past and (2) the host or service has remained in the same non-OK state that it was when the last notification went out." because WARNING and CRITICAL are NOT the same non-OK state.</FONT></P>

<P><FONT SIZE=2>Any help would be appreciated. For reference, my current config very similar to:</FONT>
<BR><FONT SIZE=2>(email addresses and cosmetic name changes made to prevent SPAM)</FONT>
</P>

<P><FONT SIZE=2>define service{</FONT>
<BR><FONT SIZE=2>        use                             generic-service         ; Name of service template to use</FONT>
</P>

<P><FONT SIZE=2>        host_name                       monitoring-server</FONT>
<BR><FONT SIZE=2>        service_description             CPU</FONT>
<BR><FONT SIZE=2>        is_volatile                     0</FONT>
<BR><FONT SIZE=2>        check_period                    24x7</FONT>
<BR><FONT SIZE=2>        max_check_attempts              3</FONT>
<BR><FONT SIZE=2>        normal_check_interval           5</FONT>
<BR><FONT SIZE=2>        retry_check_interval            1</FONT>
<BR><FONT SIZE=2>        contact_groups                  oncall</FONT>
<BR><FONT SIZE=2>        notification_interval           0</FONT>
<BR><FONT SIZE=2>        notification_period             24x7</FONT>
<BR><FONT SIZE=2>        notification_options            w,u,c,r</FONT>
<BR><FONT SIZE=2>        check_command                   check_cpu!90%!99%</FONT>
<BR><FONT SIZE=2>        }</FONT>
</P>

<P><FONT SIZE=2>define contactgroup{</FONT>
<BR><FONT SIZE=2>        contactgroup_name       oncall</FONT>
<BR><FONT SIZE=2>        alias                   On Call Pager</FONT>
<BR><FONT SIZE=2>        members                 oncall,opteam</FONT>
<BR><FONT SIZE=2>        }</FONT>
</P>

<P><FONT SIZE=2>define contact{</FONT>
<BR><FONT SIZE=2>        contact_name                    oncall</FONT>
<BR><FONT SIZE=2>        alias                           On Call Pager</FONT>
<BR><FONT SIZE=2>        service_notification_period     24x7</FONT>
<BR><FONT SIZE=2>        host_notification_period        24x7</FONT>
<BR><FONT SIZE=2>        service_notification_options    u,c,r</FONT>
<BR><FONT SIZE=2>        host_notification_options       d,u,r</FONT>
<BR><FONT SIZE=2>        service_notification_commands   notify-by-epager</FONT>
<BR><FONT SIZE=2>        host_notification_commands      host-notify-by-epager</FONT>
<BR><FONT SIZE=2>        email                           pager-email@domain.com</FONT>
<BR><FONT SIZE=2>        pager                           pager-email@domain.com</FONT>
<BR><FONT SIZE=2>        }</FONT>
</P>

<P><FONT SIZE=2>define contact{</FONT>
<BR><FONT SIZE=2>        contact_name                    opteam</FONT>
<BR><FONT SIZE=2>        alias                           Operations Group</FONT>
<BR><FONT SIZE=2>        service_notification_period     24x7</FONT>
<BR><FONT SIZE=2>        host_notification_period        24x7</FONT>
<BR><FONT SIZE=2>        service_notification_options    w,r</FONT>
<BR><FONT SIZE=2>        host_notification_options       d,u,r</FONT>
<BR><FONT SIZE=2>        service_notification_commands   notify-by-email</FONT>
<BR><FONT SIZE=2>        host_notification_commands      host-notify-by-email</FONT>
<BR><FONT SIZE=2>        email                           local-mailing-list@domain.com</FONT>
<BR><FONT SIZE=2>        pager                           local-mailing-list@domain.com</FONT>
<BR><FONT SIZE=2>        }</FONT>
</P>

<P><FONT SIZE=2>Thanks in advance!</FONT>
</P>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>"Computer science is as much about computers as</FONT>
<BR><FONT SIZE=2>        astronomy is about telescopes" -- Edsger Dijkstra</FONT>
<BR><FONT SIZE=2>---------------------------------------------------------</FONT>
<BR><FONT SIZE=2>Anthony Tonns, UNIX Administrator - atonns@mail.ivillage.com</FONT>
</P>

</BODY>
</HTML>