May 082010
 

Hi, you have probably noticed that the new LTS release is out πŸ™‚
So I decided to update the intallation process. You’ll probably notice that it didn’t change so much regarding to the 8.04 (in fact a few packages have their name changed, rsyslog natively integrated into the system, and so on)

Before starting the installation process, let define some rules we will follow: I recommend that before you start any installation you define a template for the naming scheme of your monitored machines. I decided to uses this one (but it’s up to you to create your own): 3 first letters for customer-name of the machine-environment. In my case it’s ACT-CENTREON-TEST (ACT for ACTIVLAN, Centreon for my computer and test for the target environment) for the central monitoring machine.

Here is a spreadsheet for the different login and passwords that will be used for the installation process (some of them are used in further post):

Account role Login Password
MySQL root access root mysqlcentaccess03
Nagios nagios nagaccess03
User account activlan remoteaccess03
Mysql account centreon mysqlcentreon03
Web Nagios nagiosadmin nagwebaccess03
Web Centreon admin actwebaccess03

Let start the installation process

Insert you CD, boot from it and proceed for a minimal install. For the partition scheme let the system choose one for you (I recommend using LVM because in case of “out of disk space” it will be easier to extend disk).
When asked, disable the automatic update.
DO NOT INSTALL ANY ROLE EXCEPT SSH AND MAIL.
For the mail configuration, choose local mail.

System update

Once it’s installed, proceed to a system update

sudo aptitude update
sudo aptitude full-upgrade -y

Switch to fixed IP address

sudo nano /etc/network/interfaces

Please verify that you are working with fixed IP address. If not, please change your settings. You should see something like this at the end of the file (the value should be different for you):

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

REBOOT

Compilation component install

sudo aptitude install build-essential -y
sudo aptitude install linux-headers-$(uname -r) -y

The headers should be already present.
If you are using a virtual machine, it’s time to install the appropriate tools (it’s up to you).

MySQL

sudo aptitude install mysql-server libmysqlclient-dev -y

Use mysqlcentaccess03 for root MySQL password

System

sudo aptitude install sysutils policykit ntp -y

Web and php5

sudo aptitude install apache2 apache2-mpm-prefork libapache2-mod-php5 -y
sudo aptitude install php5 php5-mysql -y
sudo aptitude install php-pear php5-ldap php5-snmp php5-gd -y

RRDTool

sudo aptitude install rrdtool librrds-perl -y

Perl

sudo aptitude install libconfig-inifiles-perl libcrypt-des-perl libdigest-hmac-perl libdigest-sha1-perl libgd-gd2-perl -y

SNMP

sudo aptitude install snmp snmpd libnet-snmp-perl libsnmp-perl -y

GD-Libraries

sudo aptitude install libgd2-xpm libgd2-xpm-dev libpng12-dev -y

Other needed library

sudo aptitude install libldap2-dev libssl-dev libsnmp-dev -y

Now we are ready to install Nagios and Centreon.

User install

PS: use “nagaccess03” as password for nagios account.

sudo useradd -m -s /bin/bash nagios
sudo passwd nagios
sudo groupadd nagcmd
sudo usermod -G nagios,nagcmd nagios
sudo usermod -a -G nagios,nagcmd www-data

Nagios Core

cd /usr/local/src
sudo wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz
sudo tar xvzf nagios-3.2.1.tar.gz
cd nagios-3.2.1
sudo ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-command-group=nagcmd --enable-nanosleep --enable-event-broker
sudo make all
sudo make install
sudo make install-init
sudo make install-commandmode
sudo make install-config
sudo update-rc.d -f nagios defaults
cd ..

Nagios plugins 1.4.14

sudo wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.14.tar.gz
sudo tar xvfz nagios-plugins-1.4.14.tar.gz
cd nagios-plugins-1.4.14
sudo ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios
sudo make
sudo make install
cd /usr/local/src

Ndoutils 1.4b9

sudo wget http://prdownloads.sourceforge.net/sourceforge/nagios/ndoutils-1.4b9.tar.gz
sudo tar xvfz ndoutils-1.4b9.tar.gz
cd ndoutils-1.4b9
sudo ./configure --prefix=/usr/local/nagios/ --enable-mysql --disable-pgsql --with-ndo2db-user=nagios --with-ndo2db-group=nagios
sudo make
sudo cp ./config/ndo2db.cfg-sample /usr/local/nagios/etc/ndo2db.cfg
sudo cp ./config/ndomod.cfg-sample /usr/local/nagios/etc/ndomod.cfg

It apears that with large monitoring system, ndoutils use a lot of IO and slows down drasticly the system. It’s better to installe the patched version.

cd /usr/local/src
sudo wget -r -k -np http://svn.centreon.com/trunk/Patch-NDOutils/
cd svn.centreon.com/trunk/Patch-NDOutils
sudo bash ./configure --prefix=/usr/local/nagios/ --enable-mysql --disable-pgsql --with-ndo2db-user=nagios --with-ndo2db-group=nagios
sudo make
sudo cp src/ndomod-3x.o /usr/local/nagios/bin/ndomod.o
sudo cp src/ndo2db-3x /usr/local/nagios/bin/ndo2db
sudo chmod 775 /usr/local/nagios/bin/ndo2db
sudo chmod 755 /usr/local/nagios/bin/ndomod.o
sudo chown nagios:nagios /usr/local/nagios/bin/ndo2db
sudo chown nagios:nagios /usr/local/nagios/bin/ndomod.o

Nagios web interface

I also recommend installing Nagios web interface as it could help you comparing your centreon checks and nagios exported configuration.

Use “nagwebaccess03” as password

cd /usr/local/src/nagios-3.2.1
sudo make install-webconf
sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

SNMP settings

Please edit /etc/default/snmpd

sudo nano /etc/default/snmpd

and change these sections:

#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1 192.168.0.148'

