I am not sure but i think i read notifications for services are not sent is the host is down..<br>anyway, your options are critical and recovery, (are you calling down to critical state?)<br>Are you sure you have your email server properly configured?<br>
<br>hope this help you<br><br><br><div><span class="gmail_quote">2008/3/4, nagios <<a href="mailto:nagios@ayksolutions.com">nagios@ayksolutions.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello everyone,<br> <br> I have just configured some service checks for services such as http, smtp, etc.. The commands are defined in the commands.cfg file and then called in the services.cfg file. The following is an example of how a commands.cfg and services.cfg looks:<br>
 <br> # 'check_http' command definition<br> define command{<br>        command_name    check_http<br>        command_line    $USER1$/check_http -H $HOSTADDRESS$<br>        }<br> <br> #### Generic services template ################<br>
 define service{<br> name generic-service;<br> active_checks_enabled 1;<br> obsess_over_service 1;<br> check_freshness 0;<br> notifications_enabled 1;<br> event_handler_enabled 1;<br> flap_detection_enabled 1;<br> retain_status_information 1;<br>
 retain_nonstatus_information 1;<br> register 0;<br> }<br> define service{<br> use generic-service<br> name                                    basic-service<br> is_volatile                             0<br> check_period                            24x7<br>
 max_check_attempts                      15<br> normal_check_interval                   5<br> retry_check_interval                    1<br> notification_interval                   240<br> notification_period                     24x7<br>
 register                                0<br> }<br> define service{<br> use basic-service<br> name smtp-service<br> check_command check_smtp<br> notification_options c,r<br> register 0<br> }<br> <br> Example service called for a specific host (same services.cfg file as where the above services are declared in the beginning)<br>
 <br> define service{<br> use dns-service<br> host_name serv01<br> servicegroups mygroup<br> service_description DNS<br> contact_groups localadmin,supportpro<br> }<br> <br> The contacts are setup correctly since our check_ping which is declared in the hosts.cfg file works perfectly fine and we do get the correct alerts.<br>
 <br> Could someone point me in the right direction of what I'm doing wrong here? I can't seem to get emails if a service is down. It's most likely in my syntax, but I'm not sure where since I get no errors when reloading Nagios.<br>
 <br> Thanks for your help.<br> <br> <br> -------------------------------------------------------------------------<br> This SF.net email is sponsored by: Microsoft<br> Defy all challenges. Microsoft(R) Visual Studio 2008.<br>
 <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br> _______________________________________________<br> Nagios-users mailing list<br> <br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
 <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
 ::: Messages without supporting info will risk being sent to /dev/null<br> </blockquote></div><br>