<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><!--
/* 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;
mso-style-priority:99;
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;
color:black;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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:#1F497D">Ok I seem to have sorted it by amending the first_notification setting
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">from:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">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>
}<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">to:<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">define hostescalation{<br>
host_name HOST<br>
first_notification 1<br>
last_notification 4<br>
notification_interval 15<br>
contact_groups servers sms<br>
escalation_options r<br>
}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Now I get SMS alerts if the 2<sup>nd</sup> notification is a recovery.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Doesn’t make sense to me as I now have 2 separate escalations both effective from N1 just with different D or R options but it works so hey-ho!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Andrew Thompson
<br>
<b>Sent:</b> 13 January 2012 10:37<br>
<b>To:</b> nagios-users@lists.sourceforge.net<br>
<b>Subject:</b> Nofification Anomaly<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<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>