I am having problems getting service outages to notify. Host notifications work fine.<br>
<br>
Below I have attached snippets of various configs. All of the configs
are being read into nagios properly. Host notifcations are being sent
properly... it's just service notications that are not working. I
restart (not just reload) nagios after config changes.<br>
<br>
I am running Nagios 2.0b3 on FC3.<br>
<br>
-Dan Davis<br>
<br>
Relevant snippets on cfg files:<br>
<br>
nagios.cfg:<br>
     log_notifications=1<br>
     enable_notifications=1<br>
<br>
Other configs that are in files that are read into nagios:<br>
     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<br>
        host_notification_options       d,r<br>
        service_notification_commands   notify-by-email<br>
        host_notification_commands      host-notify-by-email<br>
       
email                          
<a href="mailto:validuser@fqdn.com">validuser@fqdn.com</a>  ; the system has no problems seding to this
email address... host notifications work fine...<br>
        }<br>
<br>
     define contactgroup{<br>
        contactgroup_name       admins<br>
       
alias                  
Nagios Administrators<br>
       
members                
nagios-admin<br>
        }<br>
<br>
    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<br>
       
obsess_over_service            
1       ; We should obsess over this
service (if necessary)<br>
       
check_freshness                
1       ; Default is to NOT check service
'freshness'<br>
       
freshness_threshold            
300     ; 5 Minute threshold<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>
       
normal_check_interval          
1       ;<br>
       
retry_check_interval           
1       ;<br>
       
max_check_attempts             
2       ;<br>
       
check_period                   
24x7    ;<br>
       
is_volatile                    
0       ;<br>
       
contact_groups                 
admins<br>
       
notification_interval          
0       ;<br>
       
notification_period            
24x7    ;<br>
       
register                       
0       ; DONT REGISTER THIS DEFINITION -
ITS NOT A REAL SERVICE, JUST A TEMPLATE!<br>
        }<br>
<br>
     define service{<br>
       
use                            
generic-service         ; Name
of service template to use<br>
       
host_name                      
nagioshost<br>
       
service_description            
Processes (httpd)<br>
       
check_command                  
check_specific_procs!1!11!httpd<br>
        }<br>
<br>
     define timeperiod{<br>
        timeperiod_name 24x7<br>
       
alias           24
Hours A Day, 7 Days A Week<br>
        sunday          00:00-24:00<br>
        monday          00:00-24:00<br>
        tuesday         00:00-24:00<br>
        wednesday       00:00-24:00<br>
        thursday        00:00-24:00<br>
        friday          00:00-24:00<br>
        saturday        00:00-24:00<br>
        }<br>
<br>
     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$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$<br>
        }<br>
<br>
     # '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>
        }<br>
<br>