Im Folgenden möchte ich die Schritte zur Installation von Centreon 2.6.1 auf Ubuntu Server 14.04 auflisten. Im aktuellen Release 2.6.1 fehlt erstmals die Möglichkeit das Centreon-Frontend auf Nagios in Verbindung mit NDOUtils aufzubauen. Die Grundlage bildet deshalb die Centreon-Engine, ein Nagios-Fork welcher speziell für die Bedürfnisse von Centreon angepasst wurde, und der Centreon-Broker, eine leistungsfähige Alternative zu den NDOUtils.

Die Installation unterteilt sich in folgende Schritte:

  1. Centreon-CLIB
  2. Centreon-Connector
  3. Centreon Engine
  4. Nagios Plugins
  5. Centreon Plugins
  6. Centreon Broker
  7. SNMP Konfiguration
  8. Centreon Frontend

Centreon CLIB

Centreon Clib ist eine in in C / C ++ geschriebene Bibliothek für einige Centreon-Module und ist die Voraussetzung für den Betrieb der Centreon-Engine.

Prerequisites

apt-get install build-essential cmake

Download

cd /downloads
wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon-clib/centreon-clib-1.4.2.tar.gz
tar xzf centreon-clib-1.4.2.tar.gz
cd centreon-clib-1.4.2/build/

Installation

cmake \
 -DWITH_TESTING=0 \
 -DWITH_PREFIX=/usr \
 -DWITH_SHARED_LIB=1 \
 -DWITH_STATIC_LIB=0 \
 -DWITH_PKGCONFIG_DIR=/usr/lib/pkgconfig .

make
make install

Centreon Connector

Der Centreon-Connector beinhaltet optionale Module welche die Ausführungsgeschwindigkeit von Skripten verbessern.

Prerequisites

apt-get install libperl-dev libssh2-1-dev libgcrypt11-dev

Download

cd /downloads
wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon-connectors/centreon-connector-1.1.1.tar.gz
tar xzf centreon-connector-1.1.1.tar.gz

Installation Perl-Connector

cd /downloads/centreon-connector-1.1.1/perl/build

cmake \
 -DWITH_PREFIX=/usr \
 -DWITH_PREFIX_BINARY=/usr/lib/centreon-connector \
 -DWITH_CENTREON_CLIB_INCLUDE_DIR=/usr/include \
 -DWITH_TESTING=0 .

make
make install

Installation SSH-Connector

cd /downloads/centreon-connector-1.1.1/ssh/build

cmake \
 -DWITH_PREFIX=/usr \
 -DWITH_PREFIX_BINARY=/usr/lib/centreon-connector \
 -DWITH_CENTREON_CLIB_INCLUDE_DIR=/usr/include \
 -DWITH_TESTING=0 .

make
make install

Centreon Engine

Die Centreon-Engine ist eine ausgereifte Alternative zu Nagios und punktet besonders in den Bereichen Funktionalität und Ressourceneffizienz. Als Ausgangspunkt dient Nagios mit Version 3.2.3.

Gruppe und User anlegen

groupadd -g 6001 centreon-engine
useradd -u 6001 -g centreon-engine -m -r -d /var/lib/centreon-engine -c "Centreon-engine Admin" centreon-engine

Prerequisites

apt-get install libcgsi-gsoap-dev zlib1g-dev libssl-dev libxerces-c-dev

Download

cd /downloads/
wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon-engine/centreon-engine-1.4.14.tar.gz
tar xzf centreon-engine-1.4.14.tar.gz
cd centreon-engine-1.4.14/build/

Installation

