Skip to main content
Planned

ansible module

Related products:Infra Monitoring - Configuration
  • September 27, 2022
  • 7 replies
  • 142 views

Forum|alt.badge.img+4

Hello,

I was used to add some hosts to centreon 2.8 with this ansible module project: https://github.com/guillaumewatteeux/ansible-centreon

Unfortunately, it doesn’t work anymore since I upgraded to 21.04/21.10/22.04.

I guess that many things changed since 2.8 but centreon-sdk-python https://github.com/centreon/centreon-sdk-python hasn’t been modified for 4 years. Two possible deductions: either the sdk project is abandoned, either there has been no needed modification of the centreon API since a long time (but it doesn’t work).

Ansible module was a great community initiative, ans it should be a great idea centreon to develop and support official ansible module for the latest version.

Unless it exists, I have to hack ansible to use clapi with the shell command, but it is not very clean in a world where any ansible exists for any usages...

7 replies

fgbetokpanou
Centreonian
Forum|alt.badge.img+11
  • Centreonian
  • September 27, 2022

Hi @digitall.finger,  Thank you for your idea proposal. I would invite you to reformulate it according to the guidelines you can find here. This would help the Product Manager Team to better evaluate your proposal. Thanks for your understanding 😊


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • October 5, 2022
NewNeeds Votes

omercier
Centreonian
Forum|alt.badge.img+13
  • Centreonian
  • October 21, 2022

Hi @digitall.finger

We are planning to work on a new configuration API. Once this new API will be available, we may work on SDKs for tools such as Ansible. In the meantime, I advice you to use this tool.

There is a demonstration of it in this video (in french).

If you interested in explaining your use case, please contact me in DM.


Forum|alt.badge.img
  • Steward *
  • January 20, 2026

Hello,

I Just release a centreon ansible module for manage :

  • Host
  • Host Group
  • Host Category
  • Host Severity
  • Monitoring Server

(You can found some search module too)

And i add a inventory plugin for host.

The goal was to manage through Ansible AWX via APIv2.

All my work is avaible on GitHub and i release on galaxy, i try to ducumente all my work.

I’m not a python / Ansible Dev so if you found bug, feature or optimization, feel free to open issue on my git or ask a pull request


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • January 20, 2026

Hello, that is great work! We will look into it and enhance/extend as we move towards an official ansible integration.


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • January 20, 2026
Needs VotesPlanned

Forum|alt.badge.img
  • Steward *
  • January 20, 2026

Thanks, feel free to contact me i’m open to call about this little “project”