<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

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

<div class=Section1>

<p class=MsoNormal>Hello all,<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>First off, I really appreciate any feedback you can
provide.  I’ve just recently started working with Nagios and everything
is working great, except for notifications being sent out.  I’ve been
searching all over the net, comparing my configurations with others to see if
there was anything noticeable I was missing, but I can’t seem to find
anything.   I’ve included my configuration files below for you to look
at.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>I have been able to send a mail from the server (CentOS 5.3)
using sendmail.  I can also successfully send Email using the E-mail commands
in the commands.cfg file.  <o:p></o:p></p>

<p class=MsoNormal>[code]/usr/bin/mail "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n"
| /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is
$HOSTSTATE$ **" $CONTACTEMAIL$ <MY EMAIL ADDRESS>[/code]<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Everything is being monitored correctly, just for some
reason the E-mails are not being sent out.  I should also note that if I do a
“Send custom host notification” in nagios on a host that has a
critical warning, I DO get an E-mail successfully.  It’s just not
automatically sending them out.  <o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><b>UPDATE:</b> I do have some good news.  I did receive a
notification last night for a flapping alert.  However, it still is not sending
out alerts from being down, returning to up state, etc...<o:p></o:p></p>

<p class=MsoNormal>[quote]<o:p></o:p></p>

<p class=MsoNormal>[1255678430] SERVICE FLAPPING ALERT: AUSTIN-LAPTOP;CPU
Load;STOPPED; Service appears to have stopped flapping (4.0% change < 5.0%
threshold) <o:p></o:p></p>

<p class=MsoNormal>[1255678430] SERVICE NOTIFICATION:
libertyadmins;AUSTIN-LAPTOP;CPU Load;FLAPPINGSTOP
(CRITICAL);notify-service-by-email;No route to host[/quote]<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>So it appears I'm receiving flapping alerts, but nothing
else.  In the Nagios web interface, if I go to Configuration -->
Contacts....I can see that under Service Notification Options and Host
Configuration Options I only see "Flapping, Downtime" enabled.  I'm
not getting downtime alerts, but shouldn't there be more options there? Uptime....etc.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Is there something obvious I am missing in the config
files?  I really appreciate the help, please let me know what you think.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><b>Templates.cfg<o:p></o:p></b></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal>#<o:p></o:p></p>

<p class=MsoNormal># CONTACT TEMPLATES<o:p></o:p></p>

<p class=MsoNormal>#<o:p></o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define contact{<o:p></o:p></p>

<p class=MsoNormal>       name                           
generic-contact         ; The name of this contact template<o:p></o:p></p>

<p class=MsoNormal>       host_notifications_enabled      1<o:p></o:p></p>

<p class=MsoNormal>       service_notifications_enabled   1<o:p></o:p></p>

<p class=MsoNormal>       host_notification_commands      notify-host-by-email<o:p></o:p></p>

<p class=MsoNormal>       service_notification_commands  
notify-service-by-email<o:p></o:p></p>

<p class=MsoNormal>       service_notification_period    
24x7                    ; service notifications can be sent anytime<o:p></o:p></p>

<p class=MsoNormal>       host_notification_period       
24x7                    ; host notifications can be sent anytime<o:p></o:p></p>

<p class=MsoNormal>       service_notification_options   
w,u,c,r,f,s             ; send notifications for all service states, flapping
events, and scheduled downtime events<o:p></o:p></p>

<p class=MsoNormal>       host_notification_options      
w,u,c,r,f,s             ; send notifications for all host states, flapping
events, and scheduled downtime events<o:p></o:p></p>

<p class=MsoNormal>       register                       
0                       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL
CONTACT, JUST A TEMPLATE!<o:p></o:p></p>

<p class=MsoNormal>        }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal>#<o:p></o:p></p>

<p class=MsoNormal># HOST TEMPLATES<o:p></o:p></p>