cmake \
 -DWITH_CENTREON_CLIB_INCLUDE_DIR=/usr/include \
 -DWITH_CENTREON_CLIB_LIBRARY_DIR=/usr/lib \
 -DWITH_PREFIX=/usr \
 -DWITH_PREFIX_BIN=/usr/sbin \
 -DWITH_PREFIX_CONF=/etc/centreon-engine \
 -DWITH_USER=centreon-engine \
 -DWITH_GROUP=centreon-engine \
 -DWITH_LOGROTATE_SCRIPT=1 \
 -DWITH_VAR_DIR=/var/log/centreon-engine \
 -DWITH_RW_DIR=/var/lib/centreon-engine/rw \
 -DWITH_STARTUP_DIR=/etc/init.d \
 -DWITH_PKGCONFIG_SCRIPT=1 \
 -DWITH_PKGCONFIG_DIR=/usr/lib/pkgconfig \
 -DWITH_TESTING=0 \
 -DWITH_WEBSERVICE=1 .

make
make install

Centreon-Engine init.d Sktipt + Autostart

cd /etc/init.d
mv centengine.conf ../init/
ln -s /lib/init/upstart-job centengine
update-rc.d centengine defaults

Nagios Plugins

Prerequisites

apt-get install libgnutls-dev libssl-dev libkrb5-dev libldap2-dev libsnmp-dev gawk libwrap0-dev libmcrypt-dev smbclient fping gettext dnsutils libmysqlclient-dev libnet-snmp-perl

Download

cd /downloads
wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
tar xzf nagios-plugins-2.0.3.tar.gz
cd nagios-plugins-2.0.3

Installation

./configure --with-nagios-user=centreon-engine --with-nagios-group=centreon-engine --prefix=/usr/lib/nagios/plugins --libexecdir=/usr/lib/nagios/plugins --enable-perl-modules --with-openssl=/usr/bin/openssl
make
make install

Centreon Plugins

Prerequisites

apt-get install libxml-libxml-perl libjson-perl libwww-perl libxml-xpath-perl libnet-telnet-perl libnet-ntp-perl libnet-dns-perl libdbi-perl libdbd-mysql-perl libdbd-pg-perl

Installation git-core (für Download der Plugins benötigt)

apt-get install git-core

Download

cd /downloads
git clone https://github.com/centreon/centreon-plugins.git
cd centreon-plugins/

Installation

chmod +x centreon_plugins.pl
cp -R * /usr/lib/nagios/plugins/

Centreon Broker

Der Centreon-Broker speichert die von der Centreon-Engine ermittelten Monitoring-Daten in einer zentralen Datenbank.

User und Gruppe anlegen

groupadd -g 6002 centreon-broker
useradd -u 6002 -g centreon-broker -m -r -d /var/lib/centreon-broker -c "Centreon-broker Admin" centreon-broker

Centreon-Engine benötigt Zugriff auf die Centreon-Broker-Protokolldatei. Zu diesem Zweck wird der Centreon-Engine-User Mitglied der Centreon-Broker-Gruppe.

usermod -aG centreon-broker centreon-engine

Prerequisites

apt-get install librrd-dev libqt4-dev libqt4-sql-mysql libgnutls-dev lsb-release

Download

cd /downloads/
wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon-broker/centreon-broker-2.9.1.tar.gz
tar xzf centreon-broker-2.9.1.tar.gz
cd centreon-broker-2.9.1/build/

Installation

cmake \
 -DWITH_DAEMONS='central-broker;central-rrd' \
 -DWITH_GROUP=centreon-broker \
 -DWITH_PREFIX=/usr \
 -DWITH_PREFIX_BIN=/usr/sbin \
 -DWITH_PREFIX_CONF=/etc/centreon-broker \
 -DWITH_PREFIX_LIB=/usr/lib/centreon-broker \
 -DWITH_PREFIX_MODULES=/usr/local/centreon/lib/centreon-broker \
 -DWITH_STARTUP_DIR=/etc/init.d \
 -DWITH_STARTUP_SCRIPT=auto \
 -DWITH_TESTING=0 \
 -DWITH_USER=centreon-broker .

make
make install

Autostart

update-rc.d cbd defaults

SNMP

Prerequisites

apt-get install snmp snmpd

