Random email notification - abnormal behaviour

Hello,

I’m facing issues with my Notification Template which sends email to a shared mailbox account.
It started sending a random email, for instance it notified a host recovery (“host is up”) when it is not, because it never went down (at least in the last 6 months). This behaviour never happened.

I have this Notification objects one for the hosts and the other one for warning services.

host

warning services:

Both of them are targeting the same Users (“Email Icinga IT”)

The alternative of sending Icinga2 notification to Microsoft Teams as incoming Webhooks however is working.

notification object (Teams)

user (Teams)

I don’t think is a problem regarding the command mail-host-notification.sh latest version because it worked before

Icinga2 2.11.4
Director 1.10.2
Ubuntu 22.04 LTS

In addition, I did tried to update & upgrade the master and the satellites nodes but I encountered a problem regarding the schema version in icingadb:

I was following this guide

https://icinga.com/docs/icinga-db/latest/doc/04-Upgrading/

but there isn’t mentioned any command for applying the script to my database.

Now I’ll rollback.

Can you share the history of the host where you did get the notification?

The icingadb upgrade should be a simple:
mysql -u "root or icingadb user" -p "icingadb name" < /usr/share/icingadb/schema/mysql/upgrades/1.1.1.sql
pretty much like you did when installing icingadb: https://icinga.com/docs/icinga-db/latest/doc/02-Installation/06-Ubuntu/#setting-up-a-mysql-or-mariadb-database