<p class=MsoNormal>#<o:p></o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal># Generic host definition template - This is NOT a real
host, just a template!<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define host{<o:p></o:p></p>

<p class=MsoNormal>       name                               generic-host    ;
The name of this host template<o:p></o:p></p>

<p class=MsoNormal>       notifications_enabled             
1                    ; Host notifications are enabled<o:p></o:p></p>

<p class=MsoNormal>       event_handler_enabled             
1                    ; Host event handler is enabled<o:p></o:p></p>

<p class=MsoNormal>       flap_detection_enabled            
1                    ; Flap detection is enabled<o:p></o:p></p>

<p class=MsoNormal>       failure_prediction_enabled        
1                    ; Failure prediction is enabled<o:p></o:p></p>

<p class=MsoNormal>       process_perf_data                 
1                    ; Process performance data<o:p></o:p></p>

<p class=MsoNormal>       retain_status_information          1                    ;
Retain status information across program restarts<o:p></o:p></p>

<p class=MsoNormal>       retain_nonstatus_information      
1                    ; Retain non-status information across program
restarts     <o:p></o:p></p>

<p class=MsoNormal>       notification_period               
24x7                 ; Send host notifications at any time<o:p></o:p></p>

<p class=MsoNormal>       check_period                      
24x7                 ; By default, Linux hosts are checked round the clock<o:p></o:p></p>

<p class=MsoNormal>       check_interval                    
1                    ; Actively check the host every 1 minutes<o:p></o:p></p>

<p class=MsoNormal>       retry_interval                    
1                    ; Schedule host check retries at 1 minute intervals<o:p></o:p></p>

<p class=MsoNormal>       max_check_attempts                
10                   ; Check each Linux host 10 times (max)<o:p></o:p></p>

<p class=MsoNormal>       check_command                      check-host-alive    
; Default command to check Linux hosts<o:p></o:p></p>

<p class=MsoNormal>       notification_period               
workhours            ; Linux admins hate to be woken up, so we only notify
during the day<o:p></o:p></p>

<p class=MsoNormal>       notification_interval              120                  ;
Resend notifications every 2 hours<o:p></o:p></p>

<p class=MsoNormal>       notification_options              
w,u,c,r,f,s          ; Only send notifications for specific host states<o:p></o:p></p>

<p class=MsoNormal>       contact_groups                    
libertyadminsgroup   ; Notifications get sent to the admins by default<o:p></o:p></p>

<p class=MsoNormal>       register                         
0                    ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST,
JUST A TEMPLATE!<o:p></o:p></p>

<p class=MsoNormal>        }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal># Windows host definition template - This is NOT a real
host, just a template!<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define host{<o:p></o:p></p>

<p class=MsoNormal>       name                        windows-server       ;
The name of this host template<o:p></o:p></p>

<p class=MsoNormal>       use                         generic-host         ;
Inherit default values from the generic-host template<o:p></o:p></p>

<p class=MsoNormal>       check_period                24x7                 ; By
default, Windows servers are monitored round the clock<o:p></o:p></p>

<p class=MsoNormal>       check_interval              1                    ;
Actively check the server every 1 minutes<o:p></o:p></p>

<p class=MsoNormal>       retry_interval              1                    ;
Schedule host check retries at 1 minute intervals<o:p></o:p></p>

<p class=MsoNormal>       max_check_attempts          10                   ;
Check each server 10 times (max)<o:p></o:p></p>

<p class=MsoNormal>       check_command               check-host-alive     ;
Default command to check if servers are "alive"<o:p></o:p></p>

<p class=MsoNormal>       notification_period         24x7                 ;
Send notification out at any time - day or night<o:p></o:p></p>

<p class=MsoNormal>       notification_interval       60                   ;
Resend notifications every 30 minutes<o:p></o:p></p>

<p class=MsoNormal>       notification_options        w,u,c,r,f,s          ;
Only send notifications for specific host states<o:p></o:p></p>

<p class=MsoNormal>       contact_groups              libertyadminsgroup   ;
Notifications get sent to the admins by default<o:p></o:p></p>

<p class=MsoNormal>       hostgroups                  windows-servers      ;
Host groups that Windows servers should be a member of<o:p></o:p></p>

<p class=MsoNormal>       register                    0                    ;
DONT REGISTER THIS - ITS JUST A TEMPLATE<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal># Define a template for switches that we can reuse<o:p></o:p></p>

<p class=MsoNormal>define host{<o:p></o:p></p>

<p class=MsoNormal>       name                       
switches                    ; The name of this host template<o:p></o:p></p>

<p class=MsoNormal>       use                         generic-host               
; Inherit default values from the generic-host template<o:p></o:p></p>

<p class=MsoNormal>       check_period               
24x7                        ; By default, switches are monitored round the
clock<o:p></o:p></p>

<p class=MsoNormal>       check_interval              5                          
; Switches are checked every 5 minutes<o:p></o:p></p>

<p class=MsoNormal>       retry_interval             
1                           ; Schedule host check retries at 1 minute intervals<o:p></o:p></p>

<p class=MsoNormal>       max_check_attempts         
10                          ; Check each switch 10 times (max)<o:p></o:p></p>

<p class=MsoNormal>       check_command              
check-host-alive            ; Default command to check if routers are
"alive"<o:p></o:p></p>

<p class=MsoNormal>       notification_period        
24x7                        ; Send notifications at any time<o:p></o:p></p>

<p class=MsoNormal>       notification_interval      
30                          ; Resend notifications every 30 minutes<o:p></o:p></p>

<p class=MsoNormal>       notification_options       
w,u,c,r,f,s                 ; Only send notifications for specific host states<o:p></o:p></p>

<p class=MsoNormal>       contact_groups             
libertyadminsgroup          ; Notifications get sent to the admins by default<o:p></o:p></p>

<p class=MsoNormal>       hostgroups                  switches<o:p></o:p></p>

<p class=MsoNormal>       register                   
0                           ; DONT REGISTER THIS - ITS JUST A TEMPLATE<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define host{<o:p></o:p></p>

<p class=MsoNormal>       name                       
routers                     ; The name of this host template<o:p></o:p></p>

<p class=MsoNormal>       use                        
generic-host                ; Inherit default values from the generic-host
template<o:p></o:p></p>

<p class=MsoNormal>       check_period                24x7                        ;
By default, switches are monitored round the clock<o:p></o:p></p>

<p class=MsoNormal>       check_interval             
5                           ; Switches are checked every 5 minutes<o:p></o:p></p>

<p class=MsoNormal>       retry_interval             
1                           ; Schedule host check retries at 1 minute intervals<o:p></o:p></p>

<p class=MsoNormal>       max_check_attempts         
10                          ; Check each switch 10 times (max)<o:p></o:p></p>

<p class=MsoNormal>       check_command              
check-host-alive            ; Default command to check if routers are
"alive"<o:p></o:p></p>

<p class=MsoNormal>       notification_period        
24x7                        ; Send notifications at any time<o:p></o:p></p>

<p class=MsoNormal>       notification_interval      
30                          ; Resend notifications every 30 minutes<o:p></o:p></p>

<p class=MsoNormal>       notification_options       
w,u,c,r,f,s                 ; Only send notifications for specific host states<o:p></o:p></p>

<p class=MsoNormal>       contact_groups             
libertyadminsgroup          ; Notifications get sent to the admins by default<o:p></o:p></p>

<p class=MsoNormal>       hostgroups                  routers<o:p></o:p></p>

<p class=MsoNormal>       register                    0                           ;
DONT REGISTER THIS - ITS JUST A TEMPLATE<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal>#<o:p></o:p></p>

<p class=MsoNormal># SERVICE TEMPLATES<o:p></o:p></p>

<p class=MsoNormal>#<o:p></o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal>###############################################################################<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal># Generic service definition template - This is NOT a real
service, just a template!<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define service{<o:p></o:p></p>

<p class=MsoNormal>        name                           
generic-service        ; The 'name' of this service template<o:p></o:p></p>

<p class=MsoNormal>        active_checks_enabled          
1                      ; Active service checks are enabled<o:p></o:p></p>

<p class=MsoNormal>        passive_checks_enabled          1                     
; Passive service checks are enabled/accepted<o:p></o:p></p>

<p class=MsoNormal>        parallelize_check              
1                      ; Active service checks should be parallelized
(disabling this can lead to major performance problems)<o:p></o:p></p>

<p class=MsoNormal>        obsess_over_service            
1                      ; We should obsess over this service (if necessary)<o:p></o:p></p>

<p class=MsoNormal>        check_freshness                
0                      ; Default is to NOT check service 'freshness'<o:p></o:p></p>

<p class=MsoNormal>        notifications_enabled           1                      ;
Service notifications are enabled<o:p></o:p></p>

<p class=MsoNormal>        event_handler_enabled          
1                      ; Service event handler is enabled<o:p></o:p></p>

<p class=MsoNormal>        flap_detection_enabled         
1                      ; Flap detection is enabled<o:p></o:p></p>

<p class=MsoNormal>        failure_prediction_enabled     
1                      ; Failure prediction is enabled<o:p></o:p></p>

<p class=MsoNormal>        process_perf_data              
1                      ; Process performance data<o:p></o:p></p>

<p class=MsoNormal>        retain_status_information      
1                      ; Retain status information across program restarts<o:p></o:p></p>

<p class=MsoNormal>        retain_nonstatus_information   
1                      ; Retain non-status information across program restarts<o:p></o:p></p>

<p class=MsoNormal>        is_volatile                    
0                      ; The service is not volatile<o:p></o:p></p>

<p class=MsoNormal>        check_period                    24x7                  
; The service can be checked at any time of the day<o:p></o:p></p>

<p class=MsoNormal>        max_check_attempts             
3                      ; Re-check the service up to 3 times in order to
determine its final (hard) state<o:p></o:p></p>

<p class=MsoNormal>        normal_check_interval          
3                      ; Check the service every 10 minutes under normal
conditions<o:p></o:p></p>

<p class=MsoNormal>        retry_check_interval           
1                      ; Re-check the service every two minutes until a hard
state can be determined<o:p></o:p></p>

<p class=MsoNormal>        contact_groups                 
libertyadminsgroup     ; Notifications get sent out to everyone in the 'admins'
group<o:p></o:p></p>

<p class=MsoNormal>        notification_options           
w,u,c,r,f,s            ; Send notifications about warning, unknown, critical,
and recovery events<o:p></o:p></p>

<p class=MsoNormal>        notification_interval          
60                     ; Re-notify about service problems every hour<o:p></o:p></p>

<p class=MsoNormal>        notification_period            
24x7                   ; Notifications can be sent out at any time<o:p></o:p></p>

<p class=MsoNormal>        register                        0                     
; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!<o:p></o:p></p>

<p class=MsoNormal>        }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><b>Commands.cfg</b><o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal># 'notify-host-by-email' command definition<o:p></o:p></p>

<p class=MsoNormal>define command{<o:p></o:p></p>

<p class=MsoNormal>       command_name  notify-host-by-email<o:p></o:p></p>

<p class=MsoNormal>       command_line  /usr/bin/mail "%b"
"***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
$HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "**
$NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **"
$CONTACTEMAIL$<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal># 'notify-service-by-email' command definition<o:p></o:p></p>

<p class=MsoNormal>define command{<o:p></o:p></p>

<p class=MsoNormal>       command_name  notify-service-by-email<o:p></o:p></p>

<p class=MsoNormal>       command_line  /usr/bin/mail "%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$" | /bin/mail -s "** $NOTIFICATIONTYPE$
Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
$CONTACTEMAIL$<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><b>Services.cfg</b><o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define service{<o:p></o:p></p>

<p class=MsoNormal>       use                  generic-service<o:p></o:p></p>

<p class=MsoNormal>       hostgroup_name       windows-servers<o:p></o:p></p>

<p class=MsoNormal>       service_description System Uptime<o:p></o:p></p>

<p class=MsoNormal>       check_command        check_nt!UPTIME<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define service{<o:p></o:p></p>

<p class=MsoNormal>       use                  generic-service<o:p></o:p></p>

<p class=MsoNormal>       hostgroup_name       windows-servers<o:p></o:p></p>

<p class=MsoNormal>       service_description CPU Load      <o:p></o:p></p>

<p class=MsoNormal>       check_command        check_nt!CPULOAD!-l 5,80,90<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define service{<o:p></o:p></p>

<p class=MsoNormal>       use                  generic-service<o:p></o:p></p>

<p class=MsoNormal>       hostgroup_name       windows-servers<o:p></o:p></p>

<p class=MsoNormal>       service_description Memory Usage<o:p></o:p></p>

<p class=MsoNormal>       check_command        check_nt!MEMUSE!-w 80 -c 90<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define service{<o:p></o:p></p>

<p class=MsoNormal>       use                  generic-service<o:p></o:p></p>

<p class=MsoNormal>       hostgroup_name       windows-servers<o:p></o:p></p>

<p class=MsoNormal>       service_description  Used Disk Space      <o:p></o:p></p>

<p class=MsoNormal>       check_command        check_nt!USEDDISKSPACE!-l c -w
80 -c 90<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define service{<o:p></o:p></p>

<p class=MsoNormal>       use                  generic-service<o:p></o:p></p>

<p class=MsoNormal>       hostgroup_name       windows-servers<o:p></o:p></p>

<p class=MsoNormal>       service_description Ping Test<o:p></o:p></p>

<p class=MsoNormal>       check_period                24x7<o:p></o:p></p>

<p class=MsoNormal>       max_check_attempts          3<o:p></o:p></p>

<p class=MsoNormal>       normal_check_interval       3<o:p></o:p></p>

<p class=MsoNormal>       retry_check_interval        1<o:p></o:p></p>

<p class=MsoNormal>       contact_groups              libertyadminsgroup<o:p></o:p></p>

<p class=MsoNormal>       notification_interval       60<o:p></o:p></p>

<p class=MsoNormal>       notification_period         24x7<o:p></o:p></p>

<p class=MsoNormal>       notification_options        w,u,c,r<o:p></o:p></p>

<p class=MsoNormal>       check_command              
check_ping!200.0,20%!600.0,60%     ; The command used to monitor the service<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><b>Hosts.cfg</b><o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>define host{<o:p></o:p></p>

<p class=MsoNormal>       use           windows-server       ; Inherit default
values from a template<o:p></o:p></p>

<p class=MsoNormal>       host_name     NAME                 ; The name we're
giving to this host<o:p></o:p></p>

<p class=MsoNormal>       alias         NAME                 ; A longer name
associated with the host<o:p></o:p></p>

<p class=MsoNormal>       address       <IP ADDRESS>         ; IP address
of the host<o:p></o:p></p>

<p class=MsoNormal>       }<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

</div>

</body>

</html>