Hi All,
I encountered on this problem amd working with the icinga2 logs but didn’t find the right configuration that should solve it.
The icinga2 not sending emails on change state of services in monitored clients only on the hosts.
Which means if i stopped service on Linux client , we getting the alert on the dashboard but not receiving email.
I tested it on several monitored clients and it’s same behavior,
For example by stop the ssh on monitored client we can see the alert on dashboard, but not getting notification and if i will shutdown the host i’m getting alert that host is down.
In addition I added a custom check that monitor if Postifx service of icinga2 client is down,
When I stopping the postifx we getting the service alert on dashboard but not alerting by mail.
Since it does not notify comprehensively on all services, and not just for custom
i’m sure it’s a general configuration but i didn’t get to it by investigate from icinga2 log.
users = null
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 26:3-26:43
vars = null
zone = “SITE”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
Object ‘icinga2-fqdn!ping4!mail-icingaadmin’ of type ‘Notification’:
% declared in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
__name = “icinga2-fqdn!ping4!mail-icingaadmin”
command = “mail-service-notification”
% = modified in ‘/etc/icinga2/zones.d/global-templates/templates.conf’, lines 64:3-64:39
command_endpoint = “”
host_name = “icinga2-fqdn”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
interval = 0
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 27:1-27:12
name = “mail-icingaadmin”
package = “_etc”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
period = “24x7”
% = modified in ‘/etc/icinga2/zones.d/global-templates/templates.conf’, lines 72:3-72:17
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 31:3-31:17
service_name = “ping4”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
users = null
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 26:3-26:43
vars = null
zone = “SITE”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
Object ‘icinga2-fqdn!mail-icingaadmin’ of type ‘Notification’:
% declared in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 11:1-11:45
__name = “icinga2-fqdn!mail-icingaadmin”
command = “mail-host-notification”
% = modified in ‘/etc/icinga2/zones.d/global-templates/templates.conf’, lines 53:3-53:36
command_endpoint = “”
host_name = “icinga2-fqdn”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 11:1-11:45
interval = 0
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 16:2-16:13
name = “mail-icingaadmin”
package = “_etc”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 11:1-11:45
period = “24x7”
% = modified in ‘/etc/icinga2/zones.d/global-templates/templates.conf’, lines 58:3-58:17
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 19:3-19:17
users = null
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 15:3-15:43
vars = null
zone = “SITE”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 11:1-11:45
Object ‘icinga2-fqdn!cluster!mail-icingaadmin’ of type ‘Notification’:
% declared in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
__name = “icinga2-fqdn!cluster!mail-icingaadmin”
command = “mail-service-notification”
% = modified in ‘/etc/icinga2/zones.d/global-templates/templates.conf’, lines 64:3-64:39
command_endpoint = “”
host_name = “icinga2-fqdn”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
interval = 0
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 27:1-27:12
name = “mail-icingaadmin”
package = “_etc”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
period = “24x7”
% = modified in ‘/etc/icinga2/zones.d/global-templates/templates.conf’, lines 72:3-72:17
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 31:3-31:17
service_name = “cluster”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
users = null
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 26:3-26:43
vars = null
zone = “SITE”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
Object ‘icinga2-fqdn!icinga!mail-icingaadmin’ of type ‘Notification’:
% declared in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
__name = “icinga2-fqdn!icinga!mail-icingaadmin”
command = “mail-service-notification”
% = modified in ‘/etc/icinga2/zones.d/global-templates/templates.conf’, lines 64:3-64:39
command_endpoint = “”
host_name = “icinga2-fqdn”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
interval = 0
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 27:1-27:12
name = “mail-icingaadmin”
package = “_etc”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
period = “24x7”
% = modified in ‘/etc/icinga2/zones.d/global-templates/templates.conf’, lines 72:3-72:17
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 31:3-31:17
service_name = “icinga”
% = modified in ‘/etc/icinga2/zones.d/global-templates/notifications.conf’, lines 22:1-22:48
vars.notification[“mail”] = {
groups = [ “icingaadmins” ]
to the postfix service, as this will probably trigger a apply rule that will create the notification object.
Or do you attach the ones from the host to all services if nothing is explicitly set on the service?
Where do the notifications for the other services of the host come from?
Can you look in /etc/icinga2/zones.d/global-templates/notifications.conf for the apply rules of the mail-service-notification?
Hi Dominik,
just wanted to update that I took a test server i simulated events like /root getting full, ssh stopped, and notification didn’t received.
I saw the incidents only on dashboard