Skip to main content

Hello everybody,

I'm having problems with Microsoft teams notifications on Centreon, it was working before, but now there is no notification, what could be the problem?

 

Thanks

Hi @tades ,

Can you try to run this command with centreon-engine permissions ?

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

Customize this value with your personal informations

WEBOOK_URI

URL_CENTREON

HOST.NAME

You can also check centreon-engine logs to check notifications information in /var/log/centreon-engine/centengine.log


Hi MrManjah,

 

/usr/lib/centreon/plugins/centreon_notification_teams.pl --plugin=notification::microsoft::office365::teams::plugin --mode=alert --custommode=webhookapi --teams-webhook='MY-TEAMS-WEBHOOK-URI’' --notification-type='RECOVERY' host-name='HOSTNAME' --service-state='UP'  --date='20-06-2023' --action-links --centreon-url='MY-CENTREON-URI'
Use of uninitialized value in concatenation (.) or string at /usr/lib/centreon/plugins/centreon_notification_teams.pl line 9435.
Use of uninitialized value in concatenation (.) or string at /usr/lib/centreon/plugins/centreon_notification_teams.pl line 9435.
Use of uninitialized value in concatenation (.) or string at /usr/lib/centreon/plugins/centreon_notification_teams.pl line 9492.
Use of uninitialized value in concatenation (.) or string at /usr/lib/centreon/plugins/centreon_notification_teams.pl line 9492.
UNKNOWN: Cannot decode json response: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Webhook message deli...") at /usr/lib/centreon/plugins/centreon_notification_teams.pl line 9145.


Reply