centreon/centreon-archived

21.04.8 - notification template are not more wokring - warning/errors on Poller export

Closed this issue · 6 comments

After upgrade to 21.04.8 export to Poller show's a lot of warnings and errors on user notification configuration. All users has a notification template attached, but Notification Period and Notification Command for services and hosts defined on notification template will not more considered.

image

Hi @joschi99
Can you show us how your contact templates are configured?
Or better, can you send us the result of
centreon -u admin -p centreon -e | grep CONTACT
Please wipe out your passwords' hashes before sending them ;-)
Thanks!

CONTACTTPL;ADD;Defaut;generic-contact_template;;md5__XXX;;;;local
CONTACTTPL;setparam;generic-contact_template;hostnotifperiod;24x7
CONTACTTPL;setparam;generic-contact_template;svcnotifperiod;24x7
CONTACTTPL;setparam;generic-contact_template;hostnotifopt;d,u,r
CONTACTTPL;setparam;generic-contact_template;servicenotifopt;w,u,c,r
CONTACTTPL;setparam;generic-contact_template;contact_js_effects;0
CONTACTTPL;setparam;generic-contact_template;timezone;Europe/Paris
CONTACTTPL;setparam;generic-contact_template;reach_api;0
CONTACTTPL;setparam;generic-contact_template;reach_api_rt;0
CONTACTTPL;setparam;generic-contact_template;contact_enable_notifications;1
CONTACTTPL;setparam;generic-contact_template;contact_type_msg;txt
CONTACTTPL;setparam;generic-contact_template;contact_activate;1
CONTACTTPL;setparam;generic-contact_template;default_page;200
CONTACTTPL;setparam;generic-contact_template;show_deprecated_pages;1
CONTACTTPL;setparam;generic-contact_template;contact_ldap_last_sync;0
CONTACTTPL;setparam;generic-contact_template;contact_ldap_required_sync;0
CONTACTTPL;setparam;generic-contact_template;hostnotifcmd;host-notify-by-email
CONTACTTPL;setparam;generic-contact_template;svcnotifcmd;service-notify-by-email
CONTACTTPL;ADD;ISOFT;ISOFT;;md5__XXX;0;;browser;
CONTACTTPL;setparam;ISOFT;hostnotifperiod;24x7
CONTACTTPL;setparam;ISOFT;svcnotifperiod;24x7
CONTACTTPL;setparam;ISOFT;hostnotifopt;d,u,r,f
CONTACTTPL;setparam;ISOFT;servicenotifopt;w,u,c,r,f
CONTACTTPL;setparam;ISOFT;contact_js_effects;0
CONTACTTPL;setparam;ISOFT;timezone;
CONTACTTPL;setparam;ISOFT;reach_api;0
CONTACTTPL;setparam;ISOFT;reach_api_rt;0
CONTACTTPL;setparam;ISOFT;contact_enable_notifications;0
CONTACTTPL;setparam;ISOFT;contact_type_msg;txt
CONTACTTPL;setparam;ISOFT;contact_activate;1
CONTACTTPL;setparam;ISOFT;show_deprecated_pages;0
CONTACTTPL;setparam;ISOFT;contact_ldap_last_sync;0
CONTACTTPL;setparam;ISOFT;contact_ldap_required_sync;0
CONTACTTPL;setparam;ISOFT;hostnotifcmd;host-notify-by-email
CONTACTTPL;setparam;ISOFT;svcnotifcmd;service-notify-by-email
CONTACTTPL;ADD;ISOFT-Bettersilver;ISOFT-Bettersilver;;md5__XXX;0;;browser;
CONTACTTPL;setparam;ISOFT-Bettersilver;hostnotifperiod;24x7
CONTACTTPL;setparam;ISOFT-Bettersilver;svcnotifperiod;24x7
CONTACTTPL;setparam;ISOFT-Bettersilver;hostnotifopt;d,u,r,f
CONTACTTPL;setparam;ISOFT-Bettersilver;servicenotifopt;w,u,c,r,f
CONTACTTPL;setparam;ISOFT-Bettersilver;contact_js_effects;0
CONTACTTPL;setparam;ISOFT-Bettersilver;timezone;
CONTACTTPL;setparam;ISOFT-Bettersilver;reach_api;0
CONTACTTPL;setparam;ISOFT-Bettersilver;reach_api_rt;0
CONTACTTPL;setparam;ISOFT-Bettersilver;contact_enable_notifications;0
CONTACTTPL;setparam;ISOFT-Bettersilver;contact_type_msg;txt
CONTACTTPL;setparam;ISOFT-Bettersilver;contact_activate;1
CONTACTTPL;setparam;ISOFT-Bettersilver;show_deprecated_pages;0
CONTACTTPL;setparam;ISOFT-Bettersilver;contact_ldap_last_sync;0
CONTACTTPL;setparam;ISOFT-Bettersilver;contact_ldap_required_sync;0
CONTACTTPL;setparam;ISOFT-Bettersilver;hostnotifcmd;host-notify-by-email
CONTACTTPL;setparam;ISOFT-Bettersilver;svcnotifcmd;service-notify-by-email
CONTACT;ADD;assistenza-ISOFT;assistenza;assistenza@gmail.com;md5__XXX;0;1;browser;local
CONTACT;setparam;assistenza;hostnotifperiod;24x7
CONTACT;setparam;assistenza;svcnotifperiod;24x7
CONTACT;setparam;assistenza;hostnotifopt;d,u,r,f
CONTACT;setparam;assistenza;servicenotifopt;w,u,c,r,f
CONTACT;setparam;assistenza;contact_js_effects;0
CONTACT;setparam;assistenza;timezone;
CONTACT;setparam;assistenza;reach_api;0
CONTACT;setparam;assistenza;reach_api_rt;0
CONTACT;setparam;assistenza;contact_enable_notifications;1
CONTACT;setparam;assistenza;template;ISOFT
CONTACT;setparam;assistenza;contact_type_msg;txt
CONTACT;setparam;assistenza;contact_activate;1
CONTACT;setparam;assistenza;default_page;200
CONTACT;setparam;assistenza;show_deprecated_pages;1
CONTACT;setparam;assistenza;contact_ldap_last_sync;0
CONTACT;setparam;assistenza;contact_ldap_required_sync;0
CONTACT;setparam;assistenza;hostnotifcmd;host-notify-by-email
CONTACT;setparam;assistenza;svcnotifcmd;service-notify-by-email
CONTACT;ADD;Claudio-ISOFT;claudio;claudio@gmail.com;md5__XXX;0;1;browser;local
CONTACT;setparam;claudio;contact_js_effects;0
CONTACT;setparam;claudio;reach_api;0
CONTACT;setparam;claudio;reach_api_rt;0
CONTACT;setparam;claudio;contact_enable_notifications;2
CONTACT;setparam;claudio;template;ISOFT
CONTACT;setparam;claudio;contact_type_msg;txt
CONTACT;setparam;claudio;contact_activate;1
CONTACT;setparam;claudio;default_page;200
CONTACT;setparam;claudio;show_deprecated_pages;0
CONTACT;setparam;claudio;contact_ldap_last_sync;0
CONTACT;setparam;claudio;contact_ldap_required_sync;0
CONTACT;ADD;Guest;guest;guest@localhost;md5__XXX;0;0;en_US.UTF-8;local
CONTACT;setparam;guest;hostnotifperiod;24x7
CONTACT;setparam;guest;svcnotifperiod;24x7
CONTACT;setparam;guest;hostnotifopt;n
CONTACT;setparam;guest;servicenotifopt;n
CONTACT;setparam;guest;contact_js_effects;0
CONTACT;setparam;guest;timezone;
CONTACT;setparam;guest;reach_api;0
CONTACT;setparam;guest;reach_api_rt;0
CONTACT;setparam;guest;contact_enable_notifications;2
CONTACT;setparam;guest;contact_type_msg;txt
CONTACT;setparam;guest;contact_activate;0
CONTACT;setparam;guest;default_page;200
CONTACT;setparam;guest;show_deprecated_pages;1
CONTACT;setparam;guest;contact_ldap_last_sync;0
CONTACT;setparam;guest;contact_ldap_required_sync;0
CONTACT;ADD;Bettersilver;centreon-better;centreon-better@gmail.com;md5__XXX;0;1;browser;local
CONTACT;setparam;centreon-better;contact_js_effects;0
CONTACT;setparam;centreon-better;reach_api;0
CONTACT;setparam;centreon-better;reach_api_rt;0
CONTACT;setparam;centreon-better;contact_enable_notifications;2
CONTACT;setparam;centreon-better;template;ISOFT-Bettersilver
CONTACT;setparam;centreon-better;contact_type_msg;txt
CONTACT;setparam;centreon-better;contact_activate;1
CONTACT;setparam;centreon-better;default_page;200
CONTACT;setparam;centreon-better;show_deprecated_pages;0
CONTACT;setparam;centreon-better;contact_ldap_last_sync;0
CONTACT;setparam;centreon-better;contact_ldap_required_sync;0
CONTACT;ADD;iVertix-ISOFT;centreon-isoft;centreon-isoft@gmail.com;md5__XXX;0;1;browser;local
CONTACT;setparam;centreon-isoft;contact_js_effects;0
CONTACT;setparam;centreon-isoft;reach_api;0
CONTACT;setparam;centreon-isoft;reach_api_rt;0
CONTACT;setparam;centreon-isoft;contact_enable_notifications;2
CONTACT;setparam;centreon-isoft;template;ISOFT
CONTACT;setparam;centreon-isoft;contact_type_msg;txt
CONTACT;setparam;centreon-isoft;contact_activate;1
CONTACT;setparam;centreon-isoft;default_page;200
CONTACT;setparam;centreon-isoft;show_deprecated_pages;0
CONTACT;setparam;centreon-isoft;contact_ldap_last_sync;0
CONTACT;setparam;centreon-isoft;contact_ldap_required_sync;0
CONTACT;ADD;User;user;user@localhost;md5__XXX;0;0;en_US.UTF-8;local
CONTACT;setparam;user;hostnotifperiod;24x7
CONTACT;setparam;user;svcnotifperiod;24x7
CONTACT;setparam;user;hostnotifopt;n
CONTACT;setparam;user;servicenotifopt;n
CONTACT;setparam;user;contact_js_effects;0
CONTACT;setparam;user;timezone;
CONTACT;setparam;user;reach_api;0
CONTACT;setparam;user;reach_api_rt;0
CONTACT;setparam;user;contact_enable_notifications;2
CONTACT;setparam;user;contact_type_msg;txt
CONTACT;setparam;user;contact_activate;0
CONTACT;setparam;user;default_page;200
CONTACT;setparam;user;show_deprecated_pages;1
CONTACT;setparam;user;contact_ldap_last_sync;0
CONTACT;setparam;user;contact_ldap_required_sync;0
ACLGROUP;SETCONTACTGROUP;ALL;Guest;
ACLGROUP;SETCONTACTGROUP;isoft-admin;isoft-admin;
ACLGROUP;SETCONTACTGROUP;isoft-bettersilver-ro;isoft-admin|isoft-bettersilver-ro;
ACLGROUP;SETCONTACTGROUP;isoft-ro;isoft-ro;

Thanks, we will try to reproduce your issue.

Thank you Jochen, I finally managed to reproduce it I understand why.
We'll try to fix it soon!

Internal ref: MON-11760