SNMP-Konfigurationsdatei „/etc/snmp/snmpd.conf“ anpassen

agentAddress udp:localhost:161
rocommunity public localhost
iquerySecName   internalUser
rouser         internalUser
trapsink       localhost       public
linkUpDownNotifications yes

MIBs

Prerequisites

apt-get install snmp-mibs-downloader

symbolischen Link erstellen

ln -s /usr/share/mibs/ /usr/share/snmp/mibs

Konfigurationsdatei „/etc/default/snmpd“ editieren

vi /etc/default/snmpd

export MIBDIRS=/usr/share/mibs
export MIBS=ALL

Konfigurationsdatei „/etc/snmp/snmp.conf“ editieren

vi /etc/snmp/snmp.conf

#mibs ALL

SNMP-Dienst neu starten

service snmpd restart

SNMP-Betrieb mit folgendem Befehl überprüfen

snmpwalk -c public -v 2c localhost

 

Centreon Frontend

Die Centreon Frontend Installation läuft in zwei Schritten ab. Der erste Teil wird in der Befehlszeile durchgeführt, der zweite Teil im Browser.

User und Gruppe anlegen

groupadd -g 6000 centreon
useradd -u 6000 -g centreon -m -r -d /var/lib/centreon -c "Centreon Admin" centreon

Prerequisites

apt-get install tofrodos bsd-mailx mysql-server apache2 php5-mysql rrdtool librrds-perl php5 php-pear php5-ldap php5-snmp php5-gd libconfig-inifiles-perl libcrypt-des-perl libdigest-sha-perl libdigest-hmac-perl libgd-gd2-perl libnet-snmp-perl libsnmp-perl php5-sqlite

Download

cd /downloads/
wget https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon/centreon-2.6.1.tar.gz
tar xzf centreon-2.6.1.tar.gz

Installation

cd /downloads/centreon-2.6.1/

./install.sh -i
Do you accept GPL license ?
[y/n], default to [n]:
> y
------------------------------------------------------------------------
        Please choose what you want to install
------------------------------------------------------------------------

Do you want to install : Centreon Web Front
[y/n], default to [n]:
> y

Do you want to install : Centreon CentCore
[y/n], default to [n]:
> y

Do you want to install : Centreon Nagios Plugins
[y/n], default to [n]:
> y

Do you want to install : Centreon Snmp Traps process
[y/n], default to [n]:
> y

 

------------------------------------------------------------------------
        Start CentWeb Installation
------------------------------------------------------------------------

Where is your Centreon directory?
default to [/usr/local/centreon]
>
Path /usr/local/centreon                                   OK

Where is your Centreon log directory
default to [/usr/local/centreon/log]
> /var/log/centreon

Do you want me to create this directory ? [/var/log/centreon]
[y/n], default to [n]:
> y
Path /var/log/centreon                                     OK

Where is your Centreon etc directory
default to [/etc/centreon]
>

Do you want me to create this directory ? [/etc/centreon]
[y/n], default to [n]:
> y
Path /etc/centreon                                         OK

Where is your Centreon binaries directory
default to [/usr/local/centreon/bin]
>

Do you want me to create this directory ? [/usr/local/centreon/bin]
[y/n], default to [n]:
> y
Path /usr/local/centreon/bin                               OK

Where is your Centreon data informations directory
default to [/usr/local/centreon/data]
>

Do you want me to create this directory ? [/usr/local/centreon/data]
[y/n], default to [n]:
> y
Path /usr/local/centreon/data                              OK

Where is your Centreon variable library directory?
default to [/var/lib/centreon]
>
Path /var/lib/centreon                                     OK
/usr/bin/rrdtool                                           OK
/usr/bin/mail                                              OK
/usr/bin/php                                               OK

Where is PEAR [PEAR.php]
default to [/usr/share/php/PEAR.php]
>
Path /usr/share/php                                        OK
/usr/bin/perl                                              OK
Enable Apache configuration                                OK
ERROR: Conf centreon does not exist!
Finding Apache user :                                      www-data
Finding Apache group :                                     www-data

