email Notification not working, upgraded 2.8.32 to 21.10
upgraded from 2.8.32 to 21.10 and notification not working.
Host timeline showing as alerted user, but mail is not receiving for alerts.
Relayhost is already set and test echo email is working fine.
No traces of notification mail in /var/log/maillog apart from test email.
Any ideas how to trace the issue ?
Page 1 / 1
Hello @muhammed.suhile,
What are the commands used for your notifications by email ? Try to execute them manually to see if they work.
I used below command to test and that worked but alert from centreon is not receiving.
echo "This is a test" | mail -s "My subject" yourmailaddr@youroffice.com
I meant the one used by centengine. You can find the one used on the contact page of the involved users and its command line on the Configuration > Commands > Notifications menu.
Sorry, I got confused. I am using default email host-notify-by-email command.
I am getting error “-bash: @MAILER@: command not found” when I run the commands directly.
I have verified that mailx is installed and its latest version.
Perfectly normal, your OS doesn’t know what “$NOTIFICATIONTYPE$”, “@MAILER@”, and so on means but centengine does.
What is your “Directory + Mailer Binary” command on the page Administration > Parameters > Monitoring ?
Directory + Mailer Binary = /bin/mail
Is the affected Host on the Central or on a poller ? In Centreon < 21.10, it is the pollers who send the notifications. If so, you should also test if you can receive notifications from them.
Its on Central
Hi, I have the same problem as the author
What is the manipulation to do so that the centreon-engine user can send the alerts?
Hello I invite you to enable the notification debug.
To do it, please go on “Configuration > Pollers > Engine configuration” , click on the central configuration and go to the Debug tab. Here you can enable the “Notification information” and “Commands” boxes.
You will need to generate and export the configuration.
Now you can do some alert tests (host becomes in DOWN HARD state) and check the file /var/log/centreon-engine/centengine.debug.
I ran the command directly and I am getting below.
No such file or directory "/root/dead.letter" 8/466 . . . message not sent.
Any thoughts ?
I can see all notifications in the /var/lib/centreon-engine/dead.letter file
@sduret I have Identified the issue, The issue is the command has missing value for $ADMINEMAIL$. I have verified that admin email is added to “Configuration > Pollers > Engine configuration > Admin > Administrator Email Address”.
But the Centreon is not pulling the value. Anyway to fix this ?