Skip to main content

Hello Community,

Recently i’ve posted an issue on the project chatops Issues · centreon/centreon-chatops · GitHub, i reviewed the Centreon documentation. I think i have my answer.

Actually chatops module seems to be able to communicate with Centreon (Acknowledgement, Downtimes, list status) and it can’t push/stream events inside a chatroom.

The only possibility to remediate to that would be an output broker for Mattermost or a stream connector for Mattermost ? (Broker module seems to be the only flow to stream events, business activity and metrics)

A centreon-plugins could be a more simple solution in order to just be a notification command (a fork of Notification Slack for Mattermost) ?

Regards,

Greg

Hi @gespada 

 

Did you try to use the centreon-plugins slack against your mattermost? 

 

I think it should work. 


Hello @sims24 

Yes, as Mattermost is a Slack, it could work.

I will check that, in a couple of days and i will post the result.

Thanks.


Hello,

ChatOps module is not compatible with the last release 22.04

Impossible to install and uninstall because the button stay on install mode.

Impossible to reach the configuration page.

I will post the error message.

Regards,


Hi,

I’ve tried the Alert Slack plugin and not give it an entire satisfaction with Mattermost.

Mattermost need to use a Bot account to be compliant with it (Users, Licence, etc..) Bot Accounts (mattermost.com)

$ /usr/lib/centreon/centreon-plugins/centreon_plugins.pl --plugin='notification::slack::plugin' --mode='alert' --slack-url='http://xxx.xxx.xxx.xxx:8065/mattermost/hooks/tozdnu1jxigou8o3q3mgywis6o' --slack-channel='monitoring-2110' --slack-username='centreon-bot' --host-name='Google' --service-description='HTTP-Response-Time' --service-state='CRITICAL' --service-output='Critical: response time 10.306s' --slack-color='' --slack-emoji=':ghost:' --priority='High P1' --zone='Production' --centreon-url='https://xxx.xxx.xxx.xxx/centreon' --centreon-token='DGQRqdhhrqhHDRSHRSHg' --graph-url='%{centreon_url}/include/views/graphs/generateGraphs/generateImage.php?username=gespada&token=%{centreon_token}&hostname=%{host_name}&service=%{service_description}' --link-url='%{centreon_url}/main.php?p=20201&o=svc&host_search=%{host_name}&svc_search=%{service_description}' --timeout='10'
slack response: ok

--slack-username, --slack-emoji options are not necessary for Mattermost and maybe also --credentials --username --password --basic

It's a bit damage, the --graph url generate an old graph and the --link-url send to the old service page.

 

About the ChatOps Module, i’ve tried many version of Centreon 18.10 to the 22.04 and it not working on all version.

Version used of Mattermost is 6.3.8 a recent ESR version.

  • 22.04 Impossible to install the module
  • 21.10 Impossible to interact with Centreon
  • 21.04 Working, but it’s not possible to schedule a downtime, command is KO on Mattermost (Error 500), an acknowledge of an host doesn’t work, services with non OK state are not acknowledged (Acknowledge service works, list status and echo message also
  • 18.10 Working, but it’s not possible to schedule a downtime, command is OK on Mattermost but not repercutated on Centreon (Acknowledge host and service works, list status and echo message also

About the downtime, the syntax of ISO 8601 for the start and the end is not easy to write.


 

  • 21.10 Impossible to interact with Centreon

I’m wrong, with all version i tested i’ve set a wrong parameter

  • 21.10 Working, but it’s not possible to schedule a downtime, command is KO on Mattermost (Error 500), an acknowledge of an host doesn’t work, services with non OK state are not acknowledged (Acknowledge service works, list status and echo message also

 


Hi,

Module could be abandoned and community don’t contribute to it. Impossibility to install it with actual release 22.xx

The Slack Alert centreon-plugins need to be optimized to Mattermost according this best practice with Bot Account, and maybe to provide the new charts.

I close my question.

Regards,


Reply