<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style id="owaParaStyle"><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif";}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.spelle
        {mso-style-name:spelle;}
span.grame
        {mso-style-name:grame;}
span.EmailStyle22
        {mso-style-type:personal-compose;
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:black">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">I have a strange notification problem that I
<span class="grame">cant</span> seem to get to the bottom of.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">In a nut shell I am using escalations to limit the amount of notifications for any given host to 5.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Host Down notification 1 comes via form of Email and Text<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Then I have <span class="grame">Not</span> 2-5 if down to come via email<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">If it recovers between 2-5 it will email and text.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">The email works fine in all scenarios but I have a text message issue in the sense it doesn’t send out a text message if notification 2 is a recovery text!
<span class="spelle">Nagios</span> doesn’t even seem to run <span class="grame">the notify</span> by SMS command!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Any other notification number is fine but just not notification number 2 being a recovery text!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">I know above is a bit gargled so an example of my following notification escalations may make it a bit clearer.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">#############################################################<br>
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#<br>
#                                                                                                                                                            #<br>
# HOST ESCALATIONS                                                                                                                   #<br>
#                                                                                                                                                            #<br>
# Use escalations to limit the amount of email and text message alerts that        #<br>
# are recieved for hosts in a problem state                                                                         #<br>
#                                                                                                                                                            #<br>
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#<br>
#############################################################<br>
<br>
<br>
<br>
########################################################<br>
#                                                            OFFICE SERVERS                                                   #<br>
########################################################<br>
<br>
define hostescalation{<br>
    host_name                    HOST<br>
    first_notification            1<br>
    last_notification            4<br>
    notification_interval      15<br>
    contact_groups            servers email<br>
    escalation_options        d,r<br>
    }<br>
<br>
define hostescalation{<br>
    host_name                    HOST<br>
    first_notification             5<br>
    last_notification              0<br>
    notification_interval        0<br>
    contact_groups            servers email<br>
    escalation_options        d,r<br>
    }<br>
<br>
define hostescalation{<br>
    host_name                    HOST<br>
    first_notification             1<br>
    last_notification              1<br>
    notification_interval        15<br>
    contact_groups            servers sms<br>
    escalation_options        d<br>
    }<br>
<br>
define hostescalation{<br>
    host_name                    HOST<br>
    first_notification            2<br>
    last_notification            4<br>
    notification_interval      15<br>
    contact_groups            servers sms<br>
    escalation_options        r<br>
    }<br>
<br>
define hostescalation{<br>
    host_name                   HOST<br>
    first_notification            5<br>
    last_notification            0<br>
    notification_interval      0<br>
    contact_groups            servers sms<br>
    escalation_options        r<br>
    }<br>
<br>
<br>
#############################################################<br>
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#<br>
#                                                                                                                                                            #<br>
# SERVICE ESCALATIONS                                                                                                              #<br>
#                                                                                                                                                            #<br>
# Use escalations to limit the amount of email and text message alerts that        #<br>
# are recieved for services in a problem state                                                                    #<br>
#                                                                                                                                                            #<br>
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#<br>
#############################################################<br>
<br>
<br>
<br>
###################################################<br>
#                                            OFFICE SERVERS                                                      #<br>
###################################################<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">define serviceescalation{<br>
    host_name                    HOST<br>
    service_description        PING<br>
    first_notification            1<br>
    last_notification            4<br>
    notification_interval      15<br>
    contact_groups            servers email<br>
    escalation_options        c,r<br>
    }<br>
<br>
define serviceescalation{<br>
    host_name                    HOST<br>
    service_description        PING<br>
    first_notification            5<br>
    last_notification            0<br>
    notification_interval      0<br>
    contact_groups            servers email<br>
    escalation_options        c,r<br>
    }<br>
<br>
define serviceescalation{<br>
    host_name                    HOST<br>
    service_description        PING<br>
    first_notification            1<br>
    last_notification            1<br>
    notification_interval      15<br>
    contact_groups            servers sms<br>
    escalation_options        c<br>
    }<br>
<br>
define serviceescalation{<br>
    host_name                    HOST<br>
    service_description        PING<br>
    first_notification            2<br>
    last_notification            4<br>
    notification_interval      15<br>
    contact_groups            servers sms<br>
    escalation_options        r<br>
    }<br>
<br>
define serviceescalation{<br>
    host_name                    HOST<br>
    service_description        PING<br>
    first_notification            5<br>
    last_notification            0<br>
    notification_interval      0<br>
    contact_groups            servers sms<br>
    escalation_options        r<br>
    }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Notification 1 – DOWN – Text and Email ok<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Notification 2 – DOWN – Email ok. UP – Email ok, NO text<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Notification 3 – DOWN – Email ok. UP – Email and text ok<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Notification 4 – DOWN – Email ok. UP – Email and text ok<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Notification 5 – DOWN – Email ok. UP – Email and text ok<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Notification X – UP – Email and text ok<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">I have these escalations in place so I only receive a text message for the 1<sup>st</sup> notification to say a host is down and then I only want another text when the host recovers.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">A visual of the notifications from the Nagios web GUI can be found at this link<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><a href="http://dl.dropbox.com/u/895609/New%20Nagios%20host%20output.doc">http://dl.dropbox.com/u/895609/New%20Nagios%20host%20output.doc</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">The numbers represent what I am above referring to as Notification 1, notification2 etc etc<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">It does this to all of my hosts that I monitor (86 currently)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">Anybody any idea as to why if the second notification is a recovery it Nagios refuses to run the notify by text command?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
</body>
</html>