Replace 192.168.0.148 by your IP address.

#TRAPDRUN=no
TRAPDRUN=yes

Edit snmpd configuration file:

sudo nano /etc/snmp/snmpd.conf

and change this section:

#       sec.name  source          community
#com2sec paranoid  default         public
com2sec readonly  default         public
com2sec readonly  127.0.0.1         public
com2sec readonly  192.168.0.0/24         public
#com2sec readwrite default         private

NDO database configuration

Create your database

mysqladmin -u root --password=mysqlcentaccess03 create ndo
mysql -u root --password=mysqlcentaccess
mysql> GRANT ALL ON ndo.* TO ndouser@localhost IDENTIFIED BY "ndopassword"; FLUSH PRIVILEGES;
mysql> exit;
cd /usr/local/src/ndoutils-1.4b9/db
./installdb -u ndouser -p ndopassword -h localhost -d ndo

ignore the error message

Edit ndomod configuration file:

sudo nano /usr/local/nagios/etc/ndomod.cfg

find and replace these sections:

#instance_name=default
instance_name=Central
output_type=tcpsocket
#output_type=unixsocket
output=127.0.0.1
#output=/usr/local/nagios/var/ndo.sock
#reconnect_warning_interval=15
reconnect_warning_interval=900
#config_output_options=2
config_output_options=3

Edit ndo2db configuration file:

sudo nano /usr/local/nagios/etc/ndo2db.cfg

find and replace these sections:

#socket_type=unix
socket_type=tcp
db_name=ndo
# Keep timed events for 24 hours
max_timedevents_age=1440
# Keep system commands for 1 week
max_systemcommands_age=1440
# Keep service checks for 1 week
max_servicechecks_age=1440
# Keep host checks for 1 week
max_hostchecks_age=1440
# Keep event handlers for 31 days
max_eventhandlers_age=1440

Edit nagios configuration file:

sudo nano /usr/local/nagios/etc/nagios.cfg

find “broker” section and add this entry:

broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg

Edit sudoers grant file:

sudo nano /etc/sudoers

and add nagios user account after root account:

nagios ALL=(ALL) ALL

Create ndo2db file:

sudo nano /etc/init.d/ndo2db

Paste the following script (be carefull if you choose to use diferent credentials than nagios:nagios, you’ll have to modifiy the corresponding lines below(find NdoUser and NdoGroup)):

#!/bin/sh
#
#
# chkconfig: 345 99 01
# description: Nagios to mysql
#
# Author : GaΓ«tan Lucas
# Realase : 07/02/08
# Version : 0.1 b
# File : ndo2db
# Description: Starts and stops the Ndo2db daemon
#              used to provide network services status in a database.
#

status_ndo ()
{
        if ps -p $NdoPID > /dev/null 2>&1; then
                return 0
        else
                return 1
        fi

        return 1
}

printstatus_ndo()
{
        if status_ndo $1 $2; then
                echo "ndo (pid $NdoPID) is running..."
        else
                echo "ndo is not running"
        fi
}

killproc_ndo ()
{
        echo "kill $2 $NdoPID"
        kill $2 $NdoPID
}

pid_ndo ()
{
        if test ! -f $NdoRunFile; then
                echo "No lock file found in $NdoRunFile"
                echo -n "         checking runing process..."
                NdoPID=`ps h -C ndo2db -o pid`
                if [ -z "$NdoPID" ]; then
                        echo "     No ndo2db process found"
                        exit 1
                else
                        echo "     found process pid: $NdoPID"
                        echo -n "         reinit $NdoRunFile ..."
                        touch $NdoRunFile
                        chown $NdoUser:$NdoGroup $NdoRunFile
                        echo "$NdoPID" > $NdoRunFile
                        echo "     done"
                fi
        fi

        NdoPID=`head $NdoRunFile`
}

# Source function library
# Solaris doesn't have an rc.d directory, so do a test first
if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
elif [ -f /etc/init.d/functions ]; then
        . /etc/init.d/functions
fi

prefix=/usr/local/nagios
exec_prefix=${prefix}
NdoBin=${exec_prefix}/bin/ndo2db
NdoCfgFile=${prefix}/etc/ndo2db.cfg
NdoRunFile=${prefix}/var/ndo2db.run
NdoLockDir=/var/lock/subsys
NdoLockFile=ndo2db.lock
NdoUser=nagios
NdoGroup=nagios

# Check that ndo exists.
if [ ! -f $NdoBin ]; then
   echo "Executable file $NdoBin not found.  Exiting."
   exit 1
fi

# Check that ndo.cfg exists.
if [ ! -f $NdoCfgFile ]; then
   echo "Configuration file $NdoCfgFile not found.  Exiting."
   exit 1
fi

# See how we were called.
case "$1" in

        start)
                echo -n "Starting ndo:"
                touch $NdoRunFile
                chown $NdoUser:$NdoGroup $NdoRunFile
                $NdoBin -c $NdoCfgFile
                if [ -d $NdoLockDir ]; then
                        touch $NdoLockDir/$NdoLockFile;
                fi
                ps h -C ndo2db -o pid > $NdoRunFile
                if [ $? -eq 0 ]; then
                        echo " done."
                        exit 0
                else
                        echo " failed."
                        $0 stop
                        exit 1
                fi
                ;;

        stop)
                echo -n "Stopping ndo: "

                pid_ndo
                killproc_ndo

                # now we have to wait for ndo to exit and remove its
                # own NdoRunFile, otherwise a following "start" could
                # happen, and then the exiting ndo will remove the
                # new NdoRunFile, allowing multiple ndo daemons
                # to (sooner or later) run
                #echo -n 'Waiting for ndo to exit .'
                for i in 1 2 3 4 5 6 7 8 9 10 ; do
                    if status_ndo > /dev/null; then
                        echo -n '.'
                        sleep 1
                    else
                        break
                    fi
                done
                if status_ndo > /dev/null; then
                    echo
                    echo 'Warning - ndo did not exit in a timely manner'
                else
                    echo 'done.'
                fi

                rm -f $NdoRunFile $NdoLockDir/$NdoLockFile
                ;;

        status)
                pid_ndo
                printstatus_ndo ndo
                ;;

        restart)
                $0 stop
                $0 start
                ;;

        *)
                echo "Usage: ndo {start|stop|restart|status}"
                exit 1
                ;;
