Documentation
Release 2.2
Merethis
Contents
ii
Contents:
Contents
1
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Contents
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
CHAPTER 1
Installation
1.1 CES
1.1.1 Centreon Server Partitioning
The purpose of this section is to describe the ideal partitioning recommended in order to get the optimal performances
for your Centreon monitoring platform.
The recommended partitions are:
/var/log: used to store all logs of your system. Its is recommended to use a significant disk space for this
partition. 15 Go seems to be a good size for this partition.
/var/lib: used to store MySQL tables and configuration files and also used by other applications. All data in
this partition can be very large because it contains all performance data from Centreon. Please consider to use
as much space as possible.
/: used for all remaining data on a server of this type. It is not likely to evolve rapidly over time. As for the
/var/log, 15 Go seems to be a good size for this partition.
Swap: used to expand the memory used by the OS. It is usually set to twice the size of the RAM.
To summarize:
/var/log
/var/lib
swap
15 Go
As large as possible
15 Go
2*RAM
The first step is to choose the installation type on the following screen.
Depending on your installation and your needs, type the following options:
poller for Centreon poller installation (poller only) ;
central for Centreon central installation (central server + database) ;
By default (enter key), the central option will be used.
Step 2: Language and keyboard choices.
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
A message alerts you that the partitioning process is starting. Validate by clicking yes.
1.1. CES
5
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Now the setup process will ask you how you would like to organize disk partitions. Please refer to the information
previously presented about the partitioning in paragraph of this document.
Step 4: Configure Geographical Zone
Please select your location. The location you select will have an influence on your timezone.
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
1.1. CES
7
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
The setup process check all needed dependencies and the installation of all packages will proceed. It may take a few
minutes for the installation to be completed.
The setup process is now finished. Click on the Reboot button to restart the system.
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Once restarted, the Text Mode Setup Utility will be launched. Go to chapter Network configuration to setup the
network configuration.
Network configuration
Network interface configuration
The default network configuration is DHCP; it is recommended to define a static IP to Centreon server. To configure
network, type the following command in a terminal as root user:
# setup
The following screen appears after first reboot of the server or when using the setup command line. Select Network
configuration, using up and down keys on your keyboard and press enter to validate.
1.1. CES
9
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Depending on your hardware specification, one or more network interfaces should be listed on screen, select your
network card and press enter key.
Enter the network settings of the interface and validate with OK button.
Use DHCP: enable DHCP (press space key to uncheck box) ;
Static IP: interface static IP ;
Netmask ;
Default gateway IP.
10
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Once you reached the Select A Device screen, you can configure other network interface or validate all your changes
with the Save Button using the tab key.
Select Save & Quit button with tab key and press enter.
To exit from the configuration utility, select the Quit button with tab key and press enter .
1.1. CES
11
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
To configure DNS on the server, type the following command in a terminal as root user:
# setup
Select Network configuration, using up and down keys on your keyboard and press enter to validate.
Enter the DNS settings of the interface and validate with OK button.
Host name is the name of the monitoring server ;
12
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Once your validate the DNS settings, go to Save&Quit button with tabulation key and press enter.
To exit from the configuration utility, select the Quit button with tab key and press enter.
1.1. CES
13
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
# ifconfig
# cat /etc/resolv.conf
# hostname
Time server
If the date is still not the good one, please update the time of your server with the date command. If you want more
information about date, please to date manual (man date).
Postinstallation
If you need to install some additional packages like DELL-OpenManage, please follow the next procedure.
Dell Open Manage
Dell Open Manage is a tool which gives you the possibility to monitor Dell Hardware information via SNMP MIBs.
In order to install DELL Open Manage, please connect yourself as root on the server and launch the following commands:
# wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
# yum install -y srvadmin-all dell_ft_install
Before installing the RPM, the system will ask you validate the GPG key. Please type y if you agree to do that.
14
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
15
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
16
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Enter the following command in a terminal on the Centreon server as root user:
# /etc/init.d/cbd restart
Click on the Export button and check the status of the process.
For security reasons, Centreon admin account password needs to be changed after Centreon has been successfully
installed. Connect to Centreon front-end:
http://SERVER_IP_ADDRESS/centreon/
1.1. CES
17
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Set the new password, confirm it and validate with the Save button. The password for admin account is now updated.
Set root password for mysql
For security reasons, MySQL root password needs to be set after Centreon has been successfully installed.
Enter the following command in a terminal on the Centreon server as root user:
# mysqladmin -u root password your_new_*password*
Notice: to be able to use yum utility, the centreon server need to have an Internet access.
To have an up-to-date operating system, you can update your packages, to do so, enter the following command in a
terminal on the Centreon server as root user:
# yum update
18
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Yum may ask you to import a GPG key several times, input y and press enter.
1.1. CES
19
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Wait until process is completed and enter the following command to restart operating system:
# shutdown -r now
Enter the following command in a terminal on the Centreon server as root user to set centreon user account password:
# passwd centreon
Changing password for user centreon.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
Enter the following command in a terminal on the Centreon server, accept all defaults, do not enter any password:
20
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
# su - centreon
# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/var/spool/centreon/.ssh/id_rsa):
Created directory /var/spool/centreon/.ssh.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /var/spool/centreon/.ssh/id_rsa.
Your public key has been saved in /var/spool/centreon/.ssh/id_rsa.pub.
Enter the following command to transfer the public key to the poller for the Centreon daemon owner (replace
{IP_ADDRESS} with the IP address of the poller), use password defined in step 1:
# ssh-copy-id -i ~/.ssh/id_rsa.pub centreon@{IP_ADDRESS}
1.1. CES
21
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
22
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
1.1. CES
23
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
On the right side, check the Centreon Engine CFG 1 line. Click on the More actions dropdown list and select
duplicate, then confirm the duplication by OK.
24
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
In order for the poller to be fully operational, it must have at least one resource to monitor. In this chapter we add the
poller to monitor itself.
Connect to the centreon front-end and navigate to:
Configuration -> Hosts -> Add
1.1. CES
25
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
Leave the other options with defaults values and validate with save button.
26
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
1.1. CES
27
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
28
Chapter 1. Installation
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
CHAPTER 2
Upgrade
The repo file is now installed and new packages are ready to be installed.
MySQL should has been restarted. Check the the /var/log/mysqld.log file to see if the following lines appear:
[ERROR] Native table XXX has the wrong structure
[ERROR] xxxx Please use mysql_upgrade to fix this error.
29
After this upgrade, you can connect to Centreon to finish the upgrade. The steps of web upgrade are described here.
Warning: If the snmptt package is installed, you must remove it and install the package centreon-snmptt.
Think to set a password to centreon user for each poller before sending key.
30
Chapter 2. Upgrade
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
2.1.4 FAQ
/etc/redhat-release conflict
If you encounter the following error while upgrading your CES installation:
file /etc/redhat-release from install of ces-release-2.2-2.noarch conflicts with file from package ce
Dont panic! You just need to manually remove the centos-release-5-8 package, then you should be able to
finish the upgrade:
$ rpm -e --nodeps centos-release-5-8.el5.centos.x86_64
$ yum update
31
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
32
Chapter 2. Upgrade
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY
CHAPTER 3
Plugins packs
The plugins packs are a set of templates and plugins developed by Merethis. They offer a simplified and optimized
monitoring of your IT infrastructure. The pre-configured templates promote a quick and performant deployment.
This documentation explains how to use them.
Contents:
3.1 Prerequisites
3.1.1 Software prerequisites
In order to use the plugins packs, there are some software prerequisites to respect:
Centreon >= 2.4.4
Centreon Enterprise Server >= 2.2 (or RPM installed on RHEL >= 5, CentOS >= 5)
Centreon Clapi >= 1.5
Centreon Plugin Packs Manager >= 1.0
3.1.2 Repositories
Merethis provides RPM for its products through Centreon Entreprise Server (CES). Open source products are freely
available from our repository.
These packages have been successfully tested with CentOS 5 and RedHat 5.
Installation
This part presents the repository installation, it must be done on the central server.
Once you retrieved the RPM file from the Merethis support, run the following command:
$ yum install plugin-packs-1.0-1.noarch.rpm
33
3.1.3 Dependencies
Dependencies can now be installed on the central server. All dependencies will be guaranted by the repository.
Installation
The plugins packs need two modules to work properly: centreon-clapi and centreon-pp-manager. To
install them, run the following commands:
$ yum install centreon-clapi
$ yum install centreon-pp-manager
Once the RPM files are installed, you need to finish the modules setup through the web frontend. Go to Administration
> Modules and install the centreon-pp-manager module.
3.2 Installation
3.2.1 Search for available packages
Merethis provides several plugins packs. To list them, run the following command:
$ yum search|grep ces-pack
It will display all the plugins packs available for your platform.
34
Each plugins pack comes with a dedicated documentation. To consult one, click on the
to the desired plugin pack.
icon corresponding
3.3 Uninstallation
The plugins packs can be uninstalled through the management page. For each installed plugins pack, you will find a
icon located into the Actions column. Click one to uninstall the corresponding plugins pack.
A plugins pack which is used by at least one host cannot be uninstalled. In case you try to uninstall such a pack, the
following message will appear:
3.3. Uninstallation
35
M ERETHIS 12 AVENUE R ASPAIL FR94290 G ENTILLY