CENTREON ENTERPRISE SERVER

INSTALLATION DOCUMENT

ENGLISH VERSION

Dernière mise à jour : 15/02/2011 Version 1.0-rev07

12 avenue Raspail - 94250 Gentilly – France Tel +33 (0)1 49 69 97 12 – Fax +33 (0)1 78 12 00 28 commercial@merethis.com - www.merethis.com R.C.S. 483 494 589

© Copyright MERETHIS 2005, 2011. Tous droits réservés.

Ta b l e o f c o n t e n t s
1 . C E N T R E O N S E R V E R P A R T I T I O N I N G ............................................................................................4 2 . C E N T R E O N I N S T A L L A T I O N P R O C E D U R E ...................................................................................5 2.1.P RE RE QUIS ITE S........................................................................................................................................5 2.2.INS TAL L A TION:...........................................................................................................................................5 2.2.1 .ste p 1 : cho o se in sta lla tio n type.................................................................................................5 2.2.2 .ste p 2 : lan gu a ge an d ke yb oa rd ch o ice s.................................................................................6 2.2.3 .ste p 3 : d isks p a rtitio n in g .............................................................................................................7 2.2.4 .ste p 4 : con figu re ge og rap h ica l zo n e........................................................................................7 2.2.5 .ste p 5 : ro ot p asswo rd co nfigu ra tion.........................................................................................8 2.2.6 .ste p 6 : rp m p ackag e s in sta llation .............................................................................................8 2.2.7 .ste p 7 : re sta rt the syste m ..........................................................................................................9 2.3.NE TWORK CONFIGURA TION...............................................................................................................10 2.3.1 .n e two rk in te rfa ce con fig u ra tio n...............................................................................................10 2.3.2 .n a me se rve r an d d ns con fig u ra tio n........................................................................................14 2.3.3 .time se rve r.....................................................................................................................................16 2.4.P OS T- INS TAL L A TION.............................................................................................................................17 2.4.1 .d e ll o pe n ma na ge........................................................................................................................17 3 . C E N T R E O N C E N T R A L S E R V E R C O N F I G U R A T I O N ...............................................................1 8 3.1.P RE RE QUIS ITE S......................................................................................................................................18 3.2.INS TAL L A TION:........................................................................................................................................18 3.2.1 .first con ne ction an d n ag io s co n fig u ration............................................................................18 3.2.2 .se t ce n treo n a d min acco un t p a sswo rd..................................................................................21 3.2.3 .se t roo t pa sswo rd fo r mysq l.....................................................................................................22 3.2.4 .u p da te o pe rating syste m p acka ge s........................................................................................23 4 . C E N T R E O N P O L L E R C O N F I G U R A T I O N ......................................................................................2 6 4.1.P RE RE QUIS ITE S......................................................................................................................................26 4.2.CONFIGURA TION:...................................................................................................................................26 4.2.1 .ste p 1 : se tting na gio s use r pa sswo rd o n cen treo n po lle r................................................26 4.2.2 .ste p 2 : se tting up ssh au th en tication ke y o n ce n treo n ce ntra l......................................26 4.2.3 .ste p 3 : a dd ce ntre o n p olle r to ce ntre on cen tra l con figu ra tio n.......................................27 4.2.4 .ste p 4 : a dd an h ost to ce n treo n p olle r to in itia te it...........................................................31

Property of Merethis – Use and copy of this document is forbidden outside contractual context. MERETHIS 12 avenue Raspail 94250 Gentilly France R.C.S. Créteil 483 494 589 SARL capital of 400 000 €.

3 / 33

