<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: [Nagios-users] Nagios do not send e.mails</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1555" name=GENERATOR></HEAD>
<BODY>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><SPAN
class=629205501-01082006></SPAN><FONT face=Tahoma>Y<SPAN
class=629205501-01082006>es, Mike ,</SPAN></FONT></DIV><FONT face=Tahoma><SPAN
class=629205501-01082006></SPAN></FONT></BLOCKQUOTE>
<BLOCKQUOTE><FONT><SPAN class=629205501-01082006></SPAN>
<DIV class=OutlookMessageHeader dir=ltr align=left><SPAN
class=629205501-01082006></SPAN><FONT face=Tahoma>I<SPAN
class=629205501-01082006>n</SPAN><SPAN class=629205501-01082006> the
nagios.cfg there is a line config like this :</SPAN></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><SPAN
class=629205501-01082006>enable_notifications=1</SPAN></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><SPAN
class=629205501-01082006></SPAN></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><SPAN
class=629205501-01082006>Is this right ?</SPAN></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><SPAN
class=629205501-01082006></SPAN></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><SPAN
class=629205501-01082006>Thanks for your cooperation</SPAN></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><SPAN
class=629205501-01082006></SPAN></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><SPAN
class=629205501-01082006></SPAN><BR></FONT><FONT size=2><FONT
face=Tahoma><SPAN class=629205501-01082006>[Marcos
Marinho] </SPAN>-----Mensagem original-----<BR><B>De:</B> Mike
Koponick [mailto:mkoponick@redhawk.info]<BR><B>Enviada em:</B> segunda-feira,
31 de julho de 2006 18:58<BR><B>Para:</B> marcos.marinho@rac.com.br;
nagios-users@lists.sourceforge.net<BR><B>Assunto:</B> RE: [Nagios-users]
Nagios do not send e.mails<BR><BR></DIV></FONT></FONT><!-- Converted from text/rtf format -->
<P align=left><SPAN lang=en-us><FONT face=Arial color=#0000ff>Are
notifications turned on in the nagios.cfg file?</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
color=#0000ff>Mike</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN
lang=en-us></SPAN></P>
<UL>
<UL>
<P align=left><SPAN lang=en-us><FONT face=Tahoma size=2>-----Original
Message-----<BR></FONT></SPAN><SPAN lang=en-us><B></B></SPAN><SPAN
lang=en-us><B><FONT face=Tahoma size=2>From:</FONT></B></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us><FONT face=Tahoma size=2>
nagios-users-bounces@lists.sourceforge.net [<A
href="mailto:nagios-users-bounces@lists.sourceforge.net">mailto:nagios-users-bounces@lists.sourceforge.net</A>]</FONT></SPAN><SPAN
lang=en-us><B></B></SPAN><SPAN lang=en-us><B> <FONT face=Tahoma size=2>On
Behalf Of</FONT></B></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us> <FONT
face=Tahoma size=2>Marcos Marinho<BR></FONT></SPAN><SPAN
lang=en-us><B></B></SPAN><SPAN lang=en-us><B><FONT face=Tahoma
size=2>Sent:</FONT></B></SPAN><SPAN lang=en-us></SPAN><SPAN
lang=en-us><FONT face=Tahoma size=2> Monday, July 31, 2006 2:57
PM<BR></FONT></SPAN><SPAN lang=en-us><B></B></SPAN><SPAN
lang=en-us><B><FONT face=Tahoma size=2>To:</FONT></B></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us><FONT face=Tahoma size=2>
nagios-users@lists.sourceforge.net<BR></FONT></SPAN><SPAN
lang=en-us><B></B></SPAN><SPAN lang=en-us><B><FONT face=Tahoma
size=2>Subject:</FONT></B></SPAN><SPAN lang=en-us></SPAN><SPAN
lang=en-us><FONT face=Tahoma size=2> [Nagios-users] Nagios do not send
e.mails</FONT></SPAN><SPAN lang=en-us></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>I had installed the
version 2.4 by binary way and we had using NagiosQL to
configure.</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>The servers had
been monitored ok </FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>In all time that
nagios was installed here none of the serves had not been down any
moment</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>On the first server
down one, the nagios process did not send any e.mail using the
pre-configured scritp host-notify-by-email.</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>Whe I had tried
runnig the script using user nagios the message was sent with no
problem.</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>This is what is
showed in nagio.log</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>[1154056710] HOST
ALERT: marcos;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10
seconds</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>[1154056720] HOST
ALERT: marcos;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10
seconds</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>[1154056730] HOST
ALERT: marcos;DOWN;SOFT;3;CRITICAL - Plugin timed out after 10
seconds</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>[1154056740] HOST
ALERT: marcos;DOWN;SOFT;4;CRITICAL - Plugin timed out after 10
seconds</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>[1154056750] HOST
ALERT: marcos;DOWN;HARD;5;CRITICAL - Plugin timed out after 10
seconds</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>This is our
configuration files</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>================================================================</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>define host
{</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
host_name
marcos</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
alias
Workstation Marcos</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
address
10.10.21.18</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
parents
Debian</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
check_command
check-host-alive</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
max_check_attempts
5</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
check_interval
10</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
active_checks_enabled
1</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
passive_checks_enabled
1</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
check_period
24x7</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
obsess_over_host
1</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
check_freshness
1</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
freshness_threshold
360</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
event_handler_enabled
0</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
flap_detection_enabled
0</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
process_perf_data
1</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
retain_status_information
1</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
retain_nonstatus_information 1</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
contact_groups
admins</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
notification_interval
5</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
notification_period
24x7</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
notification_options
d,u</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
notifications_enabled
1</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
stalking_options
d,u</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
register
1</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2> }</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>================================================================</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>define
command {</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
command_name host-notify-by-email</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
command_line /usr/bin/printf \\"%b\\" \\"***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
$LONGDATETIME$\n\\" | /usr/bin/mail -s \\"Host $HOSTSTATE$ alert for
$HOSTNAME$!\\" $CONTACTEMAIL$</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2> }</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>================================================================</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>define
contactgroup {</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
contactgroup_name
admins</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
alias
Nagios Administrators</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
members
redes</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2> }</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>================================================================</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>define
contact {</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
contact_name
redes</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
alias
Grupo Redes</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
host_notification_period
24x7</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
service_notification_period 24x7</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
host_notification_options
d,u,r</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
service_notification_options w,u,c,r</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
host_notification_commands
host-notify-by-email</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
service_notification_commands
notify-by-email</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>
email
marcos.marinho@dominio.com.br</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2> }</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial
size=2>================================================================</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>Any
hints</FONT></SPAN></P>
<P align=left><SPAN lang=en-us><FONT face=Arial size=2>Thank you before
hands << File: ATT350909.txt >> << File:
ATT350911.txt >></FONT></SPAN><SPAN lang=en-us></SPAN><SPAN
lang=en-us> </SPAN></P></UL></UL></BLOCKQUOTE></BODY></HTML>