esac
# End of this script

change the owner, rights and add the job to autostart:

sudo chown root:root /etc/init.d/ndo2db
sudo chmod +x /etc/init.d/ndo2db
sudo update-rc.d ndo2db defaults

You could now realy proceed to Centreon installation section.
Download sources:

cd /usr/local/src/
sudo wget http://download.centreon.com/index.php?id=134
sudo tar -xzf centreon-2.1.6.tar.gz
cd centreon-2.1.6
export PATH="$PATH:/usr/local/nagios/bin/"
sudo ./install.sh -i

Please proceed as follow:

###############################################################################
#                                                                             #
#                         Centreon (www.centreon.com)                         #
#                          Thanks for using Centreon                          #
#                                                                             #
#                                    v2.1                                     #
#                                                                             #
#                              infos@centreon.com                             #
#                                                                             #
#                   Make sure you have installed and configured               #
#                   sudo - sed - php - apache - rrdtool - mysql               #
#                                                                             #
###############################################################################
------------------------------------------------------------------------
Checking all needed binaries
------------------------------------------------------------------------
rm                                                         OK
cp                                                         OK
mv                                                         OK
/bin/chmod                                                 OK
/bin/chown                                                 OK
echo                                                       OK
more                                                       OK
mkdir                                                      OK
find                                                       OK
/bin/grep                                                  OK
/bin/cat                                                   OK
/bin/sed                                                   OK

You will now read Centreon Licence.
Press enter to continue.q pour quitter le readme

Accept the license.

------------------------------------------------------------------------
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]
> 

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

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

Do you want me to create this directory ? [/usr/local/centreon/log]
[y/n], default to [n]:
> y
Path /usr/local/centreon/log                               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 generation_files directory?
default to [/usr/local/centreon]
> 
Path /usr/local/centreon                                   OK

Where is your Centreon variable library directory?
default to [/var/lib/centreon]

Where is your Centreon variable library directory?
default to [/var/lib/centreon]
> 

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

Where is your CentPlugins Traps binary
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 the RRD perl module installed [RRDs.pm]
default to [/usr/lib/perl5/RRDs.pm]
> 
Path /usr/lib/perl5                                        OK
/usr/bin/rrdtool                                           OK
/usr/bin/mail                                              OK

Where is PEAR [PEAR.php]
default to [/usr/share/php/PEAR.php]
> 
Path /usr/share/php                                        OK

Where is installed Nagios ?
default to [/usr/local/nagios]
> 
Path /usr/local/nagios                                     OK

Where is your nagios config directory
default to [/usr/local/nagios/etc]
> 
Path /usr/local/nagios/etc                                 OK

Where is your Nagios var directory ?
default to [/usr/local/nagios/var]
> 
Path /usr/local/nagios/var                                 OK

Where is your Nagios plugins (libexec) directory ?
default to [/usr/local/nagios/libexec]
> 
Path /usr/local/nagios/libexec                             OK

Where is your nagios binary ?
default to [/usr/local/nagios/bin/nagios]
> 
/usr/local/nagios/bin/nagios                               OK

Where is your Nagios image directory ?
default to [/usr/local/nagios/share/images/logos]
> 
Path /usr/local/nagios/share/images/logos                  OK

Where is your nagiostats binary ?
default to [/usr/local/nagios/bin/nagiostats]
> 
/usr/local/nagios/bin/nagiostats                           OK
p1_file : /usr/local/nagios/bin/p1.pl                      OK
/usr/bin/php                                               OK
/usr/bin/perl                                              OK
Finding Apache group :                                     www-data
Finding Apache user :                                      www-data
Finding Nagios user :                                      nagios
Finding Nagios group :                                     nagios

Please change the location:

Where is your NDO ndomod binary ?
default to [/usr/sbin/ndomod.o]
> /usr/local/nagios/bin/ndomod.o

Continue the install process:

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

Where is sudo configuration file
default to [/etc/sudoers]
>
/etc/sudoers                                               OK
Nagios init script                                         OK
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.d/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 /usr/local/centreon/log                    OK
Change right on /etc/centreon                              OK
Change right on /usr/local/nagios/share/images/logos       OK
Install nagios documentation                               OK
Change macros for insertBaseConf.sql                       OK
Change macros for php files
Change macros for php files                                OK
Change right on /usr/local/nagios/etc                      OK
Copy CentWeb in system directory
Install CentWeb (web front of centreon)                    OK
Install libraries                                          OK
Copying libinstall                                         OK
Change macros for centreon.cron                            OK
Install Centreon cron.d file                               OK
Change macros for archiveDayLog                            OK
Change macros for centAcl.php                              OK
Install cron directory                                     OK