What is the Centreon group ? [centreon]
default to [centreon]
>

What is the Centreon user ? [centreon]
default to [centreon]
>

What is the Monitoring engine user ?
> centreon-engine

What is the Broker user ? (optional)
> centreon-broker

What is the Monitoring engine log directory ?
> /var/log/centreon-engine

Where is your monitoring plugins (libexec) directory ?
default to [/usr/lib/nagios/plugins]
>
Path /usr/lib/nagios/plugins                               OK
Add group centreon to user www-data                        OK
Add group centreon to user centreon-engine                 OK
Add group centreon-engine to user www-data                 OK
Add group centreon-engine to user centreon                 OK

 

------------------------------------------------------------------------
        Configure Sudo
------------------------------------------------------------------------

Where is sudo configuration file
default to [/etc/sudoers]
>
/etc/sudoers                                               OK

What is the Monitoring engine init.d script ?
> /etc/init.d/centengine

What is the Monitoring engine binary ?
> /usr/sbin/centengine

What is the Monitoring engine configuration directory ?
> /etc/centreon-engine

Where is the configuration directory for broker module ?
> /etc/centreon-broker

Where is the init script for broker module daemon ?
> /etc/init.d/cbd
Your sudo is not configured

Do you want me to configure your sudo ? (WARNING)
[y/n], default to [n]:
> y
Configuring Sudo                                           OK

 

------------------------------------------------------------------------
        Configure Apache server
------------------------------------------------------------------------

Do you want to add Centreon Apache sub configuration file ?
[y/n], default to [n]:
> y
Create '/etc/apache2/conf-available/centreon.conf'         OK
Configuring Apache                                         OK

Do you want to reload your Apache ?
[y/n], default to [n]:
> y
Reloading Apache service                                   OK
Preparing Centreon temporary files
Change right on /var/log/centreon                          OK
Change right on /etc/centreon                              OK
Change macros for insertBaseConf.sql                       OK
Change macros for sql update files                         OK
Change macros for php files                                OK
Change macros for perl binary                              OK
Change right on /etc/centreon-engine                       OK
Add group centreon-broker to user www-data                 OK
Add group centreon-broker to user centreon-engine          OK
Add group centreon to user centreon-broker                 OK
Change right on /etc/centreon-broker                       OK
Copy CentWeb in system directory
Install CentWeb (web front of centreon)                    OK
Change right for install directory
Change right for install directory                         OK
Install libraries                                          OK
Write right to Smarty Cache                                OK
Copying libinstall                                         OK
Change macros for centreon.cron                            OK
Install Centreon cron.d file                               OK
Change macros for centAcl.php                              OK
Change macros for downtimeManager.php                      OK
Install cron directory                                     OK
Change right for eventReportBuilder                        OK
Change right for dashboardBuilder                          OK
Change macros for centreon.logrotate                       OK
Install Centreon logrotate.d file                          OK
Prepare centFillTrapDB                                     OK
Install centFillTrapDB                                     OK
Prepare centreon_trap_send                                 OK
Install centreon_trap_send                                 OK
Prepare centreon_check_perfdata                            OK
Install centreon_check_perfdata                            OK
Prepare centreonSyncPlugins                                OK
Install centreonSyncPlugins                                OK
Prepare centreonSyncArchives                               OK
Install centreonSyncArchives                               OK
Install generateSqlLite                                    OK
Install changeRrdDsName.pl                                 OK
Prepare export-mysql-indexes                               OK
Install export-mysql-indexes                               OK
Prepare import-mysql-indexes                               OK
Install import-mysql-indexes                               OK
Centreon Web Perl lib installed                            OK

