<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.MsoToc1, li.MsoToc1, div.MsoToc1
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Arial;
        font-weight:bold;}
p.MsoToc2, li.MsoToc2, div.MsoToc2
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:Arial;
        font-weight:bold;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>What version are you running and on what
OS?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-Lori<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

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

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

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <b><span style='font-weight:
bold'>On Behalf Of </span></b>lennart.kvam@softronic.se<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, February 07, 2006
3:57 PM<br>
<b><span style='font-weight:bold'>To:</span></b>
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Nagios-users] Major
notification problem</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div>

<div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi All!</span></font><font face=Arial><span
style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have major problem with getting notifications :-(</span></font><font
face=Arial><span style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Here`s my configs:</span></font><font face=Arial><span
style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><strong><b><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Miscommands.cfg</span></font></b></strong><font
face=Arial><span style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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><font face=Arial><span
style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>AND</span></font><font face=Arial><span style='font-family:
Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'># '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><font face=Arial><span style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><strong><b><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Minimal.cfg</span></font></b></strong><font
face=Arial><span style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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                          
</span></font><font face=Arial><span style='font-family:Arial'><a
href="mailto:lelle@softronic.se" title="mailto:lelle@softronic.se"><font
size=2 title="mailto:lelle@softronic.se"><span style='font-size:10.0pt'>lelle@softronic.se</span></font></a><br>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>        }</span></font><font
face=Arial><span style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>define contactgroup{<br>
       
contactgroup_name       admins<br>
       
alias                  
Nagios Administrators<br>
       
members                
nagios-admin<br>
        }</span></font><font face=Arial><span
style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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><font face=Arial><span
style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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>
        }</span></font><font face=Arial><span
style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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>
        }</span></font><font face=Arial><span
style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>define service{<br>
       
use                            
generic-service         ; Name of
service template to use<br>
       
host_name                      
arnwin0136<br>
       
service_description            
<st1:place w:st="on">PING</st1:place><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>
        }</span></font><font face=Arial><span
style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When i try in commandline with:  /bin/mail -s TEST <a
href="mailto:lelle@softronic.se" title="mailto:lelle@softronic.se">lelle@softronic.se</a> Its
working like charm! but i need to press "ctrl"+ d to send it!</span></font><font
face=Arial><span style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>PLEASE HELP ME before i kill my self;-) Is there anymore
files to edit? I have read tons of mail/forum but cant get it to work....</span></font><font
face=Arial><span style='font-family:Arial'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>//Lennart<o:p></o:p></span></font></p>

</div>

</div>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><strong><b><font size=2 color=olive face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:olive'>**********************************</span></font></b></strong>
<br>
<b><font color=olive face=Tahoma><span style='font-family:Tahoma;color:olive;
font-weight:bold'>Lennart Kvam</span></font></b> <br>
<font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:
Tahoma;color:black'>Softronic AB, Ringvägen 100, 118 60 <st1:City w:st="on"><st1:place
 w:st="on">Stockholm</st1:place></st1:City></span></font> <br>
<font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:
Tahoma;color:black'>Tel: 0708-813279  Vx:08-51909000 </span></font><br>
<font color=black face=Arial><span style='font-family:Arial;color:black'>lennart.kvam@softronic.se</span></font>
<br>
<b><font size=2 color=olive face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;color:olive;font-weight:bold'>**********************************</span></font></b><o:p></o:p></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>