Icinga2 notifications not sended

Please describe your problem as detailed as possible and don’t forget to use a meaningful title :slight_smile:

Hello, I have a Problem while sending Messages via Telegram and icinga2. Custom Messages will be sended and for example OK messages wont be sended. The Status Host or Service at the notification Area: “2 notifications have been sent for this issue. The last one was sent 0m 37s ago.”
What did I do wrong? I added a manual curl to the bash script, so i can see, the script is working… There was no Message by service problem…
I added all States and Transition types to my apply rule…

before I shut the System down it works, so can i return to another state by director? It’s a Test-system, so there is no backup :frowning:

OS is centos 8 Stream, Selinux is permissive, firewall blocked nothing

So you mean to say Custom Messages ARE NOT sent, but the notification area says 2 notifications were sent?

If that’s the case, what do the logs (usually in /var/log/icinga2/icinga2.log ) have to say about notifications?

Icinga will “send” notifications, but has no idea to tell you if it was successful or not. If it’s trying to execute a command and cannot, you will see the error in the logs. Usually it’s a permissions error or a pathing error.

Hmmmmm, I created the host 1.1.1.1 and changed for tests the route on my router:

[2021-09-01 16:17:02 +0200] information/ExternalCommandListener: Executing external command: [1630505822] SCHEDULE_FORCED_HOST_CHECK;1.1.1.1;1630505822
[2021-09-01 16:17:06 +0200] information/Checkable: Checkable ‘1.1.1.1’ has 1 notification(s). Checking filters for type ‘Recovery’, sends will be logged.
[2021-09-01 16:17:20 +0200] information/ExternalCommandListener: Executing external command: [1630505840] SCHEDULE_FORCED_HOST_CHECK;1.1.1.1;1630505840
[2021-09-01 16:17:34 +0200] information/Checkable: Checkable ‘1.1.1.1!check_ping’ has 1 notification(s). Checking filters for type ‘Problem’, sends will be logged.
[2021-09-01 16:18:16 +0200] information/Checkable: Checkable ‘1.1.1.1’ has 1 notification(s). Checking filters for type ‘Problem’, sends will be logged.

Here I created a custom notification
[2021-09-01 16:20:03 +0200] information/ExternalCommandListener: Executing external command: [1630506003] SEND_CUSTOM_HOST_NOTIFICATION;1.1.1.1;2;usererer1;test
[2021-09-01 16:20:03 +0200] information/Checkable: Checkable ‘1.1.1.1’ has 1 notification(s). Checking filters for type ‘Custom’, sends will be logged.
[2021-09-01 16:20:03 +0200] information/Notification: Sending ‘Custom’ notification ‘1.1.1.1!any-host’ for user ‘usererer1’
[2021-09-01 16:20:03 +0200] information/Notification: Completed sending ‘Custom’ notification ‘1.1.1.1!any-host’ for checkable ‘1.1.1.1’ and user ‘usererer1’ using command ‘telegram-host-notification’.

Hey there :slight_smile:

We always love to see posts formatted according to the formatting guidelines which can help you make your posts more readable, which in turn will make it easier for others to answer.