<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=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1030" />
</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="Section1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Hi
</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Narasimha,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">The default notify command that’s being run is
</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">notify-host-by-email, which just uses /bin/mail to do the actual sending.  Can you use mail to send a test message from the command line?  If not, that’s your problem.</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">It may also be worth looking in your mail server’s logs; these will probably be somewhere like /var/log/mail or /var/log/maillog, and should indicate if a) the mail is being
 correctly send to your MTA, and b) whether or not the MTA has any problems delivering it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Ta,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">IR.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
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""> Narasimha Tadepalli [mailto:Narasimha.Tadepalli@pervasive.com]
<br>
<b>Sent:</b> 03 September 2009 22:28<br>
<b>To:</b> Nagios Plugin Help List<br>
<b>Subject:</b> Re: [Nagiosplug-help] Problem with Email Alerts<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Hi David<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What is the default command Nagios uses to send mail?.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I found some thing in log files like below.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[09-03-2009 21:25:02] Warning: The results of service 'Current Load' on host 'ec2-75-101-200-287.compute-1.amazonaws.com' are stale by 0d 0h 3m 7s (threshold=0d 0h 3m 15s). I'm forcing an immediate check of the service.<br clear="all">
</span><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" 
 o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" 
 stroked="f">
 <v:stroke joinstyle="miter" />
 <v:formulas>
  <v:f eqn="if lineDrawn pixelLineWidth 0" />
  <v:f eqn="sum @0 1 0" />
  <v:f eqn="sum 0 0 @1" />
  <v:f eqn="prod @2 1 2" />
  <v:f eqn="prod @3 21600 pixelWidth" />
  <v:f eqn="prod @3 21600 pixelHeight" />
  <v:f eqn="sum @0 0 1" />
  <v:f eqn="prod @6 1 2" />
  <v:f eqn="prod @7 21600 pixelWidth" />
  <v:f eqn="sum @8 21600 0" />
  <v:f eqn="prod @7 21600 pixelHeight" />
  <v:f eqn="sum @10 21600 0" />
 </v:formulas>
 <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
 <o:lock v:ext="edit" aspectratio="t" />
</v:shapetype><v:shape id="_x0000_s1026" type="#_x0000_t75" alt="Informational Message" 
 style='position:absolute;margin-left:0;margin-top:0;width:24pt;height:24pt;
 z-index:251658240;mso-wrap-distance-left:0;mso-wrap-distance-top:0;
 mso-wrap-distance-right:0;mso-wrap-distance-bottom:0;
 mso-position-horizontal:left;mso-position-horizontal-relative:text;
 mso-position-vertical-relative:line' o:allowoverlap="f">
 <v:imagedata src="cid:image001.png@01CA2D4D.6D367E60" o:title="image001" />
 <w:wrap type="square"/>
</v:shape><![endif]--><![if !vml]><img width="32" height="32" src="cid:image001.png@01CA2D4D.6D367E60" align="left" alt="Informational Message" v:shapes="_x0000_s1026"><![endif]><span lang="EN-US">[09-03-2009
 21:25:02] Warning: Contact 'nagiosadmin' host notification command '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\nHost: ec2-75-101-200-287.compute-1.amazonaws.com\nState: DOWN\nAddress: ec2-75-101-200-287.compute-1.amazonaws.com\nInfo:
 Name or service not known\n\nDate/Time: Thu Sept 3 21:24:31 UTC 2009\n" | /bin/mail -s "** PROBLEM Host Alert: ec2-75-101-200-287.compute-1.amazonaws.com is DOWN **" ntadepalli@pervasive.com' timed out after 30 seconds<br clear="all">
</span><!--[if gte vml 1]><v:shape id="_x0000_s1027" type="#_x0000_t75" alt="Host Notification" 
 style='position:absolute;margin-left:0;margin-top:0;width:24pt;height:24pt;
 z-index:251659264;mso-wrap-distance-left:0;mso-wrap-distance-top:0;
 mso-wrap-distance-right:0;mso-wrap-distance-bottom:0;
 mso-position-horizontal:left;mso-position-horizontal-relative:text;
 mso-position-vertical-relative:line' o:allowoverlap="f">
 <v:imagedata src="cid:image001.png@01CA2D4D.6D367E60" o:title="image001" />
 <w:wrap type="square"/>