partitioning recommended in order to get the optimal The recommended partition are: ➢ /var/log : used to store all logs of your system. ➢ Swap : used to expand the memory used by the OS. 4 / 33 .1. All data in this partition can be very large because it contains all performance data from Nagios and Centreon. It is not likely to evolve rapidly over time. It is usually set to twice the size of the RAM. 15 Go seems to be a good size for this partition. Please consider to use as much space as possible. ➢ /var/lib : used to store MySQL tables and configuration files and also used by other applications. 15 Go seems to be a good size for this partition. As for the /var/log. CENTREON SERVER PARTITIONING The purpose of this section is to describe the ideal performances for your Centreon monitoring platform.C. To summarize: /var/log /var/lib swap Container of different applications logs Container of different application files Systems of files Extension of physical memory 15 Go As large as possible 15 Go 2*RAM Property of Merethis – Use and copy of this document is forbidden outside contractual context.S. Créteil 483 494 589 SARL capital of 400 000 €. Its is recommended to use a significant disk space for this partition. MERETHIS 12 avenue Raspail 94250 Gentilly France R. ➢ / : used for all remaining data on a server of this type.

Créteil 483 494 589 SARL capital of 400 000 €. you can insert your CES CD in the drive and configure your server BIOS to boot on the CD. C E N T R E O N I N S TA L L AT I O N P R O C E D U R E PREREQUISITES In order to install Centreon. 2.2. MERETHIS 12 avenue Raspail 94250 Gentilly France R. S T E P 1 : C H O OS E I N S TA L L AT I O N T Y P E The first step is to choose the installation type on the following screen. 2.S. 5 / 33 . it's necessary to have a server that can be formatted. If so. I N S TA L L AT I O N : Follow the different steps to complete the Centreon installation successfully.1. Picture 1: Select installation type Depending on your installation and your needs.C. Property of Merethis – Use and copy of this document is forbidden outside contractual context.2.1. By default (enter key). 2. the “central” option will be used.2. type the following options: ➢ ➢ ➢ “linux poller” for Centreon poller installation (poller only). “linux central” for Centreon central installation (central server + database).

C. Select your language and press “enter” key to validate. Picture 2: Select operating system language Select your keyboard type and press “enter” key to validate.2.2. MERETHIS 12 avenue Raspail 94250 Gentilly France R. STEP 2: LANGUAGE AND KEYBOARD CHOICES.2.S. 6 / 33 . Créteil 483 494 589 SARL capital of 400 000 €. Picture 3: Select keyboard language Property of Merethis – Use and copy of this document is forbidden outside contractual context.

MERETHIS 12 avenue Raspail 94250 Gentilly France R. STEP 4: CONFIGURE GEOGRAPHICAL ZONE Please select your location.C.S. Please refer to the information previously presented about the partitioning in paragraph 1 Centreon Server Partitioning of this document.2.4. A message alerts you that the partitioning process is starting. Validate by clicking “yes”.2. Créteil 483 494 589 SARL capital of 400 000 €.2. 7 / 33 . STEP 3: DISKS PARTITIONING. 2. Picture 4: Warning message Now the setup process will ask you how you would like to organize disk partitions.3. The location you select will have an influence on your timezone. Picture 5: Select timezone Property of Merethis – Use and copy of this document is forbidden outside contractual context.

8 / 33 .5.6. Créteil 483 494 589 SARL capital of 400 000 €. Picture 7: Instlalation of packages Property of Merethis – Use and copy of this document is forbidden outside contractual context. It may take a few minutes for the installation to be completed.2. Picture 6: Define root password 2. MERETHIS 12 avenue Raspail 94250 Gentilly France R.C. S TE P 5 : RO OT PA SS W O RD CO N F I GU R ATI O N Set the “root” user password and confirm it.2. The setup process check all needed dependencies and the installation of all packages will proceed. S T E P 6 : R P M PA C K A G E S I N S TA L L AT I O N .2.S.

7. the Text Mode Setup Utility will be launched. Property of Merethis – Use and copy of this document is forbidden outside contractual context. Créteil 483 494 589 SARL capital of 400 000 €.2. MERETHIS 12 avenue Raspail 94250 Gentilly France R.S. 9 / 33 . Click on the “Reboot” button to restart the system. Go to chapter 2. S T E P 7 : R E S TA RT T H E S YS T E M The setup process is now finished.2. Picture 8: End of installation Once restarted.3 Network configuration to setup the network configuration.C.

