Skip to main content

I have Centreon 22.10 and I’m trying to implement Teams notification integration following the procedure


But I keep getting the error below.

"root@centreon ~]# centreon -u 'admin' -p '********' -i /tmp/clapi-teams.import                               

Line 1 : Object already exists (bam-notify-by-microsoft-teams)
Line 8 : Object already exists (host-notify-by-microsoft-teams)
Line 14 : Object already exists (service-notify-by-microsoft-teams)
Line 21 : Your password must be 12 characters long and must contain : uppercase characters, lowercase characters, numbers, special characters among '@$!%*?&'.
Line 23 : Object not found:hostnotifperiod
Line 25 : Object not found:svcnotifperiod
Line 27 : Object not found:hostnotifopt
Line 29 : Object not found:servicenotifopt
Line 31 : Object not found:contact_pager
Line 33 : Object not found:contact_address1
Line 35 : Object not found:contact_js_effects
Line 37 : Object not found:reach_api
Line 39 : Object not found:reach_api_rt
Line 41 : Object not found:contact_enable_notifications
Line 43 : Object not found:contact_activate
Line 45 : Object not found:show_deprecated_pages
Line 47 : Object not found:contact_ldap_last_sync
Line 49 : Object not found:contact_ldap_required_sync
Line 51 : Object not found:hostnotifcmd
Line 53 : Object not found:svcnotifcmd


Any ideas ?

I received the notifications if I run it manually

/usr/lib/centreon/plugins/centreon_notification_teams.pl --plugin=notification::microsoft::office365::teams::plugin --mode=alert --custommode=webhookapi --teams-webhook=https:aWEBOOK_URI] --notification-type='RECOVERY' host-name='OHOST.NAME]' --service-state='UP'  --date='12-05-2022' --action-links --centreon-url=kURL_CENTREON]




 

👋

 

@gaetan.meister have you changed your password policy? is the user active?

 

Line 21 : Your password must be 12 characters long and must contain : uppercase characters, lowercase characters, numbers, special characters among '@$!%*?&'.

 

also (https://docs.centreon.com/docs/api/clapi/#basic-usage)

 

NOTE: If your passwords are encoded with SHA1 in database (MD5 by default), use the -s option:

 

--edit--

There is also a line in the example /tmp/clapi-teams.import that you might need to adjust

CONTACT;ADD;Microsoft-Teams-Consulting-Channel;notify_teams_consulting_channel;node@deadend;md5__2995dea107230ea9a8c4d6e5;0;0;browser;loca

 

🎭


So I deleted the notifications, created the user account manually and changed the password and simply reimported. It works now. thanks to the community


Reply