This plugin aims at providing Rudder integration with Centreon. It can automatically add or remove hosts in Centreon when the corresponding node is set up for monitoring in Rudder.
The nodes can also have monitoring templates applied using the appropriate generic methods in the technique editor.
Install a Centreon server. The server is not required to be running on the same host as the Rudder server. However, this plugin has to be installed and running on the Rudder server.
Install the Centreon plugin on your Rudder server.
Edit the configuration file
/opt/rudder/etc/centreon.conf. This config file has to contain your Centreon server’s webservice API URL, the credentials to access it, and the name of the Centreon poller used to monitor Rudder nodes (Central by default).
|make sure that there is no /api in your centreonWebserviceURL.|
You can also indicate a default Centreon template to apply to new nodes added by Rudder.
Once the plugin is installed, you need to make an initial synchronization using:
This will create a rudder-nodes host group, and add all your Rudder nodes to Centreon, adding them to this group.
|You can re-use this command at any time if you missed some nodes, it will only update the information in Centreon.|
If you want to manage existing nodes using the Rudder plugin, you need to:
Make sure they have the same name as in Rudder
Add them to the rudder-nodes group (it is not done automatically to prevent unwanted changes)
New nodes added to Rudder will be automatically added to your list of Centreon hosts (and removed on deletion of the Rudder node).
This is achieved by Rudder’s post-node-acceptance/deletion hooks, which are calling the plugin with the appropriate options on such events. The plugin will then make calls to the APIs of the Rudder and Centreon servers to handle the modifications.
Monitoring with Centreon
If you want to monitor your rudder-nodes
In your rudder interface, you can choose among different available rudder directives or create your own technique editor which is a description in code form of what the agent has to do on the node and it will be deployed on a rudder-nodes through rules.
Note: Rule is the application of one or more directives to a group of nodes. It is the glue between both Asset Management and Configuration Management parts of the application.
Centreon comes with the possiblity to add monitoring templates to its hosts.
Create a service template model in centreon or check for available ones proposed by Centreon interface.
Once you know the name of a suitable template for a Rudder node/nodegroup, you can add it using the Monitoring template generic method from the technique editor.
In order to configure the monitoring of the Rudder nodes, you can provide Centreon with parameters associated to its hosts. The Monitoring parameter generic method achieves this.
At this stage, Centreon supervise your rudder-node services in a fairly syncronized way.
The data will be sent to the Centreon server after the agent and the synchonization process have run. This synchonization process can be manually executed by running:
on the Rudder server.
← Branding Change validation →