I added some checks, the check_sendmail being one of them. <br><br>I've also successfully executed the following from the command line (as nagios user) :<br><br>/usr/bin/printf "%b" "***** Nagios 2.9 *****\n\nNotification Type: NOTIFICATIONTYPE\nHost: HOSTNAME\nState: HOSTSTATE\nAddress: HOSTADDRESS\nInfo: HOSTOUTPUT\n\nDate/Time: NOW\n" | /bin/mail -s "Host DOWN alert for testmachine" (address obfuscated)
<br><br><br>mail is working on the machine. I'm getting absolutely no NOTIFICATION entries in the logs (nagios.log) so the nagios server isn't even trying to send 'em out. That's the part that perplexes me. 
<br><br>TIA<br>G.~<br><br><br><br><br><div><span class="gmail_quote">On 5/16/07, <b class="gmail_sendername">Valdinger, Stephen (DOV, MSX)</b> <<a href="mailto:stephen.valdinger@doverchem.com">stephen.valdinger@doverchem.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">















<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Have any configuration changes been made
to the system since yesterday that you are aware of?  Because on the day it
worked your logs show nothing about sendmail, and on the day it stopped working
sendmail shows up in the log. That leaves me to believe there is something
fishy with the mail piece and not nagios itself. Try emailing yourself thru the
terminal with both mail and sendmail and see with works and also in your
notify-host-by-email add /usr/sbin/mail and see if works then.</span></font></p>

<div>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"> </span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">Stephen Valdinger</span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">MIS Helpdesk Coordinator</span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">Dover Chemical Corporation</span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">3676 Davis Rd NW</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">Dover</span></font><font color="navy"><span style="color: navy;">, OH 44622</span></font><font color="navy"><span style="color: navy;">
</span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">330-365-3622</span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"><a href="mailto:stephen.valdinger@doverchem.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">stephen.valdinger@doverchem.com
</a></span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"> </span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;">  "Ever notice how fast Windows
runs ?<br>
— Neither did I."</span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"> </span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"> "If at first you don't succeed,
work for Microsoft."</span></font></p>