C. 10 / 33 . Select « Network configuration ». press “enter”. using “up and down” keys on your keyboard and press enter to validate. 2.2.1.3. NE TW O R K C O N FI G UR ATI O N N E TW O R K I N TER FA C E C ON F I G UR ATI O N The default network configuration is DHCP. Picture 10: Network cards configuration Property of Merethis – Use and copy of this document is forbidden outside contractual context. Picture 9: Network configuration Select “Edit Devices”. MERETHIS 12 avenue Raspail 94250 Gentilly France R.3.S. it is recommended to define a static IP to Centreon server. To configure network. Créteil 483 494 589 SARL capital of 400 000 €. 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.

Netmask . Static IP: interface static IP . Picture 12: Card's configuration Property of Merethis – Use and copy of this document is forbidden outside contractual context. select your network card and press “enter” key. one or more network interfaces should be listed on screen.Depending on your hardware specification. ➢ ➢ ➢ ➢ Use DHCP: enable DHCP (press space key to uncheck box) .C. 11 / 33 . Default gateway IP. Créteil 483 494 589 SARL capital of 400 000 €. MERETHIS 12 avenue Raspail 94250 Gentilly France R. Picture 11: Select network card Enter the network settings of the interface and validate with “OK” button.S.

Picture 14: Save configuration Property of Merethis – Use and copy of this document is forbidden outside contractual context. 12 / 33 .Once you reached the “Select A Devices” screen. Picture 13: SAve configuration of network cards Select « Save & Quit » button with “tab” key and press “enter”. you can configure other network interface or validate all your changes with the « Save » Button using the “tab” key.S. MERETHIS 12 avenue Raspail 94250 Gentilly France R. Créteil 483 494 589 SARL capital of 400 000 €.C.

MERETHIS 12 avenue Raspail 94250 Gentilly France R.To exit from the configuration utility. Créteil 483 494 589 SARL capital of 400 000 €. select the “Quit” button with “tab” key and press “enter”. Picture 15: Exit setup tool Property of Merethis – Use and copy of this document is forbidden outside contractual context. 13 / 33 .S.C.

C.S. type the following command in a terminal as root user: # setup Select « Network configuration ». 14 / 33 . MERETHIS 12 avenue Raspail 94250 Gentilly France R.2.2. Picture 16: Network configuration Select “Edit DNS Configuration”. Picture 17: DNS configuration Property of Merethis – Use and copy of this document is forbidden outside contractual context. press “enter” to validate. Créteil 483 494 589 SARL capital of 400 000 €.3. using “up and down” keys on your keyboard and press enter to validate. N A ME SE R VE R AN D D NS CO N F I G UR ATI O N To configure DNS on the server.

Tertiary DNS is the tertiary DNS . Picture 18: Configuration of DNS servers Once your validate the DNS settings. Primary DNS is the primary DNS . 15 / 33 .C. Secondary DNS is the secondary DNS . ➢ ➢ ➢ ➢ ➢ Host name is the name of the monitoring server . Créteil 483 494 589 SARL capital of 400 000 €.S. go to « Save&Quit » button with « tabulation » key and press « enter ».Enter the DNS settings of the interface and validate with “OK” button. Picture 19: Save configuration Property of Merethis – Use and copy of this document is forbidden outside contractual context. MERETHIS 12 avenue Raspail 94250 Gentilly France R. Search is the default domain name .

please to date manual (man date).0 stratum 10 server <TIMESERVERADDRE> server <TIMESERVERADDRE> Restart NTP service: # /etc/init.d/ntpd restart Check the server date: # date If the date is still not the good one.0 # local clock fudge 127.1. Property of Merethis – Use and copy of this document is forbidden outside contractual context.conf Insert the name(s) or address(es) of your time server in this file: # undisciplined Local Clock.1.d/network restart 2.3.3.C. Picture 20: Exit tool Check your network configuration with the following commands: # ifconfig # cat /etc/resolv.127.To exit from the configuration utility.conf »: # vi /etc/ntp. 16 / 33 . Créteil 483 494 589 SARL capital of 400 000 €. select the “Quit” button with “tab” key and press “enter”. MERETHIS 12 avenue Raspail 94250 Gentilly France R. If you want more information about date. TIME SERVER Edit the following file « /etc/ntp.127.conf # hostname If the configuration is not correct. This is a fake driver intended for backup and when no outside source of # synchronized time is available server 127.S. please update the time of your server with the date command. restart the network service: # /etc/init.

