Email Notification not working for certain hosts


Hello - Like the title states email notifications are not working for some hosts.

define host{
	use		generic-switch		; Inherit default values from a template
	host_name	<REMOVED>			; The name we're giving to this switch
	alias		HP Procurve 5412zl		; A longer name associated with the switch
	address	<REMOVED>			; IP address of the switch
	hostgroups	switches			; Host groups this switch is associated with
	notification_options      d,u,r	
	notifications_enabled	1

define service{
	use			generic-service	; Inherit values from a template
	host_name		<REMOVED>	; The name of the host the service is associated with
	service_description	PING		; The service description
	check_command		check_ping!200.0,20%!600.0,60%	; The command used to monitor the service
	normal_check_interval	5		; Check the service every 5 minutes under normal conditions
	retry_check_interval	1		; Re-check the service every minute until its final/hard state is determined
	notification_period	24x7
	notification_options w,u,c,r
	contact_groups admins	

define contact{
        contact_name                    nagiosadmin		; Short name of user
      	 use				     generic-contact		; Inherit default values from generic-contact template (defined above)
        alias                           Nagios Admin		; Full name of user
        email                          <REMOVED>	; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
	 host_notifications_enabled	 1       
	 service_notifications_enabled	1
	 service_notification_period 24x7
        host_notification_period 24x7 
        service_notification_options w,u,c,r
        host_notification_options d,u,r
        service_notification_commands notify-service-by-email
        host_notification_commands notify-host-by-email
        can_submit_commands	1

Any idea’s whats going on?


better check if there’s something different between the hosts which work and those which don’t :slight_smile:
are you using the same contact_group?