<p>Whats the corresponding maillog output? </p>
<div class="gmail_quote">On Nov 1, 2012 12:13 AM, "Bruno Martins" <<a href="mailto:bruno.martins@gruporumos.com">bruno.martins@gruporumos.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="PT" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span lang="EN-US">Hello list,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I have a server running Nagios 3.4.1 under CentOS 6.3 and I have spent some hours trying to find why some (but not all) service notifications simply don’t get to my mailbox, even though they appear in nagios.log file.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">This is my contact definition:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define contact {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> contact_name helpdesk<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> alias Helpdesk User<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> host_notifications_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> service_notifications_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> host_notification_period 24x7<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> service_notification_period 24x7<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> host_notification_options d,r<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> service_notification_options w,c,r<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> host_notification_commands host-notify-by-email<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> service_notification_commands notify-by-email<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> can_submit_commands 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> email <a href="mailto:user@domain.com" target="_blank">user@domain.com</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> } <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">This contact is part of WISESRV-critical group.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">This host is sending out notifications:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define host {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> host_name FLAGSRV_imagina<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span>alias DC da Flag<u></u><u></u></p>
<p class="MsoNormal"> address x.y.z.q<u></u><u></u></p>
<p class="MsoNormal"> <span lang="EN-US">parents RUMOSRD_rlxfw01-rumos<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> use Server<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">}
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">And this host is not:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define host {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> host_name RUMOSSRV_rlxfs01<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span>alias Servidor de partilha de ficheiros<u></u><u></u></p>
<p class="MsoNormal"> <span lang="EN-US">address x.y.z.q<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> parents RUMOSRD_FLXSWCORE01<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_command check-host-alive<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> use Server<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> contact_groups WISESRV-critical<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notes rlxfs01<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> icon_image_alt rlxfs01<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> vrml_image FileServer.png<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">} <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">And this is the host template used by both hosts:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define host {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> name Server<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> alias Server Template<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_command check-host-alive<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> use advance24x7-host<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> max_check_attempts 5<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> contact_groups WISESRV-critical<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_interval 60<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_period 24x7<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_options d,u,r<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notifications_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> icon_image FileServer.png<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> vrml_image FileServer.png<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> statusmap_image FileServer.png<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">}<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">This host template uses other host templates, as the ‘use’ parameter states.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define host {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> name advance24x7-host<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> use generic-host<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> event_handler_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_interval 60<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_period 24x7<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_options d,r<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notifications_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">}<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">…and this is also using another host template:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define host {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> name advance8x5-host<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> use generic-host<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> event_handler_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> contacts helpdesk<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_interval 60<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_period 8x5<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_options d,r<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notifications_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">}<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Regarding to services, I have this two set:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define service {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> #NAGIOSQL_CONFIG_NAME FLAGSRV_imagina<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> host_name FLAGSRV_imagina<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> service_description PING<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> use service-WISESRV<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_command check_ping!100.0,20%!500.0,60%<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">} <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define service {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> #NAGIOSQL_CONFIG_NAME RUMOSSRV_rlxfs01<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> host_name RUMOSSRV_rlxfs01<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> service_description Disk Space Usage<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> use service-WISESRV<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_command check_nt_disk!secret!C!95!99<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> contact_groups WISESRV-critical<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">} <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Using this service templates:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define service {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> name service-WISESRV<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> service_description Template de servicos<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> use advance24x7-service<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> max_check_attempts 3<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_interval 3<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> retry_interval 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_interval 45<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_period 24x7<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_options w,c,r<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notifications_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> contact_groups WISESRV-critical<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">} <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define service {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> name advance24x7-service<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> use generic-service<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> max_check_attempts 5<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_interval 5<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> retry_interval 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_period 24x7<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_interval 60<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_period 24x7<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_options w,c,r<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notifications_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> contact_groups WISESRV-critical<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> stalking_options w,c<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">} <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">define service {<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> name generic-service<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> is_volatile 0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> max_check_attempts 5<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_interval 60<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> retry_interval 15<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> active_checks_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> passive_checks_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_period none<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> parallelize_check 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> obsess_over_service 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> check_freshness 0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> event_handler_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> flap_detection_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> process_perf_data 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> retain_status_information 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> retain_nonstatus_information 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_interval 60<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_period none<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notification_options w,u,c,r<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> notifications_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> contact_groups admins<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> stalking_options o,w,u,c<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> failure_prediction_enabled 1<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> register 0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">} <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Can you please point me in the right direction? Am I misreading something?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">And sorry for the long post. I should have used some web “pasting” tool. Just remembered.
</span><span lang="EN-US" style="font-family:Wingdings">J</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Bruno Martins<u></u><u></u></span></p>
</div>
</div>
<br>------------------------------------------------------------------------------<br>
Everyone hates slow websites. So do we.<br>
Make your web apps faster with AppDynamics<br>
Download AppDynamics Lite for free today:<br>
<a href="http://p.sf.net/sfu/appdyn_sfd2d_oct" target="_blank">http://p.sf.net/sfu/appdyn_sfd2d_oct</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" target="_blank">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>