Using a virtual machine (VM)
This is an older version of Centreon. We recommend you install the latest version.
On its download page, Centreon provides a ready-to-use virtual machine. This virtual machine is available in OVA format for VMware environments and in OVF format for Oracle VirtualBox. It is based on the Alma Linux 8 operating system and includes a Centreon installation that allows you to easily start your first monitoring.
The virtual machine is only suitable to use Centreon IT-100 or to test the solution.
The VM uses the Thin Provision option to save as much free space as possible on the disk (this is best practice).
Prerequisites
The host machine must have the following characteristics:
- Processor: any recent Intel or AMD processor with at least 2 vCPUs.
- Memory: depending on your operating system, you will need at least 1 GB of RAM. To fully enjoy the Centreon experience, you need at least 2 GB of free memory.
- Hard Disk storage: The virtual machine requires at least 6.5 GB of free space on your hard disk. However, if you want keep using Centreon, it is recommended to have at least 10 GB as its size will grow over time.
Step 1: Downloading the virtual machine
-
Make sure your virtualization tool (VMWare or VirtualBox) is installed on your machine and up to date.
-
Depending on the type of license you want to use, go to either of the following pages:
- Download page (all types of license)
- IT-100 free trial page
-
Go to the Centreon download page. In section 1, Appliances is already selected.
-
In section 2, select which version of Centreon you want to download.
-
In section 3, Download your image, click the Download button next to the type of VM you want (be careful not to mix up images for VMWare and VirtualBox). A new page opens.
-
If you want Centreon to contact you, fill in your details, then click Download.
-
Otherwise, click Direct download.
-
-
The file you have downloaded is an archive file. Extract its contents to the folder you want.
-
Go to the IT-100 free trial page.
-
Fill in the form to request your free IT-100 token, then follow the instructions you have received by email.
-
Further down the page, in the Download Centreon section, download the correct image for the type of VM you want (be careful not to mix up images for VMWare and VirtualBox).
-
The file you have downloaded is an archive file. Extract its contents to the folder you want.
Step 2 : Installing the virtual machine
- VMware
- Oracle VirtualBox
-
Import the centreon-central.ova file into VMWare. A terminal window opens: wait for the server to start. When it is ready, the terminal shows the following message:
-
According to how your network is set up, in the configuration of your virtual machine, add a network adapter and select the network through which the virtual machine can communicate with the resources it will monitor. Here is an example of configuration in VSphere 6:
-
Import the centreon-central.ova file into VirtualBox. The VM is added to your list of VMs in VirtualBox.
-
In the right-hand panel, click Settings. The Settings dialog box opens.
-
On the System tab, check the Hardware Clock in UTC Time box.
-
According to how your network is set up, add a network adapter and select the network through which the virtual machine can communicate with the resources it will monitor. For instance:
-
On the Network tab, select Enable Network Adapter.
-
In the Attached to list, select Bridged Adapter.
-
In the Name list, select the network card you want.
-
-
Click OK.
-
In the right-hand panel, click Start to start the VM. A terminal window opens: wait for the server to start. When it is ready, the terminal shows the following message:
Step 3 : Completing the configuration
-
Log in to the Centreon server using the following credentials: login:
root
, password:centreon
. -
To know your server's IP address, type
ip addr
. (By default, the VM has a qwerty keyboard: if you have an azerty keyboard, enterip qddr
.) The VM is configured to obtain an IP address from the DHCP server automatically. -
Log in to the server from another machine, as user
root
, using the terminal you want and the IP address you obtained at the previous step. -
The first time you connect to the server, instructions are displayed to help you complete the configuration.
Change the following settings:
-
The timezone for the Centreon server. By default, it is set to UTC. This will set the time for the various Centreon logs.
Use the following command:
timedatectl set-timezone your_timezone
For example, to set the timezone to Europe/London, type:
timedatectl set-timezone Europe/London
You can get a list of all available timezones using this command:
timedatectl list-timezones
-
The timezone for the PHP server. To avoid errors, this should be the same as the timezone of the server. By default, it is set to Europe/London.
-
Open the following file:
/etc/php.d/50-centreon.ini
-
In
date.timezone
, define the timezone you want. -
Restart the PHP server:
systemctl restart php-fpm
-
-
The hostname of your server (this is optional). The default name is
centreon-central
. To change it, use the following command:hostnamectl set-hostname your-hostname
For example, if you want your machine to be called
monitoring
, type:hostnamectl set-hostname monitoring
-
-
Add a MariaDB table partition: this step is mandatory. Your Centreon server will not work if this isn't done.
-
Connect as user
centreon
:su - centreon
-
Type the following command:
/bin/php /usr/share/centreon/cron/centreon-partitioning.php
The partition is created:
-
Connect back as user
root
:exit
-
Restart the Centreon broker process so that changes are taken into account:
systemctl restart cbd centengine gorgoned
Your Centreon server is now ready to use.
Once those operations have been carried out, you can get rid of the message that describes them in the terminal. To do so, delete the following file:
/etc/profile.d/centreon.sh
-
-
To log in to the web interface, go to
http://ip_address/centreon
orhttp://FQDN/centreon
. (For example, a valid URL would behttp://192.168.1.44/centreon
.) -
Log in using the following credentials: Login:
admin
, password:Centreon!123
. By default, your server has a predefined configuration to monitor the Centreon server itself. -
According to your Centreon edition, you may have to add a license (for exemple, a free IT-100 token: go to Administration > Extensions > Manager and click Add Token).
-
Update your Centreon platform.
-
Change the passwords for the root and admin accounts. This is mandatory as the default passwords are available publicly in this documentation. You must also define a password for the MariaDB database.
-
You can now monitor your first host.
Default credentials
- To log in to the Centreon web interface, the default credentials are:
admin
/Centreon!123
. - The server administration account (using SSH) is:
root
/centreon
. - The root password of the DBMS is not initialized.
For security reasons, change these passwords after you complete the installation.
Troubleshooting
If your VM will not start, check that you used the correct image for your virtualization tool (OVA format for VMware environments and OVF format for Oracle VirtualBox). You may also want to visit our community platform The Watch.