4.com/repo/hardware/latest/bootstrap.1. Property of Merethis – Use and copy of this document is forbidden outside contractual context. the system will ask you validate the GPG key. please connect yourself as root on the server and launch the following commands: # wget -q -O . MERETHIS 12 avenue Raspail 94250 Gentilly France R.4. 2.2.C.I N S TA L L AT I O N If you need to install some additional packages like DELL-OpenManage. In order to install DELL Open Manage. 17 / 33 . please follow the next procedure. Créteil 483 494 589 SARL capital of 400 000 €.dell.http://linux.cgi | bash # yum install -y srvadmin-all dell_ft_install Before installing the RPM. Please type « y » if you agree to do that. P O S T . DELL OPEN MANAGE Dell Open Manage is a tool which gives you the possibility to monitor Dell Hardware information via SNMP MIBs.S.

3.3.C.2. 3. Créteil 483 494 589 SARL capital of 400 000 €. MERETHIS 12 avenue Raspail 94250 Gentilly France R.2. Centreon central server have to be installed properly following the chapter 5 instructions with installation type as “central” or default installation before doing anything else. HTTPS is disable by default in the Centreon configuration.1. You can now access Centreon front-end with a web browser at the following address: http://SERVER_IP_ADDRESS/centreon/ Login / password for first connection on Centreon front-end: admin/centreon Picture 21: connection Property of Merethis – Use and copy of this document is forbidden outside contractual context. C E N T R E O N C E N T R A L S E R V E R C O N F I G U R AT I O N PREREQUISITES This section deals with the configuration of Centreon central server.S. 18 / 33 .1. 3. I N S TA L L AT I O N : F I RS T C ON N E C TI O N AN D N A GI O S C O N FI G U R ATI ON For information.

Créteil 483 494 589 SARL capital of 400 000 €. 19 / 33 .Once login successfully. check the following options: ➢ ➢ ➢ Generate Configuration Files Run Nagios debug (-v) Move Export Files Click on the “Export” button. Centreon Home page displays: Picture 22: Centreon web interface Navigate from the centreon front-end to: Configuration -> Nagios On the right side. Picture 23: Generate Nagios configuration files Property of Merethis – Use and copy of this document is forbidden outside contractual context.C. MERETHIS 12 avenue Raspail 94250 Gentilly France R.S.

S. only check the following option: ➢ Restart Nagios Picture 25: Restart Nagios Click on the “Export” button and check the status of the process.Check the status of the process. 20 / 33 . MERETHIS 12 avenue Raspail 94250 Gentilly France R.d/ndo2db restart Navigate from the centreon front-end to: Configuration -> Nagios On the right side.C. Picture 24: Result of geneation of Nagios configuration files Enter the following command in a terminal on the Centreon server as 'root' user: # /etc/init. Créteil 483 494 589 SARL capital of 400 000 €. it should be OK. Centreon server is now up and running ! Property of Merethis – Use and copy of this document is forbidden outside contractual context.

Créteil 483 494 589 SARL capital of 400 000 €.2. SET CENTREON ADMIN ACCOUNT PASSWORD For security reasons.S. Connect to Centreon front-end: http://SERVER_IP_ADDRESS/centreon/ Default login / password on Centreon front-end: admin/centreon Picture 26: connection Property of Merethis – Use and copy of this document is forbidden outside contractual context. 21 / 33 .3.C. Centreon admin account password needs to be changed after Centreon has been successfully installed. MERETHIS 12 avenue Raspail 94250 Gentilly France R.2.

