Centreon Deployment Chris Scicluna
Jan 04, 2016
Centreon Deployment
Chris Scicluna
Contents
1. What is Centreon?
2. Installation
– 2.1. Nagios Installation
– 2.2. Centreon Installation
3. Screenshots: Monitoring, Configuration and more
4. Demo
What is Centreon? Monitors servers, switches, services, etc through SNMP
What is Centreon? Distributed, scalable monitoring.
What is Centreon?
Includes real time front end management
GUI management
Nagios Config File
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
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
Installation – Prerequisites
MySql will require password and confirmation
Postfix configuration – Select no configuration
5
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
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
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
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
CLI Installation Complete
Reload the apache configuration# /etc/init.d/apache2 reload
At this point, Centreon Installation is continued from the web GUI
GUI Installation - Centreon Browse to http://<server_name_or_IP>/centreon
Accept GNU public licence on the next screen.
GUI Installation - Centreon
GUI Installation - MySql
After this screen, verify database connection
GUI Installation – Create admin
GUI Installation – Config File
GUI Installation – MySQL db creation
Centreon Installation FINISHED
Screenshots : Monitoring
Screenshots : Configuration
Screenshots : Logging
Screenshots : Reporting
Live DemoQuestions?
Thank you for listening!