<!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.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial>
<DIV><FONT face=Arial>
<DIV><FONT face=Arial size=2><SPAN class=953213614-06022006>Hi 
All!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=953213614-06022006>I have major problem 
with getting notifications :-(</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=953213614-06022006>Here`s my 
configs:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006><STRONG>Miscommands.cfg</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=953213614-06022006>define 
command{<BR>        
command_name    
notify-by-email<BR>        
command_line    /usr/bin/printf "%b" "***** Nagios  
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: 
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: 
$LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\nComment: 
$SERVICEACKCOMMENT$\n\n | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - 
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" 
$CONTACTEMAIL$<BR>        
}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006>AND</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=953213614-06022006># 
'host-notify-by-email' command definition<BR>  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: 
$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ 
alert for $HOSTNAME$!" $CONTACTEMAIL$<BR> }</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006><STRONG>Minimal.cfg</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=953213614-06022006><FONT size=2>define 
contact{<BR>        
contact_name                    
nagios-admin<BR>        
alias                           
Nagios Admin<BR>        
service_notification_period     
24x7<BR>        
host_notification_period        
24x7<BR>        
service_notification_options    
w,u,c,r,n<BR>        
host_notification_options       
d,u,r,n<BR>        
service_notification_commands   
notify-by-email<BR>        
host_notification_commands      
host-notify-by-email<BR>#        
service_notification_commands   
notify-by-sendEmail<BR>#        
host_notification_commands      
host-notify-by-sendEmail<BR>        
email                           
</FONT><A title=mailto:lelle@softronic.se href="mailto:lelle@softronic.se"><FONT 
title=mailto:lelle@softronic.se size=2>lelle@softronic.se</FONT></A><BR><FONT 
size=2>        }</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=953213614-06022006>define 
contactgroup{<BR>        
contactgroup_name       
admins<BR>        
alias                   
Nagios Administrators<BR>        
members                 
nagios-admin<BR>        }</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=953213614-06022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=953213614-06022006>define 
host{<BR>        
name                            
generic-host    ; The name of this host 
template<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>        
failure_prediction_enabled      
1       ; Failure prediction 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<BR>        
register                        
0       ; DONT REGISTER THIS DEFINITION - ITS NOT 
A REAL HOST, JUST A TEMPLATE!<BR>        
}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><B><FONT face=Tahoma color=olive size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: olive; FONT-FAMILY: Tahoma; mso-no-proof: yes"></SPAN></FONT></B> </DIV>
<DIV><FONT size=2>define service{<BR>        
name                    
generic-service ; The 'name' of this service 
template<BR>        
active_checks_enabled           
1       ; Active service checks are 
enabled<BR>        
passive_checks_enabled          
1       ; Passive service checks are 
enabled/accepted<BR>        
parallelize_check               
1       ; Active service checks should be 
parallelized (disabling this can lead to major performance 
problems)<BR>        
obsess_over_service             
1       ; We should obsess over this service (if 
necessary)<BR>        
check_freshness                 
0       ; Default is to NOT check service 
'freshness'<BR>        
notifications_enabled           
1       ; Service notifications are 
enabled<BR>        
event_handler_enabled           
1       ; Service event handler is 
enabled<BR>        
flap_detection_enabled          
1       ; Flap detection is 
enabled<BR>        
failure_prediction_enabled      
1       ; Failure prediction 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<BR>        
register                        
0       ; DONT REGISTER THIS DEFINITION - ITS NOT 
A REAL SERVICE, JUST A TEMPLATE!<BR>        
}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>define host{<BR>        
use                     
generic-host            ; 
Name of host template to use<BR>        
host_name               
arnwin0136<BR>        
alias                   
arnwin0136<BR>        
address                 
192.168.103.100<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>        
notifications_enabled  1<BR>        
contact_groups  
    admins<BR>        
}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>define service{<BR>        
use                             
generic-service         ; Name of 
service template to use<BR>        
host_name                       
arnwin0136<BR>        
service_description             
PING<BR>        
is_volatile                     
0<BR>        
process_perf_data        1<BR>        
check_period                    
24x7<BR>        
max_check_attempts              
4<BR>        
normal_check_interval           
5<BR>        
retry_check_interval            
1<BR>        
notifications_enabled      1<BR>        
contact_groups                  
admins<BR>        notification_options 
      w,u,c,r<BR>        
notification_interval           
960<BR>        
notification_period             
24x7<BR> check_command   check_ping!100.0,20%!500.0,60%<BR>        
}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>
<DIV><SPAN class=953213614-06022006><SPAN class=875341921-06022006><FONT 
color=#0000ff size=2></FONT></SPAN></SPAN></DIV><SPAN 
class=953213614-06022006><SPAN class=875341921-06022006></SPAN><FONT 
color=#0000ff></FONT><BR></DIV></SPAN>
<DIV><SPAN class=953213614-06022006><FONT size=2>When i try in commandline 
with:  <SPAN class=953213614-06022006>/bin/mail -s TEST <A 
title=mailto:lelle@softronic.se 
href="mailto:lelle@softronic.se">lelle@softronic.se</A> Its working like 
charm!<SPAN class=328064523-07022006> but i need to press "ctrl"+ d to send 
it!</SPAN></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=953213614-06022006><SPAN class=953213614-06022006><FONT 
size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=953213614-06022006><SPAN class=953213614-06022006><FONT 
size=2>PLEASE HELP ME before i kill my self;-)<SPAN class=421495323-07022006> Is 
there anymore files to edit? I have read tons of mail/forum but cant get it to 
work....</SPAN></FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=953213614-06022006><SPAN class=953213614-06022006><FONT 
size=2></FONT></SPAN></SPAN> </DIV>
<DIV><FONT size=2><SPAN class=953213614-06022006><SPAN 
class=953213614-06022006>//Lennart</SPAN></SPAN><SPAN 
class=953213614-06022006></DIV></SPAN></FONT></FONT></DIV></FONT></DIV>
<DIV> </DIV>
<DIV align=left><SPAN 
style="FONT-SIZE: 10pt; COLOR: olive; FONT-FAMILY: Tahoma; mso-no-proof: yes"><STRONG>**********************************</STRONG></SPAN><SPAN 
style="mso-no-proof: yes"> <BR></SPAN><B><FONT face=Tahoma color=olive><SPAN 
style="FONT-WEIGHT: bold; COLOR: olive; FONT-FAMILY: Tahoma; mso-no-proof: yes">Lennart 
Kvam</SPAN></FONT></B><SPAN style="mso-no-proof: yes"> <BR></SPAN><FONT 
face=Tahoma color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Tahoma; mso-no-proof: yes">Softronic 
AB, Ringvägen 100, 118 60 Stockholm</SPAN></FONT><SPAN 
style="mso-no-proof: yes"> <BR></SPAN><FONT face=Tahoma color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Tahoma; mso-no-proof: yes">Tel: 
0708-813279  Vx:08-51909000 </SPAN></FONT><SPAN 
style="mso-no-proof: yes"><BR></SPAN><FONT face=Arial color=black><SPAN 
style="COLOR: black; FONT-FAMILY: Arial; mso-no-proof: yes">lennart.kvam@softronic.se</SPAN></FONT><SPAN 
style="mso-no-proof: yes"> <BR></SPAN><B><FONT face=Tahoma color=olive 
size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: olive; FONT-FAMILY: Tahoma; mso-no-proof: yes">**********************************</SPAN></FONT></B></DIV>
<DIV> </DIV></BODY></HTML>