Click on “Administration” tab. MERETHIS 12 avenue Raspail 94250 Gentilly France R. Créteil 483 494 589 SARL capital of 400 000 €. then « MyAccount » button: Picture 27: Change user password Set the new password.C. Enter the following command in a terminal on the Centreon server as 'root' user: # mysqladmin -u root password 'your_new_password' Property of Merethis – Use and copy of this document is forbidden outside contractual context.3. MySQL root password needs to be set after Centreon has been successfully installed.2. click on “Options” sub-menu. 22 / 33 .S. confirm it and validate with the “Save" button. SET ROOT PASSWORD FOR MYSQL For security reasons. 3. The password for admin account is now updated.

enter the following command in a terminal on the Centreon server as 'root' user: # yum update Yum will check for updates and asks if it is OK to download: Picture 28: RPM to update Type 'y' to validate the download. the centreon server need to have an Internet access. 23 / 33 . MERETHIS 12 avenue Raspail 94250 Gentilly France R. Property of Merethis – Use and copy of this document is forbidden outside contractual context. Créteil 483 494 589 SARL capital of 400 000 €.2. U PD ATE O PER ATI N G S YS TE M PA C KA G E S Notice: to be able to use yum utility. you can update your packages.3.4.C.S. To have an up-to-date operating system. to do so.

MERETHIS 12 avenue Raspail 94250 Gentilly France R.Yum is downloading the packages: Picture 29: Download RPM Yum may ask you to import a GPG key several times.S. 24 / 33 .C. Picture 30: Validate GPG keys Property of Merethis – Use and copy of this document is forbidden outside contractual context. Créteil 483 494 589 SARL capital of 400 000 €. input 'y' and press “enter”.

Créteil 483 494 589 SARL capital of 400 000 €. Property of Merethis – Use and copy of this document is forbidden outside contractual context.Yum finally update the packages: Picture 31: Update RPM Wait until process is completed and enter the following command to restart operating system: # shutdown -r now The system is updated. MERETHIS 12 avenue Raspail 94250 Gentilly France R.C. 25 / 33 .S.

26 / 33 .1): # ssh-copy-id -i ~/. Enter file in which to save the key (/var/spool/nagios/. 4.ssh/id_rsa): Created directory '/var/spool/nagios/.pub. Centreon poller have to be installed properly following the chapter 2 Centreon Installation procedure instructions with installation type as “poller” before doing anything else. use password defined in step 1 (chapter 4.nagios # ssh-keygen Generating public/private rsa key pair.pub nagios@{IP_ADDRESS} Property of Merethis – Use and copy of this document is forbidden outside contractual context.1. Your public key has been saved in /var/spool/nagios/.ssh/id_rsa.2.2.2. Créteil 483 494 589 SARL capital of 400 000 €.4. Enter the following command to transfer the public key to the poller for the Nagios daemon owner (replace {IP_ADDRESS} with the IP address of the poller). 4. S TE P 2 : SE TTI N G U P SS H A UTHE N TI C ATI O N KE Y O N C EN TR E O N CE N TR AL Enter the following command in a terminal on the Centreon server. 4. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /var/spool/nagios/. do not enter any password: # su .S. C E N T R E O N P O L L E R C O N F I G U R AT I O N PREREQUISITES This section deals with the configuration of Centreon poller. 4.C. C ON F I G UR ATI O N : STEP 1: SETTING NAGIOS USER PASSWORD ON CENTREON POLLER Enter the following command in a terminal on the Centreon server as 'root' user to set 'nagios' user account password: # passwd nagios Changing password for user nagios.ssh/id_rsa.1.ssh'. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully.2. accept all defaults. MERETHIS 12 avenue Raspail 94250 Gentilly France R.2.ssh/id_rsa.