------------------------------------------------------------------------
Pear Modules
------------------------------------------------------------------------
Check PEAR modules
PEAR                            1.4.9       1.9.4          OK
DB                              1.7.6                      NOK
DB_DataObject                   1.8.4                      NOK
DB_DataObject_FormBuilder       1.0.0RC4                   NOK
MDB2                            2.0.0                      NOK
Date                            1.4.6                      NOK
Archive_Tar                     1.1         1.3.11         OK
Auth_SASL                       1.0.1                      NOK
Console_Getopt                  1.2         1.3.1          OK
Net_SMTP                        1.2.8                      NOK
Net_Socket                      1.0.1                      NOK
Net_Traceroute                  0.21                       NOK
Net_Ping                        2.4.1                      NOK
Validate                        0.6.2                      NOK
XML_RPC                         1.4.5                      NOK
SOAP                            0.10.1                     NOK
Log                             1.9.11                     NOK
Archive_Zip                     0.1.2                      NOK

Do you want me to install/upgrade your PEAR modules
[y/n], default to [y]:
> y
Upgrading PEAR modules
Installing PEAR modules
DB                              1.7.6       1.8.2          OK
DB_DataObject                   1.8.4       1.11.4         OK
DB_DataObject_FormBuilder       1.0.0RC4    1.0.2          OK
MDB2                            2.0.0       2.4.1          OK
Auth_SASL                       1.0.1       1.0.6          OK
Net_SMTP                        1.2.8       1.6.2          OK
Net_Traceroute                  0.21        0.21.3         OK
Net_Ping                        2.4.1       2.4.5          OK
Validate                        0.6.2       0.8.5          OK
XML_RPC                         1.4.5       1.5.5          OK
SOAP                            0.10.1      0.13.0         OK
Log                             1.9.11      1.12.9         OK
Archive_Zip                     0.1.2       0.1.2          OK
Check PEAR modules
PEAR                            1.4.9       1.9.5          OK
DB                              1.7.6       1.8.2          OK
DB_DataObject                   1.8.4       1.11.4         OK
DB_DataObject_FormBuilder       1.0.0RC4    1.0.2          OK
MDB2                            2.0.0       2.4.1          OK
Date                            1.4.6       1.4.7          OK
Archive_Tar                     1.1         1.3.11         OK
Auth_SASL                       1.0.1       1.0.6          OK
Console_Getopt                  1.2         1.3.1          OK
Net_SMTP                        1.2.8       1.6.2          OK
Net_Socket                      1.0.1       1.0.14         OK
Net_Traceroute                  0.21        0.21.3         OK
Net_Ping                        2.4.1       2.4.5          OK
Validate                        0.6.2       0.8.5          OK
XML_RPC                         1.4.5       1.5.5          OK
SOAP                            0.10.1      0.13.0         OK
Log                             1.9.11      1.12.9         OK
Archive_Zip                     0.1.2       0.1.2          OK
All PEAR modules                                           OK
------------------------------------------------------------------------
                Centreon Post Install
------------------------------------------------------------------------
Create /usr/local/centreon/www/install/install.conf.php    OK
Create /etc/centreon/instCentWeb.conf                      OK

 

------------------------------------------------------------------------
        Start CentStorage Installation
------------------------------------------------------------------------

Where is your Centreon Run Dir directory?
default to [/var/run/centreon]
>

Do you want me to create this directory ? [/var/run/centreon]
[y/n], default to [n]:
> y
Path /var/run/centreon                                     OK

Where is your CentStorage binary directory
default to [/usr/local/centreon/bin]
>
Path /usr/local/centreon/bin                               OK

Where is your CentStorage RRD directory
default to [/var/lib/centreon]
>
Path /var/lib/centreon                                     OK
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
install www/install/createTablesCentstorage.sql            OK
Creating Centreon Directory '/var/lib/centreon/status'     OK
Creating Centreon Directory '/var/lib/centreon/metrics'    OK
Install CentStorage binary                                 OK
Change right : /var/run/centreon                           OK
Change macros for centstorage init script                  OK
Replace Centstorage default script Macro                   OK

