<br>Hi,<br><br>Did you check the timeperiods.cfg file as you are using workhours notification for services, you wont receive notification out of this period.<br><div><span class="gmail_quote">2006/2/23, Dave Stern <<a href="mailto:dave@umiacs.umd.edu">
dave@umiacs.umd.edu</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Continuing with the problem of nagios not sending email notifications,
<br><br>miscommands.cfg uses the default commands for host/service-notify-by-email<br>and the paths to mail are correct. I tested the command, and it works.<br>I replaced it with echo ... params>>/tmp/somefile but this is not being
<br>activated so it must be one of the config params:<br><br>contacts.cfg:<br># 'others' contact definition<br>define contact{<br>         contact_name                    others<br>         alias                           Undefined hosts
<br>         service_notification_period     workhours<br>         host_notification_period        workhours<br>         service_notification_options    w,u,c<br>         host_notification_options       d,u<br>         service_notification_commands   notify-by-email
<br>         host_notification_commands      host-notify-by-email<br>         email                           <a href="mailto:root@netmon.umiacs.umd.edu">root@netmon.umiacs.umd.edu</a><br><br>         }<br>......<br>hosts.cfg
:<br># Generic host definition template<br>         define host{<br>         name    generic-host<br>         notifications_enabled   1<br>         event_handler_enabled   1<br>         flap_detection_enabled  1<br>         process_perf_data       1
<br>         retain_status_information       1<br>         retain_nonstatus_information    1<br>         register                0<br>         }<br><br># 'host1' host definition<br>define host{<br>                 use             generic-host
<br>                 host_name       host1<br>                 alias           host1<br>                 address          <a href="http://10.8.122.129">10.8.122.129</a><br>                 check_command   check-host-alive
<br>                 max_check_attempts      10<br>                 notification_interval   1<br>                 notification_period     24x7<br>                 notification_period     24x7<br>                 notification_options    d,u
<br>                 }<br>...<br><br>nagios.cfg includes<br>log_notifications=1<br>notification_timeout=30<br>enable_notifications=1<br><br><br>services.cfg:<br># Generic service definition template<br>define service{<br>
         name    generic-service<br>         active_checks_enabled   1<br>         passive_checks_enabled  1<br>         parallelize_check       1<br>         obsess_over_service     1<br>         check_freshness         1
<br>         notifications_enabled   1<br>         event_handler_enabled   1<br>         flap_detection_enabled  1<br>         process_perf_data       1<br>         retain_status_information       1<br>         retain_nonstatus_information    1
<br>         register                        0<br>         }<br><br># Service definition<br>define service{<br>           use     generic-service<br>           host_name       host1<br>           service_description             AVAILABLE
<br>           is_volatile     0<br>           check_period    24x7<br>           max_check_attempts      3<br>           normal_check_interval   10<br>           retry_check_interval    1<br>           contact_groups           others
<br>           notification_interval   11<br>           notification_period     24x7<br>           notification_options    w,u,c<br>          check_command           check-host-alive<br>           }<br>....<br><br>Can anyone see where notification by email may have been turned off
<br>or have any other ideas on diagnosing?<br>TIA<br><br><br>  =-=-=-=-=-=-=-=-=-=-  generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=<br>  David Stern                                    University of Maryland<br>            Institute for Advanced Computer Studies
<br><br><br>-------------------------------------------------------<br>This SF.Net email is sponsored by xPML, a groundbreaking scripting language<br>that extends applications into web and mobile media. Attend the live webcast
<br>and join the prime developer group breaking into this new coding territory!<br><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
</a><br>_______________________________________________<br>Nagios-users mailing list<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><br clear="all"><br>-- <br>Le bon sens est la chose du monde la mieux partagée.