Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios...

27
Centreon Deployment Chris Scicluna

Transcript of Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios...

Page 1: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Centreon Deployment

Chris Scicluna

Page 2: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Contents

1. What is Centreon?

2. Installation

– 2.1. Nagios Installation

– 2.2. Centreon Installation

3. Screenshots: Monitoring, Configuration and more

4. Demo

Page 3: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

What is Centreon? Monitors servers, switches, services, etc through SNMP

Page 4: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

What is Centreon? Distributed, scalable monitoring.

Page 5: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

What is Centreon?

Includes real time front end management

GUI management

Nagios Config File

Page 6: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

What is Centreon?

Other points about centreon v2:

Based on open source monitoring engine Nagios3

Provides load distribution and high availability

Flexibility and modularity enhanced over nagios

Page 7: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Installation – Prerequisites

A clean installation of Ubuntu Server Edition was installed

Centreon main prerequisites :– Apache– Php– MySql

– Mail (Exim or Postfix)– Compiler

All the prerequisites can be installed in one go:

apt-get install sudo bsd-mailx lsb-release build-essential apache2 apache2-mpm-prefork php5 php5-mysql php-pear php5-ldap php5-snmp php5-gd mysql-server libmysqlclient15-dev rrdtool librrds-perl libconfig-inifiles-perl libcrypt-des-perl libdigest-hmac-perl libdigest-sha1-perl libgd-gd2-perl snmp snmpd libnet-snmp-perl libsnmp-perl libgd2-xpm libgd2-xpm-dev libpng12-dev postfix

Page 8: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Installation – Prerequisites

MySql will require password and confirmation

Postfix configuration – Select no configuration

5

Page 9: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Installation – Nagios 3 Create the nagios user : # /usr/sbin/useradd -m nagios# passwd nagios

Create a group for the nagios user and add apache to it:# /usr/sbin/groupadd nagcmd# /usr/sbin/usermod -G nagios,nagcmd nagios

Download, unpack, compile and install latest version:# cd /usr/local/src/# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz# tar -xzf nagios-3.2.1.tar.gz# cd nagios-3.2.1# ./configure --prefix=/usr/local/nagios --with-command-group=nagcmd --enable-nanosleep --

enable-event-broker# make all# make install# make install-init# make install-commandmode# make install-config

Page 10: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Installation – Nagios Plugins Download the latest edition of nagios plugins# cd /usr/local/src# wget http://ovh.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz

Install plugin prerequisites#apt-get install dnsutils fping#apt-get install libssl-dev#apt-get install libldap2-dev#apt-get install libpq-dev#apt-get install libradiusclient-ng-dev

Unpack, configure, compile and install nagios plugins:# tar -xzf nagios-plugins-1.4.15.tar.gz# cd nagios-plugins-1.4.15

# ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl=/usr/bin/openssl --enable-perl-modules

# make # make install

Page 11: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Installation – NdoUtils Install mysql dev api as a prerequisite# sudo apt-get install libmysqlclient-dev

Download, unpack, configure, compile and install. Also make autorun.

# cd /usr/local/src# wget http://prdownloads.sourceforge.net/sourceforge/nagios/ndoutils-1.4b9.tar.gz# tar -xzf ndoutils-1.4b9.tar.gz# cd ndoutils-1.4b9

# ./configure --prefix=/usr/local/nagios/ --enable-mysql --disable-pgsql --with-ndo2db-user=nagios --with-ndo2db-group=nagios

# make# cp ./src/ndomod-3x.o /usr/local/nagios/bin/ndomod.o# cp ./src/ndo2db-3x /usr/local/nagios/bin/ndo2db# cp ./config/ndo2db.cfg-sample /usr/local/nagios/etc/ndo2db.cfg# cp ./config/ndomod.cfg-sample /usr/local/nagios/etc/ndomod.cfg# sudo chmod 774 /usr/local/nagios/bin/ndo*# sudo chown nagios:nagios /usr/local/nagios/bin/ndo*# cp ./daemon-init /etc/init.d/ndo2db# chmod +x /etc/init.d/ndo2db# update-rc.d ndo2db defaults

Page 12: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Installation – Centreon (Finally)

Download and unpack latest version# cd /usr/local/src/# wget http://download.centreon.com/centreon/centreon-2.1.8.tar.gz# tar -xzf centreon-2.1.8.tar.gz# cd centreon-2.1.8

Run the included installation script# export PATH="$PATH:/usr/local/nagios/bin/"# ./install.sh -i

Page 13: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:
Page 14: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

CLI Installation Complete

Reload the apache configuration# /etc/init.d/apache2 reload

At this point, Centreon Installation is continued from the web GUI

Page 15: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

GUI Installation - Centreon Browse to http://<server_name_or_IP>/centreon

Accept GNU public licence on the next screen.

Page 16: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

GUI Installation - Centreon

Page 17: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:
Page 18: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

GUI Installation - MySql

After this screen, verify database connection

Page 19: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

GUI Installation – Create admin

Page 20: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

GUI Installation – Config File

Page 21: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

GUI Installation – MySQL db creation

Page 22: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Centreon Installation FINISHED

Page 23: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Screenshots : Monitoring

Page 24: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Screenshots : Configuration

Page 25: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Screenshots : Logging

Page 26: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Screenshots : Reporting

Page 27: Centreon Deployment Chris Scicluna. Contents 1. What is Centreon? 2. Installation – 2.1. Nagios Installation – 2.2. Centreon Installation 3. Screenshots:

Live DemoQuestions?

Thank you for listening!