No email notification after Icinga update

Hello community,

after last Icinga2 update (2026-10-28) the email notifications nevermore working.

Before the updates the ‘Problem’ email notifications would received.

What I did: (on the Icinga2 host and other monitored hosts)
apt update
apt upgrade

After the update the ‘Recovery’ email notifications would never sent.
(should be sent to local root and an external email-address)

For testing purpose a monitored host would be shut down.
cat /var/log/icinga2/debug.log | grep Problem
[2026-11-02 15:36:30 +0100] information/Checkable: Checkable 'HOST.internal' has 1 notification(s). Checking filters for type 'Problem', sends will be logged.
[2026-11-02 15:36:30 +0100] notice/Notification: Attempting to send notifications of type 'Problem' for notification object 'HOST.internal!mail-icingaadmin'.
[2026-11-02 15:36:30 +0100] debug/Notification: Type 'Problem', TypeFilter: Acknowledgement, Custom, DowntimeEnd, DowntimeRemoved, DowntimeStart, FlappingEnd, FlappingStart, Problem and Recovery (FType=32, TypeFilter=511)
[2026-11-02 15:36:30 +0100] debug/Notification: User 'icingaadmin' notification 'HOST.internal!mail-icingaadmin', Type 'Problem', TypeFilter: Acknowledgement, Custom, DowntimeEnd, DowntimeRemoved, DowntimeStart, FlappingEnd, Flappi
ngStart, Problem and Recovery (FType=32, TypeFilter=511)
[2026-11-02 15:36:30 +0100] information/Notification: Sending 'Problem' notification 'HOST.internal!mail-icingaadmin' for user 'icingaadmin'
[2026-11-02 15:36:30 +0100] information/Notification: Completed sending 'Problem' notification 'HOST.internal!mail-icingaadmin' for checkable 'HOST.internal' and user 'icingaadmin' using command 'mail-
host-notification'.

Result: No email notification.

Script mail-host-notification.sh would be tested:
/etc/icinga2/scripts/mail-host-notification.sh -d test -l $HOSTNAME -n $HOSTNAME -o test -r ``monitoring@FQDN.TLD`` -s test -t test

Result: Email sent.

What I also did:
su - postgres
psql -U icingadb icingadb < /usr/share/icingadb/schema/pgsql/upgrades/1.6.0.sql

Restarted icingadb and icinga2.

No changes with desired notifications.

The Icinga WebInterface show the missing host and services.


System Information of the Icinga2 Master:

root@icinga2:~# icinga2 -V
icinga2 - The Icinga 2 network monitoring daemon (version: r2.16.6-1)
...
System information:
Platform: Debian GNU/Linux
Platform version: 13 (trixie)
Kernel: Linux
Kernel version: 6.12.113+deb13-amd64
Architecture: x86_64

Build information:
Compiler: GNU 14.2.0
Build host: runner-aa2jha3hm-project-575-concurrent-2
OpenSSL version: OpenSSL 3.5.7 9 Jun 2026

Application information:
...

root@icinga2:~# icinga2 feature list
Disabled features: command compatlog elasticsearch gelf graphite influxdb influxdb2 journald livestatus opentsdb otlpmetrics perfdata syslog
Enabled features: api checker debuglog icingadb mainlog notification

root@icinga2:~# icinga2 daemon -C
NO errors reported.

Now I have no more ideas. I need somebody’s help.

Regards L.

Hi @Legolas ,

can you please share the configs for

  • user ‘icingaadmin’
  • the notification ‘mail-icingaadmin’

What do you mean by that?

Can you share the state history of the affected host?

Thanks for posting!

In Icinga 2.16.6 the mail-host-notificaiton.sh script was slightly changed to fix a security issue.

Are you using the upstream Icinga 2 mail-host-notification.sh script or does yours differ?

The only change was the -r flag, the user’s email address. Does, by any chance, your email start with a dash (-)?

