Skip to main content

Hello,

I’m in the process to upgrade/mirgrate from 21.04 to 24.10.

Everything is “almost” working, I’m actually working on the mail notification.

So I follow the doc here : https://docs.centreon.com/docs/administration/postfix/

Everything is working as expected, I can sent mail using the test command

echo "Test" | mail -s "Test" user@isp.com

But on Centreon, I do not receive any notification.

The Centreon server didn’t even try to sent something (no logs on my SMTP server).
So something seems misconfigured on the server, I have doubt on the postfix service itself, as the status is active (exited) but on the doc it is active (running).

 

Also, I have doubt on the command as maybe something changed during the 21.04 → 24.10 upgrade that didn’t update correctly.

 

Error seems the same as 

Thanks a lot !

On the service or host that should send notifications, do you see the notification sent in the time-line ? Or do you see them executed in the centreon system logs (through the web UI) .

If you see it correctly, then it's most likely your command failing at some point, maybe like you suspect the macros or something 


Hi ​@Alexandre Belhomme ,

Thanks for you message !
I see nothing on the timeline regarding the service :(

On the new platform
On the old platform

 

I check the service conf, it is the same

 

There is contacts in the “ERP_Team” on both platform, and these contacts do have a valid email adress and notifications enabled (same conf too)

 


So it seems the issue is on the detection for notifications, not on the smtp configuration.

Can you look at the gorgone and cbd logs, see if there is communication issues between the technical services ? There is something in the engine that should trigger alerts but doesn’t.

Can you also select the service you are refering to, and check the notification tab from the resource status page ? You should see a contact or a contact group listed. If there is not then the issue may be here.


On the gorgone and cbd logs, I do not see any errors regarding the notification.

Yes, there is a group listed with contacts. Example with my account.


​​​

 


I’m not sure what can block here then. I would only see something within those process, i can’t dig further, sorry.


thanks for taking a look :)

 

I have enable the log as follow :

 

In the centengine.log, I do see these messages :

<2025-08-19T16:53:59.081+02:00] 0notifications] strace] e455864]  _notification_number _is_notification_viable_recovery: 0 => 0
r2025-08-19T16:53:59.081+02:00] 0notifications] ndebug] u455864] Notifications are temporarily disabled for this notifier, so we won't send one out.


@Alexandre Belhomme 

I’m stupid … I checked the “hard only” option, the notifications are there …

Old platform
New platform

 

I still don’t get why I didn’t receive the mail, but we are in the good direction :)


Good, you can resolve this then. Glad you found


​Ok ...

After doing another attempt, I manage to receive a mail from the central, it is where the mail are configured.
The attempt that I made yesterday was on a remote poller …

So I discovered that the remote poller must have a working postfix to sent mail notifications …

 

I’m sorry, but that doesn’t make sense as it is the central who handle everything and for me, that’s him who trigger the notification and so on … and that sent the notifications mails !



I’m sorry, but that doesn’t make sense as it is the central who handle everything and for me, that’s him who trigger the notification and so on … and that sent the notifications mails !


Yeah, i got confused by this, but this is the intended behavior based on their doc.
Configuring notifications | Centreon Documentation

Notification commands are executed by the poller that monitors the resource. You will need to configure the ability to send notifications on all pollers.

 

I know there was people looking into how to centralise back those notifications, if you want to give it a read. (it is in french)
Mise en place d’une architecture Centreon distribuée avec notifications centralisées via un broker intermédiaire | Community


Reply