Do you want me to install CentStorage init script ?
[y/n], default to [n]:
> y
CentStorage init script installed                          OK
CentStorage default script installed                       OK

Do you want me to install CentStorage run level ?
[y/n], default to [n]:
> y
 Adding system startup for /etc/init.d/centstorage ...
   /etc/rc0.d/K30centstorage -> ../init.d/centstorage
   /etc/rc1.d/K30centstorage -> ../init.d/centstorage
   /etc/rc6.d/K30centstorage -> ../init.d/centstorage
   /etc/rc2.d/S40centstorage -> ../init.d/centstorage
   /etc/rc3.d/S40centstorage -> ../init.d/centstorage
   /etc/rc4.d/S40centstorage -> ../init.d/centstorage
   /etc/rc5.d/S40centstorage -> ../init.d/centstorage
CentStorage Perl lib installed                             OK
Install logAnalyser                                        OK
Install logAnalyserBroker                                  OK
Install nagiosPerfTrace                                    OK
Change macros for centstorage.cron                         OK
Install CentStorage cron                                   OK
Change macros for centstorage.logrotate                    OK
Install Centreon Storage logrotate.d file                  OK
Create /etc/centreon/instCentStorage.conf                  OK

 

------------------------------------------------------------------------
        Start CentCore Installation
------------------------------------------------------------------------

Where is your CentCore binary directory
default to [/usr/local/centreon/bin]
>
Path /usr/local/centreon/bin                               OK
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
Copy CentCore in binary directory                          OK
Change right : /var/run/centreon                           OK
Change right : /var/lib/centreon                           OK
Change macros for centcore.logrotate                       OK
Install Centreon Core logrotate.d file                     OK
Replace CentCore init script Macro                         OK
Replace CentCore default script Macro                      OK

Do you want me to install CentCore init script ?
[y/n], default to [n]:
> y
CentCore init script installed                             OK
CentCore default script installed                          OK

Do you want me to install CentCore run level ?
[y/n], default to [n]:
> y
 Adding system startup for /etc/init.d/centcore ...
   /etc/rc0.d/K30centcore -> ../init.d/centcore
   /etc/rc1.d/K30centcore -> ../init.d/centcore
   /etc/rc6.d/K30centcore -> ../init.d/centcore
   /etc/rc2.d/S40centcore -> ../init.d/centcore
   /etc/rc3.d/S40centcore -> ../init.d/centcore
   /etc/rc4.d/S40centcore -> ../init.d/centcore
   /etc/rc5.d/S40centcore -> ../init.d/centcore
CentCore Perl lib installed                                OK
Create /etc/centreon/instCentCore.conf                     OK

 

------------------------------------------------------------------------
        Start CentPlugins Installation
------------------------------------------------------------------------

Where is your CentPlugins lib directory
default to [/var/lib/centreon/centplugins]
>

Do you want me to create this directory ? [/var/lib/centreon/centplugins]
[y/n], default to [n]:
> y
Path /var/lib/centreon/centplugins                         OK
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
Change macros for CentPlugins                              OK
Installing the plugins                                     OK
Change right on centreon.conf                              OK
CentPlugins is installed

------------------------------------------------------------------------
        Start CentPlugins Traps Installation
------------------------------------------------------------------------

Where is your SNMP configuration directory
default to [/etc/snmp]
>
/etc/snmp                                                  OK

Where is your CentreonTrapd binaries directory
default to [/usr/local/centreon/bin]
>
/usr/local/centreon/bin                                    OK
Finding Apache user :                                      www-data
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
Change macros for snmptrapd.conf                           OK
Replace CentreonTrapd init script Macro                    OK
Replace CentreonTrapd default script Macro                 OK

Do you want me to install CentreonTrapd init script ?
[y/n], default to [n]:
> y
CentreonTrapd init script installed                        OK
CentreonTrapd default script installed                     OK