</v:shape><![endif]--><![if !vml]><img width="32" height="32" src="cid:image001.png@01CA2D4D.6D367E60" align="left" alt="Host Notification" v:shapes="_x0000_s1027"><![endif]><span lang="EN-US">[09-03-2009
 21:24:59] HOST NOTIFICATION: nagiosadmin;ec2-75-101-200-287.compute-1.amazonaws.com;DOWN;notify-host-by-email;Name or service not known<br clear="all">
</span><!--[if gte vml 1]><v:shape id="_x0000_s1028" type="#_x0000_t75" alt="Informational Message" 
 style='position:absolute;margin-left:0;margin-top:0;width:24pt;height:24pt;
 z-index:251660288;mso-wrap-distance-left:0;mso-wrap-distance-top:0;
 mso-wrap-distance-right:0;mso-wrap-distance-bottom:0;
 mso-position-horizontal:left;mso-position-horizontal-relative:text;
 mso-position-vertical-relative:line' o:allowoverlap="f">
 <v:imagedata src="cid:image001.png@01CA2D4D.6D367E60" o:title="image001" />
 <w:wrap type="square"/>
</v:shape><![endif]--><![if !vml]><img width="32" height="32" src="cid:image001.png@01CA2D4D.6D367E60" align="left" alt="Informational Message" v:shapes="_x0000_s1028"><![endif]><span lang="EN-US">[09-03-2009
 21:24:59] Warning: Contact 'nagiosadmin' host notification command '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: $SERVICEDESC$\nHost: ec2-75-101-200-287.compute-1.amazonaws.com\nAddress: ec2-75-101-200-287.compute-1.amazonaws.com\nState:
 $SERVICESTATE$\n\nDate/Time: Thu Sept 3 21:24:28 UTC 2009\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** PROBLEM Service Alert: ec2-75-101-200-287.compute-1.amazonaws.com/$SERVICEDESC$ is $SERVICESTATE$ **" ntadepalli@pervasive.com' timed out after
 30 seconds<br clear="all">
</span><!--[if gte vml 1]><v:shape id="_x0000_s1029" type="#_x0000_t75" alt="Host Notification" 
 style='position:absolute;margin-left:0;margin-top:0;width:24pt;height:24pt;
 z-index:251661312;mso-wrap-distance-left:0;mso-wrap-distance-top:0;
 mso-wrap-distance-right:0;mso-wrap-distance-bottom:0;
 mso-position-horizontal:left;mso-position-horizontal-relative:text;
 mso-position-vertical-relative:line' o:allowoverlap="f">
 <v:imagedata src="cid:image001.png@01CA2D4D.6D367E60" o:title="image001" />
 <w:wrap type="square"/>
</v:shape><![endif]--><![if !vml]><img width="32" height="32" src="cid:image001.png@01CA2D4D.6D367E60" align="left" alt="Host Notification" v:shapes="_x0000_s1029"><![endif]><span lang="EN-US">[09-03-2009
 21:24:31] HOST NOTIFICATION: nagiosadmin;ec2-75-101-200-287.compute-1.amazonaws.com;DOWN;notify-host-by-email;Name or service not known<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2"><br>
Private and Confidential: This e-mail transmission is strictly confidential and intended solely for the addressee. It may contain privileged and confidential information and if you are not the intended recipient, you must not copy, disclose, distribute or take
 any action in reliance on it. If you have received this e-mail in error, please delete it and notify our E-mail Systems Administrator on +44 (0) 131 624 8000. ESPC (UK) Ltd does not accept any liability for any harm that may be caused to the recipient's system
 or data by this message or any attachment.<br>
<br>
ESPC (UK) Ltd is a company registered under the Companies Acts in Scotland (Registered Number SC203585), and having its registered office at 90A George Street, Edinburgh, Midlothian EH2 3DF.<br>
<br>
ESPC (UK) Ltd is an Appointed Representative of Accord Consultancy which is authorised and regulated by the Financial Services Authority.<br>
</font>
</body>
</html>