Otherwise, please grep your logs for Notification or consider to temporary enable debug logs, showing what Notification Command is actually being executed.

Thank you for reply,

object User “icingaadmin” {
import “generic-user”

display_name = “Icinga 2 Admin”
groups = [ “icingaadmins” ]

email = “root@localhost monitoring@FQDN.TLD”
}

object UserGroup “icingaadmins” {
display_name = “Icinga 2 Admin Group”
}

apply Notification “mail-icingaadmin” to Host {
import “mail-host-notification”
user_groups = host.vars.notification.mail.groups
users = host.vars.notification.mail.users
//interval = 2h
interval = 0
vars.notification_logtosyslog = true
assign where host.vars.notification.mail
}

apply Notification “mail-icingaadmin” to Service {
import “mail-service-notification”
user_groups = host.vars.notification.mail.groups
users = host.vars.notification.mail.users
//interval = 2h
interval = 0
vars.notification_logtosyslog = true
assign where host.vars.notification.mail
}

That means that the host, which were shut down for testing purpose, were shown as unreachable within the Icinga Webinterface.

[2026-11-02 15:28:54 +0100] information/NotificationComponent: ‘notification’ started.
[2026-11-02 15:36:30 +0100] information/Notification: \
Sending ‘Problem’ notification ‘HOST.internal!mail-icingaadmin’ for user ‘icingaadmin’
[2026-11-02 15:36:30 +0100] information/Notification: \
Completed sending ‘Problem’ notification ‘HOST.internal!mail-icingaadmin’ for checkable ‘HOST.internal’ and user ‘icingaadmin’ using command ‘mail-host-notification’.
[2026-11-02 15:42:37 +0100] information/Notification: \
Sending ‘Recovery’ notification ‘HOST.internal!mail-icingaadmin’ for user ‘icingaadmin’
[2026-11-02 15:42:37 +0100] information/Notification: \
Completed sending ‘Recovery’ notification ‘HOST.internal!mail-icingaadmin’ for checkable ‘HOST.internal’ and user ‘icingaadmin’ using command ‘mail-host-notification’.
[2026-11-02 16:25:11 +0100] information/Notification: \
Sending ‘Problem’ notification ‘HOST.internal!mail-icingaadmin’ for user ‘icingaadmin’
[2026-11-02 16:25:11 +0100] information/Notification: \
Completed sending ‘Problem’ notification ‘HOST.internal!mail-icingaadmin’ for checkable ‘HOST.internal’ and user ‘icingaadmin’ using command ‘mail-host-notification’.
[2026-11-02 16:41:08 +0100] information/NotificationComponent: ‘notification’ stopped.
[2026-11-02 16:41:41 +0100] information/NotificationComponent: ‘notification’ started.
[2026-11-02 16:44:37 +0100] information/Notification: \
Sending ‘Recovery’ notification ‘HOST.internal!mail-icingaadmin’ for user ‘icingaadmin’
[2026-11-02 16:44:37 +0100] information/Notification: \
Completed sending ‘Recovery’ notification ‘HOST.internal!mail-icingaadmin’ for checkable ‘HOST.internal’ and user ‘icingaadmin’ using command ‘mail-host-notification’.
[2026-11-02 21:59:06 +0100] information/NotificationComponent: ‘notification’ stopped.
[2026-11-02 21:59:32 +0100] information/NotificationComponent: ‘notification’ started.

Hope that’s sufficient.

I’m using the upstream scripts.

No, it doesn’t. emails are “root monitoring@FQDN.TLD”

I will do.

I guess that actually worked before, as the string from the email field is used 1:1 during the mail script execution.

But the mentioned changes to the notifications scripts by @apenning, i.e. surrounding the receipient with quotes, does prevent that from working.

So I’d say the solution is to have one user object for each mail address (“how it should be”).

That it was. A configuration mismatch from the beginning.
Thank you for help and your time.