C. Picture 32: Configuration of Nagios poller Property of Merethis – Use and copy of this document is forbidden outside contractual context.3. MERETHIS 12 avenue Raspail 94250 Gentilly France R.4.S. S TE P 3 : AD D CE N TR E ON POL LE R TO CE N TR E O N CE N TR AL C O N F I GU R ATI O N Connect to the centreon front-end and navigate to: Configuration -> Centreon -> Pollers -> Add Input the following options: ➢ ➢ Satellite Name: centreon poller name IP address: IP address of the poller Leave the other options with defaults values and validate with “save” button.2. 27 / 33 . Créteil 483 494 589 SARL capital of 400 000 €.

S.C.cfg -> Add Input the following options: ➢ ➢ ➢ Description: enter description Instance Name: select the poller name you defined just before Output: enter centreon central IP address Leave the other options with defaults values and validate with “save” button. 28 / 33 . MERETHIS 12 avenue Raspail 94250 Gentilly France R. Créteil 483 494 589 SARL capital of 400 000 €.Navigate from the centreon front-end to: Configuration -> Centreon -> ndomod. Picture 33: Configuration of ndomod broker for poller Property of Merethis – Use and copy of this document is forbidden outside contractual context.

cfg On the right side.Navigate from the centreon front-end to: Configuration -> Nagios -> nagios.C.S. 29 / 33 . then confirm the duplication by “OK”. Créteil 483 494 589 SARL capital of 400 000 €. MERETHIS 12 avenue Raspail 94250 Gentilly France R. check the “Nagios CFG 1” line. Property of Merethis – Use and copy of this document is forbidden outside contractual context. Picture 34: Duplication of configuration Click on the “Nagios CFG 1_1” to edit the settings. Click on the “More actions” dropdown list and select “duplicate”.

S. Picture 35: Configuration of Nagios poller Property of Merethis – Use and copy of this document is forbidden outside contractual context. Créteil 483 494 589 SARL capital of 400 000 €. MERETHIS 12 avenue Raspail 94250 Gentilly France R. 30 / 33 .Input the following options: ➢ ➢ ➢ Configuration name: description of the configuration Status: check box “Enabled” Server Nagios configured: select the instance name of the centreon poller Leave the others options with defaults values and validate with “save” button.C.

S TEP 4: A DD A N H OS T TO CENTR EON POLLER TO I NI TI ATE I T In order for the poller to be fully operational. Picture 36: Add host Property of Merethis – Use and copy of this document is forbidden outside contractual context. it must have at least one resource to monitor. MERETHIS 12 avenue Raspail 94250 Gentilly France R.S. Connect to the centreon front-end and navigate to: Configuration -> Hosts -> Add Input the following options: ➢ ➢ ➢ ➢ ➢ Host Name: name of the host to add (name of the centreon poller) Alias: alias of the host Monitored from: select the instance of the poller from where the host will be monitored Add a template: select “generic host” Create Services linked to the Template too: Yes Leave the other options with defaults values and validate with “save” button.4. Créteil 483 494 589 SARL capital of 400 000 €.4. In this chapter we add the poller to monitor itself.C. 31 / 33 .2.

Créteil 483 494 589 SARL capital of 400 000 €.Now the new host should be displayed in the hosts list: Picture 37: List of hosts Navigate from the centreon front-end to: Configuration -> Nagios Check the following options: ➢ ➢ ➢ ➢ ➢ Nagios Server: All Nagios Servers Generate Configuration Files Run Nagios debug Move Export files Restart Nagios – Method: Restart Picture 38: Generate Nagios configuration files Finally click on Export and check the status. Picture 39: Result of generation The Centreon poller is now operational. Property of Merethis – Use and copy of this document is forbidden outside contractual context. MERETHIS 12 avenue Raspail 94250 Gentilly France R. 32 / 33 .S.C.

94250 Gentilly – France Tel +33 (0)1 49 69 97 12 – Fax +33 (0)1 78 12 00 28 commercial@merethis.S.merethis. .www. All rights reserved.centreon.com . 483 494 589 © Copyright MERETHIS 2005. 2011.com R.com 12 avenue Raspail .C.www.

Sign up to vote on this title
UsefulNot useful