Installing a Remote Server is similar to installing a Centreon Central Server.
Step 1: Startup the server
To install Centreon, start up your server from the Centreon ISO image in version el7. Start up with Install CentOS 7:
Step 2: Choose a language
Choose the language for the installation process and click on Continue:
Step 3: Select the component
Click on the Installation Type menu:
You have different options to choose from:
- Central with database: Install Centreon (web interface and database), monitoring engine and Broker.
- Central without database: Install Centreon (web interface only), monitoring engine and Broker.
- Poller: Install poller (monitoring engine and Broker only).
- Database: Install database server (if you have already installed a Central server without a database option).
After selecting your installation type, click Done.
Step 4: System configuration
Configure disk Partitioning
Click on the Installation Destination menu:
Select the hard disk drive and the I will configure partitioning option. Then click on Done:
Using the + button, create your own partitioning file system following the instructions in prerequisites chapter. Then click on Done:
It is recommended to use LVM as the default partitioning scheme.
A confirmation window appears. Click on Accept Changes to validate the partitioning:
Configure the timezone
Click on the Date & Time menu:
Select the time zone and then click the gear button to configure the NTP server:
Type in the name of the NTP server you wish to use and click the plus button. Or, select one from the list of predefined NTP servers then click OK and then Done:
It is okay that you can't enable the “network time” option in this screen. It will become enabled automatically when you configure the network and hostname.
Configure the network
Click on the Network & Hostname menu:
Enable all network interfaces by clicking the button in the top right from off to on. Then click on Done:
Begin the installation
Once configuration is complete, click on Begin Installation:
Click on Root Password:
Define and confirm the root user password. Click on Done:
Wait for the installation process to finish. You can also use this time to add additional users to the system if you desire.
When the installation is complete, click on Reboot:
Update the system
Connect to your server using a terminal, and execute the command:
Accept all GPG keys if you are prompted
Then restart your server with the following command:
Services startup during system bootup
To make services start automatically during system bootup, run these commands on the remote server:
systemctl enable rh-php72-php-fpm httpd24-httpd mariadb centreon cbd centengine gorgoned snmptrapd centreontrapd snmpd
Conclude installation by performing web installation steps.
In the step Initialization of the monitoring, only the actions from 6 to 8 must be done.
Enable the Remote Server option
To transform the server into a Remote Server, connect to the server and execute following command:
/usr/share/centreon/bin/centreon -u admin -p centreon -a enableRemote -o CentreonRemoteServer \
-v '<IP_CENTREON_CENTRAL>;<don't check SSL CA on Central>;<HTTP method>;<TCP port>;<don't check SSL CA on Remote>;<no proxy to call Central>'
Replace <IP_CENTREON_CENTRAL> by the IP of the Centreon server as seen by the poller. You can define multiple IP address using a comma as separator.
To use HTTPS, replace <IP_CENTREON_CENTRAL> by https://<IP_CENTREON_CENTRAL>.
To use non default port, replace <IP_CENTREON_CENTRAL> by <IP_CENTREON_CENTRAL>:<PORT>
For the <don't check SSL CA on Central> option, you should put 1 if you intend not to check the SSL CA on the Centreon Central Server whenever HTTPS is enabled, or put 0.
The <HTTP method> option defines how the Centreon Central server can contact the Remote server: HTTP or HTTPS.
The <TCP port> option defines on which TCP port the Centreon Central server can contact the Remote server.
For the <don't check SSL CA on Remote> option, you should put 1 if you intend not to check the SSL CA on the Remote server whenever HTTPS is enabled, or put 0.
For the <no proxy to call Central> option, you should put 1 if you intend not to use an HTTP(S) proxy to contact the Centreon Central server.
For instance :
/usr/share/centreon/bin/centreon -u admin -p centreon -a enableRemote -o CentreonRemoteServer -v '10.1.2.3;1;HTTP;80;1;1'
This command will enable Remote Server mode:
- by limiting menu access,
- by limiting possible actions,
- by allowing the Central to connect to it,
- by pre-registering the server to the Central.
Starting Centreon Remote enable process:
Limiting Menu Access... Success
Limiting Actions... Done
Authorizing Master... Done
Set 'remote' instance type... Done
Trying host '10.1.2.3'... Success
Centreon Remote enabling finished.
Finally, add rights to centreon database user to use LOAD DATA INFILE command:
GRANT FILE on *.* to 'centreon'@'localhost';
Add the Remote Server to configuration
Go to the Add a Remote Server to configuration.
Secure your platform
Don't forget to secure your Centreon platform following our recommendations