------------------------------------------------------------------------
Pear Modules
------------------------------------------------------------------------
Check PEAR modules
PEAR                            1.4.9       1.6.1          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
HTML_Common                     1.2.2                      NOK
HTML_QuickForm                  3.2.5                      NOK
HTML_QuickForm_advmultiselect   1.1.0                      NOK
HTML_Table                      1.6.1                      NOK
Archive_Tar                     1.1         1.3.2          OK
Auth_SASL                       1.0.1                      NOK
Console_Getopt                  1.2         1.2.3          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

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.7.13         OK
DB_DataObject                   1.8.4       1.9.3          OK
DB_DataObject_FormBuilder       1.0.0RC4    1.0.0          OK
MDB2                            2.0.0       2.4.1          OK
HTML_QuickForm_advmultiselect   1.1.0       1.5.1          OK
HTML_Table                      1.6.1       1.8.3          OK
Auth_SASL                       1.0.1       1.0.4          OK
Net_SMTP                        1.2.8       1.4.2          OK
Net_Traceroute                  0.21        0.21.2         OK
Net_Ping                        2.4.1       2.4.5          OK
Validate                        0.6.2       0.8.3          OK
XML_RPC                         1.4.5       1.5.3          OK
SOAP                            0.10.1      0.12.0         OK
Log                             1.9.11      1.12.0         OK
Check PEAR modules
PEAR                            1.4.9       1.6.1          OK
DB                              1.7.6       1.7.13         OK
DB_DataObject                   1.8.4       1.9.3          OK
DB_DataObject_FormBuilder       1.0.0RC4    1.0.0          OK
MDB2                            2.0.0       2.4.1          OK
Date                            1.4.6       1.4.7          OK
HTML_Common                     1.2.2       1.2.5          OK
HTML_QuickForm                  3.2.5       3.2.11         OK
HTML_QuickForm_advmultiselect   1.1.0       1.5.1          OK
HTML_Table                      1.6.1       1.8.3          OK
Archive_Tar                     1.1         1.3.2          OK
Auth_SASL                       1.0.1       1.0.4          OK
Console_Getopt                  1.2         1.2.3          OK
Net_SMTP                        1.2.8       1.4.2          OK
Net_Socket                      1.0.1       1.0.9          OK
Net_Traceroute                  0.21        0.21.2         OK
Net_Ping                        2.4.1       2.4.5          OK
Validate                        0.6.2       0.8.3          OK
XML_RPC                         1.4.5       1.5.3          OK
SOAP                            0.10.1      0.12.0         OK
Log                             1.9.11      1.12.0         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
Finding Nagios group :                                     nagios
Finding Nagios user :                                      nagios
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
Change macros for centstorage binary                       OK
Install CentStorage binary                                 OK
Install library for centstorage                            OK
Change right : /var/run/centreon                           OK
Change macros for centstorage init script                  OK

Do you want me to install CentStorage init script ?
[y/n], default to [n]:
> y
CentStorage init 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
Change macros for logAnalyser                              OK
Install logAnalyser                                        OK
Change macros for nagiosPerfTrace                          OK
Install nagiosPerfTrace                                    OK
Change macros for purgeLogs                                OK
Install purgeLogs                                          OK
Change macros for purgeCentstorage                         OK
Install purgeCentstorage                                   OK
Change macros for centreonPurge.sh                         OK
Install centreonPurge.sh                                   OK
Change macros for centstorage.cron                         OK
Install CentStorage cron                                   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
/usr/bin/ssh                                               OK
/usr/bin/scp                                               OK
Finding Nagios group :                                     nagios
Finding Nagios user :                                      nagios
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
Change CentCore Macro                                      OK
Copy CentCore in binary directory                          OK
Change right : /var/run/centreon                           OK
Change right : /var/lib/centreon                           OK
Replace CentCore init script Macro                         OK

Do you want me to install CentCore init script ?
[y/n], default to [n]:
> y
CentCore init 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
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
Finding Nagios user :                                      nagios
Finding Nagios group :                                     nagios
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 SNMPTT binaries directory
default to [/usr/local/centreon/bin/]
> 
/usr/local/centreon/bin/                                   OK
Finding Nagios group :                                     nagios
Finding Apache user :                                      www-data
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
Change macros for CentPluginsTraps                         OK
Installing the plugins Trap binaries                       OK
Backup all your snmp files                                 OK
Change macros for snmptrapd.conf                           OK
Change macros for snmptt.ini                               OK
Install : snmptrapd.conf                                   OK
Install : snmp.conf                                        OK
Install : snmptt.ini                                       OK
Install : snmptt                                           OK
Install : snmpttconvertmib                                 OK
Create /etc/centreon/instCentPlugins.conf                  OK
###############################################################################
#                                                                             #
#                 Go to the URL : http://your-server/centreon/                #
#                            to finish the setup                              #
#                                                                             #
#                  Report bugs at http://forge.centreon.com                   #
#                                                                             #
#                         Thanks for using Centreon.                          #
#                          -----------------------                            #
#                        Contact : infos@centreon.com                         #
#                          http://www.centreon.com                            #
#                                                                             #
###############################################################################

Initialise the NDO database

mysql -u root --password=mysqlcentaccess ndo < ./www/install/createNDODB.sql
mysql -u root --password=mysqlcentaccess
mysql> GRANT SELECT , INSERT , UPDATE , DELETE ON ndo . * TO ndouser@localhost IDENTIFIED BY "ndopassword"; FLUSH PRIVILEGES;
mysql> exit

Reload your web server

sudo service apache2 reload

We will finalise the installation process in the next post.

Connect to your web interface: by default, it’s http://YOUR_SERVER_IP_ADDRESS/centreon

Proceed as follow:

For picture 6 use mysqlcentaccess03 as Mysql Root password and mysqlcentdb03 for the mysql database password

For picture 8 use admin and actwebaccess03 for Centreon Web Access.

PS: Some versions should differ from your screenshots as it was taken from the previous post (Ubuntu 8.04 LTS)

Optimise your setup:

After saving prepare yourself for your first export πŸ™‚
note: I don’t know why the service ‘Disk-/’ on Centreon-Server wont work with 127.0.0.1
If you want to correct this, edit the host and change the ip address 127.0.0.1 with localhost. If you plan to check your central server from a pooler, set back the real IP adress.

You should see no errors at all. This time export for real the settings:

Reboot your monitoring system. After loging back you should see Centreon monitoring itself (you’ll have to wait approximatively 5 minutes to see all graphs generated).

