<DIV><PRE><TT><SPAN lang=EN-GB style="COLOR: black">I am having problems in getting emails when things go wrong either <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black">with hosts and with Services. I would be very grateful if someone could help me.<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> I do not know if the problem comes from configuration or whatever.<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> I will send you some of my configuration files. I am not sure if they <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black">are all the files I have to configure. If you can send me also the configuration of</SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black">/etc/mail/sendmail.mc. I suppose th
 at I am missing some configuration file</SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR:
 black">but I do not know which. How has to be defined the mail server? I think that </SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black">I am failing in that way. Please help!!</SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black">If some files or some configuration is wrong please tell me.<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN style="COLOR: black; mso-ansi-language: ES"> define contact{<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN style="COLOR: black; mso-ansi-language: ES"><SPAN style="mso-spacerun: yes">      </SPAN>contact_name<SPAN style="mso-spacerun: yes">                        </SPAN>ane<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN style="COLO
 R: black; mso-ansi-language: ES"><SPAN style="mso-spacerun: yes">     
 </SPAN>alias<SPAN style="mso-spacerun: yes">                    </SPAN><SPAN style="mso-spacerun: yes">    </SPAN>trabajadora<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>service_notification_period<SPAN style="mso-spacerun: yes">                        </SPAN>24x7<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>host_notification_period<SPAN style="mso-spacerun: yes">                 
        </SPAN>24x7<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN
 lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>service_notification_options<SPAN style="mso-spacerun: yes">                        </SPAN>w,u,c,r<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>host_notification_options<SPAN style="mso-spacerun: yes">                      </SPAN><SPAN style="mso-spacerun: yes">  </SPAN>d,u,r<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>service_notification_commands<SPAN style="mso
 -spacerun:
 yes">                        </SPAN>notify-by-email,notify-by-epager<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>host_notification_commands<SPAN style="mso-spacerun: yes">                  </SPAN>host-notify-by-email,host-notify-by-epager <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>email<SPAN style="mso-spacerun: yes">                        </SPAN><A
 href="http://es.f501.mail.yahoo.com/ym/Compose?To=anetelleria@yahoo.es&YY=42230&order=down&sort=date&pos=0"><FONT color=#003399>anetelleria@yahoo.es</FONT></A><o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>pager<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> }<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> define contactgroup{<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>contactgroup_name<SPAN style="mso-spacerun: yes">                    &
 nbsp;      </SPAN>eskola<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN
 lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>alias<SPAN style="mso-spacerun: yes">                           </SPAN>administaradores<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>members<SPAN style="mso-spacerun: yes">                        </SPAN>ane <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> <o:p></o:p></SPAN></TT></PRE><PRE><TT><SP
 AN lang=EN-GB style="COLOR: black"> define host{<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN
 lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>name<SPAN style="mso-spacerun: yes">                        </SPAN>generic_host<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>notifications_enabled<SPAN style="mso-spacerun: yes">                        </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>event_handlers_enabled<SPAN style="mso-spacerun: yes">         &nb
 sp;             
 </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>flap_detection_enabled<SPAN style="mso-spacerun: yes">         </SPAN><SPAN style="mso-spacerun: yes">               </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>process_perf_data<SPAN style="mso-spacerun: yes">                        </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>retain_status_inf
 ormation<SPAN style="mso-spacerun:
 yes">                        </SPAN>1<SPAN style="mso-spacerun: yes">                      </SPAN><o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>retain_nonstatus_information<SPAN style="mso-spacerun: yes">                        </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>register<SPAN style="mso-spacerun:
 yes">                        </SPAN>0 <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> define host{<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>use<SPAN style="mso-spacerun: yes">                        </SPAN>generic_host<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN style="COLOR: black; mso-ansi-language: ES"><SPAN style="mso-spacerun:
  yes">      </SPAN>host_name<SPAN style="mso-spacerun:
 yes">                        </SPAN>servidor_correo<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN style="COLOR: black; mso-ansi-language: ES"><SPAN style="mso-spacerun: yes">      </SPAN>alias<SPAN style="mso-spacerun: yes">                        </SPAN>equipo_personal<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>address<SPAN style="mso-spacerun: yes">                        </SPAN>172.170.10.36<o:p></o:p></SPAN></TT></PRE><PRE
 ><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun:
 yes">      </SPAN>check_command<SPAN style="mso-spacerun: yes">                        </SPAN>check_host_aliove<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>max_check_attempts<SPAN style="mso-spacerun: yes">                        </SPAN>10<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>notification_interval<SPAN style="mso-spacerun: yes">                 &nb
 sp;      </SPAN>120<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB
 style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>notification_period<SPAN style="mso-spacerun: yes">                        </SPAN>24x7<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>notification_options<SPAN style="mso-spacerun: yes">                        </SPAN>d,u,r<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> }<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> define command{<o:p><
 /o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun:
 yes">   </SPAN><SPAN style="mso-spacerun: yes">       </SPAN>command_name<SPAN style="mso-spacerun: yes">                        </SPAN>notify-by-email<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">          </SPAN>command_line<SPAN style="mso-spacerun: yes">                        </SPAN>/usr/bin/printf “%b” <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black">“*****<SPAN style="mso-spacerun: yes">  </SPAN>Nagios<SPAN style="mso-spacerun: yes">  </SPAN>*****\n\nNotification Type:
  $NOTIFICATIONTYPE$\n\nService: <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB
 style="COLOR: black">$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black">$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\Additional Info:\n\n$OUTPUT$” | <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black">bin/mail –s “** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black">$SERVICESTATE$ **” $CONTACTEMAIL$<SPAN style="mso-spacerun: yes">   </SPAN><o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> define service{<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB sty
 le="COLOR: black"><SPAN style="mso-spacerun: yes">       
 </SPAN>name<SPAN style="mso-spacerun: yes">                        </SPAN>generic_service<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">        </SPAN>active_checks_enabled<SPAN style="mso-spacerun: yes">                        </SPAN>1<SPAN style="mso-spacerun: yes">                      </SPAN><o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">        </SPAN>passive_
 checks_enabled<SPAN style="mso-spacerun:
 yes">                        </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">        </SPAN>parallelize_check<SPAN style="mso-spacerun: yes">                        </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">        </SPAN>obsess_over_service<SPAN style="mso-spacerun: yes">                        </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT
 ><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">   
 </SPAN><SPAN style="mso-spacerun: yes">    </SPAN>check_freshness<SPAN style="mso-spacerun: yes">                        </SPAN>0<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">        </SPAN>notifications_enabled<SPAN style="mso-spacerun: yes">                        </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">        </SPAN>event_handlers_enabled<SPAN style="mso-spacerun: yes">          &nbsp
 ;            </SPAN>1
 <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">        </SPAN>flap_detection_enabled<SPAN style="mso-spacerun: yes">                        </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">        </SPAN>process_perf_data<SPAN style="mso-spacerun: yes">                   </SPAN><SPAN style="mso-spacerun: yes">     </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">     &nbs
 p;  </SPAN>retain_status_information<SPAN style="mso-spacerun:
 yes">                        </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">        </SPAN>retain_nonstatus_information<SPAN style="mso-spacerun: yes">                        </SPAN>1 <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">        </SPAN>register<SPAN style="mso-spacerun: yes">                        </SPAN>0<o:p></o:p></SPAN></TT></PRE><P
 RE><TT><SPAN lang=EN-GB style="COLOR: black">}<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN
 lang=EN-GB style="COLOR: black"> define service{<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>host_name<SPAN style="mso-spacerun: yes">                        </SPAN>servidor_correo<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>service_description<SPAN style="mso-spacerun: yes">                        </SPAN>SMTP<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>is_volatil
 e<SPAN style="mso-spacerun:
 yes">                        </SPAN>0<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>check_period<SPAN style="mso-spacerun: yes">                        </SPAN>24x7 <o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>max_check_attempts<SPAN style="mso-spacerun: yes">                        </SPAN>3<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB sty
 le="COLOR: black"><SPAN style="mso-spacerun: yes">     
 </SPAN>normal_check_interval<SPAN style="mso-spacerun: yes">                        </SPAN>5<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">     </SPAN>retry_check_interval<SPAN style="mso-spacerun: yes">                        </SPAN>1<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>contact_groups<SPAN style="mso-spacerun: yes">                        </SPAN>eskola<o:p></o:
 p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun:
 yes">      </SPAN>notification_interval<SPAN style="mso-spacerun: yes">                        </SPAN>120<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>notification_period<SPAN style="mso-spacerun: yes">                        </SPAN>24x7<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"><SPAN style="mso-spacerun: yes">      </SPAN>notification_options<SPAN style="mso-spacerun: yes">                  &
 nbsp;     </SPAN>c,r<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB
 style="COLOR: black"><SPAN style="mso-spacerun: yes">     </SPAN>check_command<SPAN style="mso-spacerun: yes">                        </SPAN>check_smtp<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> }<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN lang=EN-GB style="COLOR: black"> <o:p></o:p></SPAN></TT></PRE>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN-GB><FONT size=3><FONT face="Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P></DIV><p>
                <hr size=1><br><table><tr><td><a href="http://es.rd.yahoo.com/mail_es/tagline/mail/image/*http://es.mail.yahoo.com"><img src="http://eur.i1.yimg.com/eur.yimg.com/i/es/mail/mails.gif" height=80 width=230 alt="Nuevo Correo Yahoo!" border=0 align="left"></a></td></tr></table>