Do you want me to install CentreonTrapd run level ?
[y/n], default to [n]:
> y
 Adding system startup for /etc/init.d/centreontrapd ...
   /etc/rc0.d/K30centreontrapd -> ../init.d/centreontrapd
   /etc/rc1.d/K30centreontrapd -> ../init.d/centreontrapd
   /etc/rc6.d/K30centreontrapd -> ../init.d/centreontrapd
   /etc/rc2.d/S40centreontrapd -> ../init.d/centreontrapd
   /etc/rc3.d/S40centreontrapd -> ../init.d/centreontrapd
   /etc/rc4.d/S40centreontrapd -> ../init.d/centreontrapd
   /etc/rc5.d/S40centreontrapd -> ../init.d/centreontrapd
trapd Perl lib installed                                   OK
Install : snmptrapd.conf                                   OK
Install : centreontrapdforward                             OK
Install : centreontrapd                                    OK
Create /etc/centreon/instCentPlugins.conf                  OK
###############################################################################
#                                                                             #
#                 Go to the URL : http://ubuntu-1404-centreon.lan/centreon/   #
#                            to finish the setup                              #
#                                                                             #
#                  Report bugs at http://forge.centreon.com                   #
#                                                                             #
#                         Thanks for using Centreon.                          #
#                          -----------------------                            #
#                        Contact : infos@centreon.com                         #
#                          http://www.centreon.com                            #
#                                                                             #
###############################################################################

Nun muss die Apache-Konfiguration noch angepasst werden. Dazu muss die Datei „/etc/apache2/conf-available/centreon.conf“ wie folgt bearbeitet werden.

#Order allow,deny
#Allow from all
Require all granted

Anschließend wird die Apache-Konfigurationsdatei aktiviert und angewendet.

a2enconf centreon.conf
service apache2 reload

Die Installation wird nun per Browser fortgesetzt.

Website öffnen >>> http://IP-Adresse/centreon

Centreon Engine directory:                           /usr/sbin/
Centreon Engine Stats binary:                      /usr/sbin/centenginestats
Centreon Engine var lib directory:               /var/lib/centreon-engine
Centreon Engine Connector path:                /usr/lib/centreon-connector
Centreon Engine Library (*.so) directory:  /usr/lib/centreon-engine/

An dieser Stelle geht es kurz zurück auf die Kommandozeile um das benötigte Log-Verzeichnis anzulegen und die passenden Berechtigungen für dieses zu vergeben.

mkdir /var/log/centreon-broker
chown centreon-broker:centreon-broker  /var/log/centreon-broker
chmod 775 /var/log/centreon-broker
chmod 775 /var/lib/centreon-broker

Centreon Broker etc directory:                /etc/centreon-broker
Centreon Broker module (cbmod.so):   /usr/lib/centreon-broker/cbmod.so
Centreon Broker log directory:               /var/log/centreon-broker
Retention file directory:                           /var/lib/centreon-broker
Centreon Broker lib (*.so) directory:    /usr/local/centreon/lib/centreon-broker

Falls ihr die hier gezeigte Fehlermeldung bekommt ist noch eine kleine Anpassung der MYSQL-Konfigurationdatei „/etc/mysql/my.cnf“ notwendig.

[mysqld]
innodb_file_per_table = 1

Anschließen noch kurz den MYSQL-Server neu starten.

service mysql restart

Nun klappt der Schritt 7 ohne Fehler.

Centreon Dienste starten

service centcore start
service centreontrapd start

Nun loggt euch in die Centreon-Oberfläche mit dem User „admin“ ein und führt wie auf dem Screenshot zu sehen einen Export der Konfiugurationdateien aus.

Abschließend muss der Centreon Broker Dienst gestarten werden und das Monitoring-System liefert erste Ergebnisse.

service cbd start

Links

offizielle Centreon-Website

Centreon Dokumentation

Centreon-Engine Dokumentation

Centreon-Broker Dokumentation

Centreon-Clib Dokumentation

Centreon-Plugins Dokumentation