Share

  51 Responses to “Ubuntu Server 10.04 LTS with Nagios 3.2.1 and Centreon 2.1.6”

  1. Hi,

    You should use “sudo visudo” instead of “sudo nano /etc/sudoers”, or simpler add nagios in the already sudo group !

    Superna

  2. Hi,

    you’re right. I used nano because I’m not a fan of vi usage and it work like that too.

    Both solutions work.

    Regards

  3. Hi,
    Thanks very much for this how to. Installed perfectly first time. I am also running nagios on a centos5.3 server and i am monitoring windows servers. I would like to do the same with the new ubuntu installation.

    For some reason i cant see any hosts in Centreon. I created the windows.cfg file exactly like my nagios installation and i adde the line cfg_file=/usr/local/nagios/etc/objects/windows.cfg to the nagios.cfg file. I have rebooted my system and still cant see anything.

    I am kinda new to Linux so it would be awesome if you could point me in the right direction. It is probably something small.

    Kind Regards
    BazzieB

  4. Hi bazzieb,

    I think you should consider following the migration tutorial post. You should not touch the cfg files as they are generated by centreon. Here is an exemple of my nagios.cfg file (only a few lines):

    ###################################################################
    # #
    # GENERATED BY CENTREON #
    # #
    # Developped by : #
    # – Julien Mathis #
    # – Romain Le Merlus #
    # #
    # http://www.centreon.com #
    # For information : contact@centreon.com #
    ###################################################################
    # #
    # Last modification June 14, 2010, 2:05 pm #
    # By Dejan Markovic #
    # #
    ###################################################################

  5. Hi Dejan, i have reloaded my server and i see now that my server gets the following error when trying to connect to ndo:

    tail -f /usr/local/nagios/var/nagios.log | grep ndomod

    [1278334920] ndomod: Error writing to data sink! Some output may get lost…
    [1278334937] ndomod: Successfully reconnected to data sink! 0 items lost, 6 queued items to flush.
    [1278334937] ndomod: Successfully flushed 6 queued items to data sink.
    [1278334940] ndomod: Error writing to data sink! Some output may get lost…
    [1278334960] ndomod: Successfully reconnected to data sink! 0 items lost, 5 queued items to flush.
    [1278334960] ndomod: Successfully flushed 5 queued items to data sink.
    [1278334961] ndomod: Error writing to data sink! Some output may get lost…
    [1278334979] ndomod: Successfully reconnected to data sink! 0 items lost, 4 queued items to flush.
    [1278334979] ndomod: Successfully flushed 4 queued items to data sink.
    [1278334980] ndomod: Error writing to data sink! Some output may get lost…
    [1278334997] ndomod: Successfully reconnected to data sink! 0 items lost, 4 queued items to flush.
    [1278334997] ndomod: Successfully flushed 4 queued items to data sink.
    [1278335000] ndomod: Error writing to data sink! Some output may get lost…
    [1278335020] ndomod: Successfully reconnected to data sink! 0 items lost, 7 queued items to flush.
    [1278335020] ndomod: Successfully flushed 7 queued items to data sink.
    [1278335021] ndomod: Error writing to data sink! Some output may get lost…
    [1278335039] ndomod: Successfully reconnected to data sink! 0 items lost, 4 queued items to flush.
    [1278335039] ndomod: Successfully flushed 4 queued items to data sink.
    [1278335040] ndomod: Error writing to data sink! Some output may get lost…
    [1278335057] ndomod: Successfully reconnected to data sink! 0 items lost, 6 queued items to flush.
    [1278335057] ndomod: Successfully flushed 6 queued items to data sink.
    [1278335060] ndomod: Error writing to data sink! Some output may get lost…

    Still cant see localhost anywhere. I can see information in the graphs, but nothing else.

    Please could you help me? I feel i am on the verge of getting it working but this final hurdle is baffling.

  6. Hi bazzieb

    take a look at your ndomod.cfg and ndo2db.cfg a verify if you have set the TCP socket type
    Check also in your centreon web interface if you have set your ‘ndo2db.cfg’ file with your settings (database name, user, password and so on).

  7. Problem: “note: I don’t know why the service ‘Disk-/’ on Centreon-Server wont work with 127.0.0.1”

    resolve:
    add the following extension “-X fuse.gvfs-fuse-daemon” on the commands – it works πŸ™‚

    -> configuration – commands – check
    Example for “check_centreon_remote_storage”
    $USER1$/check_centreon_snmp_remote_storage -H $HOSTADDRESS$ -n -d $ARG1$ -w $ARG2$ -c $ARG3$ -C $ARG4$ -v $ARG5$ -X fuse.gvfs-fuse-daemon

    Description (sorry only German) http://www.meerwissen.de/index2.php?option=com_content&do_pdf=1&id=24

    cu
    celtar

  8. Thanks a lot celtar. I’ll give a try tonight

  9. Hi, I follow all your steps, but in the Centreon installation return this:

    Where is the RRD perl module installed [RRDs.pm]
    default to [/usr/lib/perl5/RRDs.pm]
    >
    /usr/lib/perl5/RRDs.pm is not a valid file. CRITICAL

    Why? What do I do?

  10. Hi Mateus,

    Maybe have you missed this line:

    sudo aptitude install rrdtool librrds-perl -y

    It already happened to me to miss some lines while reading.

    Regards

  11. Howdy Dejan,

    Thanks for the tip, you was right.
    I have a suggestion. Make a post about how add hosts (windows servers, windows desktops and your services).
    I know add hosts, but I don’t know how add services for this hosts.
    Your blog is great.
    Sorry my poor english πŸ˜›

  12. Glad to hear it worked.

    It’s planned to add posts later. In fact my house have been flooded (my computer room too) and I’m going on holyday next week so do not expect updates very soon (I’ll try to check my blog during this period but I’m not sure I’ll be able .

    Do not worry about your english, mine is not perfect too (far from that). I’m born in Jugoslavija (country which do not exist anymore) and I live in France. I’m more at ease with french but it’s more shareable in english (even if it’s not perfect).
    Most important thing, it’s understandable.

    Chears.

  13. Not sure what I am doing wrong as I have followed the instruction to the letter, but when I log on to the Centreon page, all the menu items are duplicated (Home/Home/Monitoring/Monitoring…) and at the last stage I get the following error:

    Status
    Nagios Core 3.2.1
    Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
    Copyright (c) 1999-2009 Ethan Galstad
    Last Modified: 03-09-2010 – License: GPL

    Reading configuration data…
    Read main config file okay…
    Warning Duplicate definition found for timeperiod ’24×7′ (config file ‘/usr/local/centreon/filesGeneration/nagiosCFG/1/timeperiods.cfg’, starting on line 30)
    Error Could not add object property in file ‘/usr/local/centreon/filesGeneration/nagiosCFG/1/timeperiods.cfg’ on line 31.
    Error processing object config files!

    ***> The name of the main configuration file looks suspicious…

    Make sure you are specifying the name of the MAIN configuration file on
    the command line and not the name of another configuration file. The
    main configuration file is typically ‘/usr/local/nagios/etc/nagios.cfg’

    ***> One or more problems was encountered while processing the config files…

    Check your configuration file(s) to ensure that they contain valid
    directives and data defintions. If you are upgrading from a previous
    version of Nagios, you should be aware that some variables/definitions
    may have been removed or modified in this version. Make sure to read
    the HTML documentation regarding the config files, as well as the
    ‘Whats New’ section to find out what has changed.

  14. Hi Sarithz,

    Honestly I don’t have any clue. First time I hear something like that.

    I’ve googled a bit and it seems you filled twice MySQL databases… (probably you have run several time the centreon setup?)

    To uninstall Centreon:

    – Drop centreon databases in MySQL
    – Drop user centreon in mysql database in MySQL
    – Modify the file /etc/sudoers to delete Centreon’s lines
    – Delete /etc/centreon.conf
    – Delete file centreon.conf in nagios/libexec directory
    – Modify nagios’s crontab to remove centreon’s commands
    – Delete the ods init script

    Original post here : http://forum.centreon.com/f7/double-menus-t6356/

    Or simply install again following the tutorial.

  15. I think my problem above was that I clicked the “Next” button twice on step 10 above in the screencaptures. Since this was a new instance, I just blew everything away and started from scratch and all looks to be good to go.

    Great tutorial by the way.

  16. Oops spoke too soon. After rebooting the server, I now get an error on the home screen with the Centreon logo and the message “Connection failed, please contact your administrator”

  17. Hi Sarithz

    Well, first of all verify that all services are running:

    try service restart centstorage

    same for ‘centcore’ and ‘ndo2db’. Verify also ‘mysql’ service

    If it still does not solve your problem, check the last screen-shots of this post. Especially the second one where you have to change the default ndo2db credentials.

    Regards

  18. Dejan

    I should have to open http://ip/nagios, no? I can’t do that.

    Say: Whoops!

    Error: Could not read object configuration data!

  19. Hi,

    In my tutorial, I install centreon and nagios web part. Nagios web site is only intended to check if my centreon configuration has been correctly exported to nagios.

    On the first install, the nagios web site will present the localhost check. It will be replaced on first Centreon export.

    I suppose your nagios service is not running. Check that by:

    ps -A | grep nagios

    If you have a doubt, restart the service:

    sudo service nagios restart

    Regards

  20. Hi Dejan

    First let me say thanks for posting this. It is very helpful and my install went well. I too however am having issues with the ndo and no hosts showing up. I think I understand where it stems from but perhaps you or someone reading this could shed some light on the following items:

    On the intro to this you specify the nagios user and password as nagios, nagaccess03
    Further in the install when you are creating the ndo database you have mysql> GRANT ALL ON ndo.* TO ndouser@localhost IDENTIFIED BY “ndopassword”; FLUSH PRIVILEGES;
    1. Is this a hard-code and should this be “nagios@localhost” and “nagaccess03”?
    then ./installdb -u ndouser -p ndopassword -h localhost -d ndo
    2. Should this also be nagios and nagaccess03?

    Thanks again!

  21. Hi, I follow all your steps, but in the Centreon installation return this:

    Where is the RRD perl module installed [RRDs.pm]
    default to [/usr/lib/perl5/RRDs.pm]
    >
    /Where is mail binary
    default to [/usr/bin/mail]
    >/usr/bin/mail is not a valid file CRITICAL

    Why? What do I do?

  22. Hi,

    You’re right, it’s hard coded. If you look at the post, in the optimize section (near the end of post) the screenshot ‘setup_centreon_14’ show where you modify the username and password for NDO access.

  23. Hi,

    you probably haven’t installed the mail server.
    At the begining of the post it says:

    DO NOT INSTALL ANY ROLE EXCEPT SSH AND MAIL.

    If you want to install it again, type the following command:

    sudo aptitude install mailx

  24. Hi,

    First, thanks for the post, was very usefull.
    But, i had to install a Nagios/Centreon on a 32bits Ubuntu 10.04, i followed every steps, making no differences between 32 or 64 bits. At the end, i have not any host showing in centreon, but they appear in nagios.

    Here is an extract of my nagios.log

    [1283183628] Caught SIGTERM, shutting down…
    [1283183628] Successfully shutdown… (PID=1032)
    [1283183628] Nagios 3.2.1 starting… (PID=1788)
    [1283183628] Local time is Mon Aug 30 17:53:48 CEST 2010
    [1283183628] LOG VERSION: 2.0
    [1283183628] Error: Could not load module ‘/usr/local/nagios/bin//ndomod.o’ -> /tmp/nebmodS2GNfx: wrong ELF class: ELFCLASS64
    [1283183628] Finished daemonizing… (New PID=1791)

    It seems to be an issu with ndo who try to access to a 64bits library.

    The others things relatives to that issue :

    root@vasimonit:/usr/local/nagios/var/archives# ldd /usr/local/nagios/bin/ndomod.o
    linux-gate.so.1 => (0xb778f000)
    libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb775d000)
    libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7603000)
    /lib/ld-linux.so.2 (0xb7790000)

    root@vasimonit:/usr/local/nagios/var/archives# find / -name linux-gate.so.1
    root@vasimonit:/usr/local/nagios/var/archives# find / -name libnsl.so.1
    /lib/tls/i686/cmov/libnsl.so.1
    /lib/libnsl.so.1
    root@vasimonit:/usr/local/nagios/var/archives# find / -name libc.so.6
    /lib/tls/i686/cmov/libc.so.6
    /lib/libc.so.6
    root@vasimonit:/usr/local/nagios/var/archives# find / -name ld-linux.so.2
    /lib/tls/i686/cmov/ld-linux.so.2
    /lib/ld-linux.so.2

    Excuse my english, i do not practice enough πŸ™
    If somebody have an idea, or a lead wich can help to resolv that issu i’ll be grateful.

    Thanks in advance

  25. resolved the issue with a second installation of the patched version of ndo.

  26. Glad to hear it worked.

    Bonne chance πŸ™‚

  27. Dejan,

    Thanks for your howto. I doubt that I would have gotten this far without it. I do have one question though. When I login into centreon, the home page says “connection failed, contact your admin”. I assume its the ndouser information but not sure. As ndotrouble stated above, I tried the ndouser with ndopassword and nagaccess03 with no luck. In your pic ‘setup_centreon_14β€² i left it with ndouser and ndopassword and also tried nagios login. Still unable to connect to the DB. Any ideas what I am doing wrong as I have used your logins for testing.

  28. Hi kasulstyls

    please proceed as follow:
    log in mysql and reaply the rights to ndo database :

    mysql -u root –password=mysqlcentaccess03
    mysql> GRANT ALL ON ndo.* TO ndouser@localhost IDENTIFIED BY “ndopassword”; FLUSH PRIVILEGES;
    mysql> exit

    PS: By the way your remark points me to a copy paste error in my post i’ll correct tonight (I’ve forgot the 03 after password when I create the database).

    If you still not able to connect to, verify your ndo2db is running by:

    sudo service ndo2db status

    It should be running

  29. Dejan,

    Thanks for the fast reply. I cant get into mysql which leads me to think I might have fat fingered something. I will do a reinstall now. I also noticed on the install that sysutils does not install. I manually grabbed the deb file and installed the dependencies for it to take. Anyhow, I will let you know how it goes.

  30. follow up,

    Everything is showing up this time. Thank you for your post and knowledge.

  31. Hi Dejan,

    great guide! thanks a lot for you detailed setup description – pretty easy πŸ˜€ – so far

    I’ve done everything like you exept the passwords. Export was running without problems no errors at all. Restart the system as you did but after waiting appr. 20 min when I am clickin Monitoring – All Services I am getting the message

    Connection failed, please contact your administrator

    Monitoring – Event Logs:
    XML Parsing Error: no element found Location: http://192.168.1.4/centreon/include/eventLogs/GetXmlLog.php?multi=0&oh=1&warning=1&unknown=1&critical=1&ok=1&unreachable=1&down=1&up=1&num=0&error=1&alert=1&notification=1&search_H=&search_S=&period=&StartDate=&EndDate=&StartTime=&EndTime=&id=RR_0&sid=gtvt481r293q93ivlbio94oju0 Line Number 1, Column 95:Connection failed, please contact your administrator

    during boot I saw: Starting ndo:chown: invalid user: `nagiosadmin:nagiosadmin’ – seems to be a password problem, am I right?

    thanks

    thanks a lot

  32. Hi santhrax,

    It seams that nagiosadmin does not exist at all.
    This account is initiated in section “Nagios web interface”

    regards

  33. Hi. Thanks for the great guide.
    But i hv 2 problems.
    1. Can’t acces nagios web page through: http://ip/nagios – Internal server error…
    2. No event logs are created even when a service is critical and thus no notification is send

    I followed the guide step by step, except the passwords.
    Tried the: ps -A | grep nagios
    response: 31171 ? 00:00:00 nagios – is this OK (I’m linux noob x) )
    Thanks in advance for any help.

  34. Hi Branko

    Well, at least nagios service is running.
    Maybe you should start to try to reinstall the nagios web interface. Under nagios folder try

    sudo make install-webconf
    sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

    Or maybe you missed some installation line (I’ve noticed that sometimes it happen that some lines are skipped when I paste several aptitude lines at the same time).

  35. Excellent documentation … got it working on a Hyper V VM. Thanks.

    Next would be to transfer the Centreon configuration from my physical Server to this VM. Any advice on a quick way to do it?

    I am trying via Configuration – Nagios – Load (all previous Nagios cfg files.

    Thanks again for your clear and detail instructions.

  36. Hi AaronO,

    Sorry for the late answer but I was on holliday.
    Maybe you should try this approach:
    http://www.itpointofview.com/?p=222#more-222

    If you have a nagios configuration without centreon, as far as I know, it’s not possible to import them like this as your nagios configuration files are generated by Centreon.

  37. Hello,

    First, thank you for the awesome guide! I have used this several times to setup Centreon.

    The most recent time, however, I am having an issues I can’t seem to get past. I get everything done in your guide up to the very last step. I don’t encounter any errors during the process. The problem is I am not seeing Centreon start monitoring the hosts and services on the host machine. I see the rules setup under Configuration->Hosts and Configuration->Services but the Home screen shows that 0 hosts and services are being monitored.

    If I login to the Nagios Web, I see my hosts and services being monitored. There must be some kind of disconnect that I am just not seeing.

    Any insight you can provide would be great.

    Thanks,
    Jason

  38. Hi Jason,

    Well if you see your monitoring active in Nagios and not in Centreon it means two things:

    Your Centreon is correctly exporting your settings to your Nagios engine.
    Your Nagios is not exporting results into the Centreon (2 cases: ndo2db is not working well or centreon could not log correcly into your database).

    Let’s start with a simple test; verify that your processes are correctly running:

    >ps -A | grep ndo
    >ps -A | grep cent

    Should give you at least those processes: ndo2db, centcore and centstorage.

    If one of those is missing, you simply have a service which is not started. If all of them are running, you’ll have to check your log files in /usr/local/centreon/log

    Regards

  39. Looks as though ndo2db is not running. I try to start it with the following command:

    >sudo /etc/init.d/ndo2db start

    but I get this error:

    /etc/init.d/ndo2db: 49: Syntax error: “then” unexpected (expecting “fi”)

    I re-pasted the ndo2db script you have above but no luck. It appears I have a mis-configuration with ndo.

    The line in the script the error is referencing is:

    if [ -f /etc/rc.d/init.d/functions ]; then
    . /etc/rc.d/init.d/functions elif [ -f /etc/init.d/functions ]; then *****This is line 49******
    . /etc/init.d/functions fi prefix=/usr/local/nagios exec_prefix=${prefix} NdoBin=${exec_prefix}/bin/ndo2db NdoCfgFile=${prefix}/etc/ndo2db.cfg

  40. I figured it out.

    I was copying your ndo2db script above using the icon on the top right of the script window on your page. It was not pasting correctly into putty. I copied it by selecting all the lines manually and pasting.

    After this ndo started fine and centreon is showing the new hosts and services.

    Thanks for the help!

  41. I’m glad it worked.

  42. Hello,

    We have recently followed your steps for a fresh Centreon Build on Ubuntu 11.10 all seems to work. I am having some odd issues with not seeing the same results from the Nagios Tactical Over view and the Centreon Monitoring>Services>All Services some of the Service checks are missing. I think this has something to to with NDO and I have spent almost 2 full days looking at it and it seems to come back to ndo. I would like to delete the db and re-initialize it if possible.

    If you have any clues on what I should be looking at please help.

    Here is a copy from my nagios.log file that so that it starts up correctly but I am not getting any information back.


    [1325481253] ndomod: NDOMOD-FOR-CENTREON 1.4b7 (15-04-2009) Copyright (c) 2005-2008 Ethan Galstad (nagios@nagios.org)
    [1325481253] ndomod: Successfully connected to data sink. 0 queued items to flush.
    [1325481253] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.

  43. Hi John,

    maybe you should give a try with this tool:

    http://community.centreon.com/projects/ndo-tools

    Last time I’ve used it it was in version 0.1 and I used it to reinitialize duplicate objects from my database. Maybe you’ll need to restart your server after the purge.
    After the reboot, try to regenerate your config files and push them again to nagios.

  44. Hello Dejan,

    That worked great. I was able to purge the old information and when i did a new Nagios Export I was able to view everything again.

    Thank you for the help.

  45. hello admin,

    I want to ask about an existing user user issues above,
    I do not know how / when / where to create a user account and Mysql account activlan centreon

    Please prompts

    sorry my english is not good

  46. Hi Susyanto,

    activlan is my user account I have created when I have installed the operating system. And Mysql account centreon in fact is not used. The password ‘mysqlcentreon03’ is used when you initialise the database in the web interface in this picture:

    http://www.itpointofview.com/wp-content/gallery/centreon-first-setup/setup_centreon_06.png

  47. Anyone have any idea why I would be able to run check_centreon_snmp_traffic from the command line just fine but would get the following error when using it in centreon?

    ERROR: Interface Status Request : No response from remote host ‘192.168.100.50’

    The nagios user owns the traffic_cache files for this service.

  48. Hi,

    in several post I read it was suggested to use the -i switch instead the -n
    Here is an example:

    http://forum.centreon.com/showthread.php/8935-CHECK_CENTREON_SMNP_TRAFFIC-ERROR-Description-Table-No-response-from-remote-host

  49. Hi!

    I installed as in your manual.

    What to do with this errors from log: (/usr/local/nagios/var/nagios.log)

    administrator@monitoring:~$ tail -f /usr/local/nagios/var/nagios.log
    [1335356303] Event broker module ‘/usr/local/nagios/bin/ndomod.o’ initialized successfully.
    [1335356303] Finished daemonizing… (New PID=775)
    [1335356303] INITIAL HOST STATE: Centreon-Server;UP;HARD;1;PING OK – Packet loss = 0%, RTA = 0.12 ms
    [1335356303] INITIAL SERVICE STATE: Centreon-Server;Disk-/;UNKNOWN;HARD;3;ERROR: No response from remote host “127.0.0.1”.
    [1335356303] INITIAL SERVICE STATE: Centreon-Server;Load;UNKNOWN;HARD;3;UNKNOWN: No response from remote host “127.0.0.1”.
    [1335356303] INITIAL SERVICE STATE: Centreon-Server;Memory;UNKNOWN;HARD;3;ERROR: Description Table hrStorageType : No response from remote host “127.0.0.1”.
    [1335356303] INITIAL SERVICE STATE: Centreon-Server;Ping;OK;HARD;1;PING OK – rtt min/avg/max/mdev = 0.033/0.043/0.063/0.014 ms
    [1335349105] Warning: A system time change of 0d 1h 59m 58s (backwards in time) has been detected. Compensating…
    [1335349305] Warning: A system time change of 0d 0h 0m 1s (backwards in time) has been detected. Compensating…
    [1335349764] Warning: The check of host ‘Centreon-Server’ looks like it was orphaned (results never came back). I’m scheduling an immediate check of the host…

    regards

  50. My System:

    Ubuntu 11.10 on Microsoft Hyper-V

    regards