<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hello Forum,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When I set up nagios at first I used to get mail 
notifications but now I don't.I checked the server logs and discovered the 
following messages</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>Sep 22 19:55:34 nagios nagios: SERVICE 
NOTIFICATION: Efe;ipnxtwo;HTTP;CRITICAL;notify-by-email;Connection 
refused<BR></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2>I have the following config in my </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><U>misccommands.cfg</U></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># 'host-notify-by-email' command 
definition<BR><STRONG>define 
command{<BR>        
command_name    
host-notify-by-email<BR>        
command_line    /usr/bin/printf "%b" "***** Nagios  
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: 
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" 
| /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" 
$CONTACTEMAIL$<BR>        
}<BR></STRONG></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><U>contacts.cfg</U></FONT></DIV>
<DIV><U><FONT face=Arial size=2></FONT></U> </DIV>
<DIV><FONT face=Arial size=2><STRONG>define 
contact{<BR>        
contact_name                    
Efe<BR>        
alias                           
Nagios Admin<BR>        
service_notification_period     
24x7<BR>        
host_notification_period        
24x7<BR>        
service_notification_options    
w,u,c,r<BR>        
host_notification_options       
d,u,r<BR>#        
service_notification_commands   notify-by-email, 
notify-by-epager<BR>#        
host_notification_commands      host-notify-by-email, 
host-notify-by-epager<BR>         
service_notification_commands   
notify-by-email<BR>         
host_notification_commands      
host-notify-by-email<BR>       
email                           
</STRONG></FONT><A href="mailto:eohimor@ipnxnigeria.net"><FONT face=Arial 
size=2><STRONG>eohimor@ipnxnigeria.net</STRONG></FONT></A><BR><FONT face=Arial 
size=2><STRONG>#       
pager                           
08028364123<BR>        
}<BR></STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG> </DIV></STRONG></FONT>
<DIV><FONT face=Arial size=2><STRONG>   </STRONG><U><FONT 
color=#0000ff> hosts.cfg</FONT></U></FONT></DIV>
<DIV><FONT face=Arial size=2><U><FONT 
color=#0000ff></FONT></U> </DIV></FONT>
<DIV><FONT face=Arial size=2><STRONG>define 
host{<BR>        
name                            
generic-host    ; The name of this host template - referenced in 
other host definitions, used for template 
recursion/resolution<BR>        
notifications_enabled           
1       ; Host notifications are 
enabled<BR>        
event_handler_enabled           
1       ; Host event handler is 
enabled<BR>        
flap_detection_enabled          
1       ; Flap detection is 
enabled<BR>        
process_perf_data               
1       ; Process performance 
data<BR>        
retain_status_information       
1       ; Retain status information across program 
restarts<BR>        
retain_nonstatus_information    
1       ; Retain non-status information across 
program restarts</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>        
register                        
0       ; DONT REGISTER THIS DEFINITION - ITS NOT 
A REAL HOST, JUST A TEMPLATE!<BR>        
}</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial 
size=2><STRONG>################################################################################<BR>#############             
RODOPI_SERVER definition      
########################<BR>define 
host{<BR>        
use                     
generic-host            ; 
Name of host template to use</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>        
host_name               
ipnxtwo<BR>        
alias                   
Rodopi Server #1<BR>        
parents                 
email-Switch<BR>        
address                 
62.17.54.90<BR>        
check_command           
check-host-alive<BR>        
max_check_attempts      
10<BR>        
notification_interval   
120<BR>        
notification_period     
24x7<BR>        
notification_options    
d,u,r                                                                                         
<BR>}<BR></STRONG></DIV></FONT>
<DIV><FONT face=Arial size=2>Can anyone help me ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Efe Ohimor<BR>ipNX Nigeria Limited,<BR>4,Balarabe 
Musa Crescent,<BR>Victoria Island,<BR>Lagos.<BR>Tel :4619943-6 ext 
1216<BR></FONT></DIV></BODY></HTML>