Deploying a poller
With Centreon Cloud, your central server is already ready to use. All you have to do is to install pollers in your infrastructure, and that is very easy: just execute a script and then export the configuration, and there you are!
Before deploying a poller, make sure the prerequisites for your host machine are met. Only users with the Administrator or Editor roles can access the poller installation command.
Step 1: Running the poller installation script​
-
Use SSH to connect to the server that will become a poller.
-
Disable SELinux (this is recommended to obtain a seamless installation. Advanced users can enable it depending on their SELinux expertise or security constraints, but should be attentive to the side-effects of this setup.)
- Edit the configuration file /etc/sysconfig/selinux.
- Set the value of SELINUX to disabled (SELINUX=disabled).
- Save the file and reboot the system to apply the change.
-
By default, the hostname of the machine will become the name of the poller. If you want to change the machine's hostname, use the following command:
hostnamectl set-hostname your-hostname
. -
On your central server, click the arrow next to Pollers at the left of the header bar.
-
In the pop-up that appears, click Copy install command. The command is copied to your clipboard.
-
On the server that will become your poller, in your terminal, paste the install command and execute it (this should take about 10 minutes).
-
When this is finished, on your central server, go to Configuration > Pollers > Pollers. The new poller appears in the list of pollers.
- The address in the IP Address column is that of the poller as seen by the central server.
- The poller is not running yet (No in the Is running? column).
Step 2: Exporting the configuration and restarting the poller​
Export the configuration for this poller:
- On the central server, go to Configuration > Pollers > Pollers, then select the poller you have just created.
- Click Export configuration. A new page opens:
- Check the first four boxes
- Under Restart Monitoring Engine, select the Restart method.
- Click Export. A log of the export is displayed. This should have no errors.
- Go back to Configuration > Pollers > Pollers: the poller now has Yes under Is running?. Your poller is now ready to monitor resources.