</div>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Gary Every
[mailto:<a href="mailto:gevery@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gevery@gmail.com</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Wednesday, May 16, 2007 2:32
PM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users@lists.sourceforge.net</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [Nagios-users] Hosts and
services not sending mail</span></font></p>

</div><div><span class="e" id="q_1129630be069ba8e_1">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I'm pretty sure I've got
everything set up correctly, as yesterday I was getting notifications sent out,
and today there are none going out. <br>
<br>
I've added some services that I knew would go critical, and started watching
nagios.log. Here is a snippet from yesterdays log<br>
<br>
[1179271433] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_SVC_CHECKS;devstack01;1179271433<br>
[1179271440] EXTERNAL COMMAND:
SCHEDULE_FORCED_HOST_SVC_CHECKS;devstack02;1179271440 <br>
[1179271445] HOST ALERT: devstack01;DOWN;SOFT;1;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271448] HOST ALERT: devstack01;DOWN;SOFT;2;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> 10.0.0.160</a>)<br>
[1179271451] HOST ALERT: devstack01;DOWN;SOFT;3;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271451] EXTERNAL COMMAND:
SCHEDULE_FORCED_HOST_SVC_CHECKS;ilom-cp1;1179271449 <br>
[1179271454] HOST ALERT: devstack01;DOWN;SOFT;4;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271457] HOST ALERT: devstack01;DOWN;SOFT;5;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> 10.0.0.160</a>)<br>
[1179271460] HOST ALERT: devstack01;DOWN;SOFT;6;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271460] EXTERNAL COMMAND: SCHEDULE_FORCED_HOST_SVC_CHECKS;ilom-cp2;1179271459
<br>
[1179271463] HOST ALERT: devstack01;DOWN;SOFT;7;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271466] HOST ALERT: devstack01;DOWN;SOFT;8;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> 10.0.0.160</a>)<br>
[1179271469] HOST ALERT: devstack01;DOWN;SOFT;9;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271469] EXTERNAL COMMAND:
SCHEDULE_FORCED_HOST_SVC_CHECKS;ilom-cp3;1179271467 <br>
[1179271472] HOST ALERT: devstack01;DOWN;HARD;10;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271472] HOST NOTIFICATION:
lbeavers-pager;devstack01;DOWN;host-notify-by-epager;CRITICAL - Host
Unreachable ( <a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271472] HOST NOTIFICATION:
lbeavers;devstack01;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271472] HOST NOTIFICATION:
gpoly-pager;devstack01;DOWN;host-notify-by-epager;CRITICAL - Host Unreachable (
<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271472] HOST NOTIFICATION:
gpoly;devstack01;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (<a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
[1179271472] SERVICE ALERT: devstack01;ping;CRITICAL;HARD;1;CRITICAL - Host
Unreachable ( <a href="http://10.0.0.160" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.0.0.160</a>)<br>
<br clear="all">
-------------------------------------------<br>
As you can see, host notifications are being sent out<br>
<br>
Today's log:<br>
<br>
--------------------------------------------------- <br>
[1179337965] EXTERNAL COMMAND:
SCHEDULE_FORCED_SVC_CHECK;contactpoint3;var_disk;1179337960<br>
[1179337974] SERVICE ALERT: contactpoint3;var_disk;UNKNOWN;SOFT;1;SNMP problem
- No data received from host<br>
[1179338034] SERVICE ALERT: contactpoint3;var_disk;UNKNOWN;SOFT;2;SNMP problem
- No data received from host <br>
[1179338094] SERVICE ALERT: contactpoint3;var_disk;UNKNOWN;HARD;3;SNMP problem
- No data received from host<br>
[1179338408] EXTERNAL COMMAND:
SCHEDULE_FORCED_SVC_CHECK;contactpoint3;sendmail_check;1179338407<br>
[1179338414] SERVICE ALERT:
contactpoint3;sendmail_check;CRITICAL;SOFT;1;sendmail Processes CRITICAL - *0* <br>
[1179338474] SERVICE ALERT:
contactpoint3;sendmail_check;CRITICAL;SOFT;2;sendmail Processes CRITICAL - *0*<br>
[1179338484] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;contactpoint3;sendmail_check;1179338481<br>
[1179338494] SERVICE ALERT:
contactpoint3;sendmail_check;CRITICAL;HARD;3;sendmail Processes CRITICAL - *0* <br>
[1179338604] Warning: The results of service 'ping' on host 'contactpoint4' are
stale by 45 seconds (threshold=615 seconds).  I'm forcing an immediate
check of the service.<br>
[1179338604] Warning: The results of service 'sendmail_check' on host
'contactpoint4' are stale by 45 seconds (threshold=615 seconds).  I'm
forcing an immediate check of the service. <br>
[1179338604] Warning: The results of service 'ping' on host 'contactpoint5' are
stale by 45 seconds (threshold=61<br>
<br>
--------------------------<br>
<br>
As can be seen, it went thru the three criticals, went to CRIT HARD, but no
NOTIFICATIONS were sent, it just continued looking at other services. <br>
<br>
<br>
<br>
I've got <br>
enable_notifications=1 set in nagios.cfg<br>
In services.cfg, I've got:<br>
notification_period            
24x7<br>
notifications_enabled          
1       ; Service notifications are enabled<br>
notification_interval          
15      ; Default interval - change only if needed in
the service config<br>
<br>
and the web frontend reports ALL notifications enabled.<br>
<br>
</span></font></p>

<table border="0" cellpadding="0" cellspacing="4">
 <tbody><tr height="20">
  <td colspan="5" style="padding: 0in;" height="20">
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> Monitoring Features</span></font></p>
  </td>
 </tr>
 <tr>
  <td style="padding: 0in; width: 101.25pt;" width="135">
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Flap Detection</span></font></p>
  </td>
  <td style="padding: 0in; width: 101.25pt;" width="135">
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Notifications</span></font></p>
  </td>
  <td style="padding: 0in; width: 101.25pt;" width="135">
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Event Handlers</span></font></p>
  </td>
  <td style="padding: 0in; width: 101.25pt;" width="135">
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Active Checks</span></font></p>
  </td>
  <td style="padding: 0in; width: 101.25pt;" width="135">
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Passive Checks</span></font></p>
  </td>
 </tr>
 <tr>
  <td style="padding: 0in;" valign="top">
  <table style="width: 101.25pt;" border="0" cellpadding="0" cellspacing="0" width="135">
   <tbody><tr>
    <td style="padding: 0in;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><a href="http://nagios.quepasa.com/nagios/cgi-bin/cmd.cgi?cmd_typ=62" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><span style="text-decoration: none;">
<img alt="Flap Detection Enabled" title="Flap Detection Enabled" border="0" height="32" width="32"></span></a></span></font></p>
    </td>
    <td style="padding: 0in; width: 7.5pt;" width="10">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
    </td>
    <td style="padding: 0in; width: 100%;" valign="top" width="100%">
    <table style="width: 100%;" border="0" cellpadding="0" width="100%">
     <tbody><tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">All Services Enabled</span></font></p>
      </td>
     </tr>
     <tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">No Services Flapping</span></font></p>
      </td>
     </tr>
     <tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">All Hosts Enabled</span></font></p>
      </td>
     </tr>
     <tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">No Hosts Flapping</span></font></p>
      </td>
     </tr>
    </tbody></table>
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
  <td style="padding: 0in;" valign="top">
  <table style="width: 101.25pt;" border="0" cellpadding="0" cellspacing="0" width="135">
   <tbody><tr>
    <td style="padding: 0in;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><a href="http://nagios.quepasa.com/nagios/cgi-bin/cmd.cgi?cmd_typ=11" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><span style="text-decoration: none;">
<img alt="Notifications Enabled" title="Notifications Enabled" border="0" height="32" width="32"></span></a></span></font></p>
    </td>
    <td style="padding: 0in; width: 7.5pt;" width="10">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
    </td>
    <td style="padding: 0in; width: 100%;" valign="top" width="100%">
    <table style="width: 100%;" border="0" cellpadding="0" width="100%">
     <tbody><tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">All Services Enabled</span></font></p>
      </td>
     </tr>
     <tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">All Hosts Enabled</span></font></p>
      </td>
     </tr>
    </tbody></table>
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
  <td style="padding: 0in;" valign="top">
  <table style="width: 101.25pt;" border="0" cellpadding="0" cellspacing="0" width="135">
   <tbody><tr>
    <td style="padding: 0in;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><a href="http://nagios.quepasa.com/nagios/cgi-bin/cmd.cgi?cmd_typ=42" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><span style="text-decoration: none;">
<img alt="Event Handlers Enabled" title="Event Handlers Enabled" border="0" height="32" width="32"></span></a></span></font></p>
    </td>
    <td style="padding: 0in; width: 7.5pt;" width="10">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
    </td>
    <td style="padding: 0in; width: 100%;" valign="top" width="100%">
    <table style="width: 100%;" border="0" cellpadding="0" width="100%">
     <tbody><tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">All Services Enabled</span></font></p>
      </td>
     </tr>
     <tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">All Hosts Enabled</span></font></p>
      </td>
     </tr>
    </tbody></table>
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
  <td style="padding: 0in;" valign="top">
  <table style="width: 101.25pt;" border="0" cellpadding="0" cellspacing="0" width="135">
   <tbody><tr>
    <td style="padding: 0in;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><a href="http://nagios.quepasa.com/nagios/cgi-bin/extinfo.cgi?type=0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><span style="text-decoration: none;">
<img alt="Active Checks Enabled" title="Active Checks Enabled" border="0" height="32" width="32"></span></a></span></font></p>
    </td>
    <td style="padding: 0in; width: 7.5pt;" width="10">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
    </td>
    <td style="padding: 0in; width: 100%;" valign="top" width="100%">
    <table style="width: 100%;" border="0" cellpadding="0" width="100%">
     <tbody><tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">All Services Enabled</span></font></p>
      </td>
     </tr>
     <tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">All Hosts Enabled</span></font></p>
      </td>
     </tr>
    </tbody></table>
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
  <td style="padding: 0in;" valign="top">
  <table style="width: 101.25pt;" border="0" cellpadding="0" cellspacing="0" width="135">
   <tbody><tr>
    <td style="padding: 0in;" valign="top">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><a href="http://nagios.quepasa.com/nagios/cgi-bin/extinfo.cgi?type=0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><span style="text-decoration: none;">
<img alt="Passive Checks Enabled" title="Passive Checks Enabled" border="0" height="32" width="32"></span></a></span></font></p>
    </td>
    <td style="padding: 0in; width: 7.5pt;" width="10">
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
    </td>
    <td style="padding: 0in; width: 100%;" valign="top" width="100%">
    <table style="width: 100%;" border="0" cellpadding="0" width="100%">
     <tbody><tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">All Services Enabled</span></font></p>
      </td>
     </tr>
     <tr>
      <td style="padding: 0.75pt; width: 100%;" width="100%">
      <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">All Hosts Enabled</span></font></p>
      </td>
     </tr>
    </tbody></table>
    <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
    </td>
   </tr>
  </tbody></table>
  <p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font></p>
  </td>
 </tr>
</tbody></table>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
Any idea where else to check???? I've deleted my retention file and restarted
nagios as well <br>
Pulling my hair out here<br>
<br>
G.~<br>
<br>
<br>
-- <br>
Gary Every<br>
"Pay it Forward!"</span></font></p>

</span></div></div>

</div>


</blockquote></div><br><br clear="all"><br>-- <br>Gary Every<br>"Pay it Forward!"<br>