Issue with Email Notifications in Centreon 23.10.10
Hello Centreon Community,
I'm currently experiencing an issue with email notifications in my Centreon setup. I have configured multiple contacts in my contacts.cfg file, each with their own email address for notifications. However, I'm only receiving notifications at one specific email address of the admin ([email protected]) and not the others.
I've checked my Postfix configuration and it seems to be correctly set up to relay emails through Office 365's SMTP server using authentication. I've also verified the notification settings for each contact in Centreon and they appear to be configured correctly.
Here is a snippet of my contacts.cfg file:
define contact {
contact_name Exploitation
alias exploitation
email [email protected]
host_notification_period workhours
service_notification_period workhours
host_notification_options d,u,r,f
service_notification_options w,u,c,r
register 1
timezone :Europe/Zurich
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_commands host-notify-by-email
service_notification_commands service-notify-by-email
}
define contact {
contact_name Informatique
alias informatique
email [email protected]
host_notification_period workhours
service_notification_period workhours
host_notification_options d,u,r,f
service_notification_options w,u,c,r,f
register 1
timezone :Europe/Zurich
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_commands host-notify-by-email
service_notification_commands service-notify-by-email
}
define contact {
contact_name admin_admin
alias admin
email [email protected]
host_notification_period workhours
service_notification_period workhours
host_notification_options d,u,r,f
service_notification_options w,u,c,r
register 1
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_commands host-notify-by-email
service_notification_commands service-notify-by-email
}
When i enabled the debug mode
[notifications] [debug] [111121] Raw notification command: /bin/sh -c '/usr/bin/printf "%b" "***** centreon Notification *****\n\nClient: X \nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATE$ Additional Info : $SERVICEOUTPUT$" | /bin/mail -r [email protected] -s "** Centreon X ! $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$'
[notifications] [info] [111121] SERVICE NOTIFICATION: admin admin;tdhgvabkp;Memory;WARNING;service-notify-by-email;WARNING: physical free: 1.206GB used: 10.793GB size: 11.999GB;
Thanks for help