Home > Centreon, HowTo, Nagios > How to setup Centreon with MK_Livestatus

How to setup Centreon with MK_Livestatus

April 18th, 2011 Leave a comment Go to comments

How to setup Centreon with MK_Livestatus

Setup mk_livestatus:

wget http://mathias-kettner.de/download/mk-livestatus-1.1.10p1.tar.gz
tar -zxvf mk-livestatus-1.1.10p1.tar.gz
cd mk-livestatus-1.1.10p1
make install
chown nagios.apache/usr/local/lib/mk-livestatus/livestatus.o

To patch centreon to use multibrokers:

1. Create new tables in DB: ‘centreon’

CREATE TABLE IF NOT EXISTS `cfg_nagios_bkmod` (
`bkmod_id` int(11) NOT NULL AUTO_INCREMENT,
`nagios_id` int(11) DEFAULT NULL,
`broker_module` varchar(255) DEFAULT NULL,
PRIMARY KEY (`bkmod_id`)

2. Export broker_module for the new table:

INSERT INTO `cfg_nagios_bkmod` (nagios_id, broker_module)
SELECT nagios_id, broker_module
FROM cfg_nagios;

3.Install and run patches
cd /usr/local/centreon/
wget http://forge.centreon.com/attachments/646/centreon-2.1.5_multibroker001.patch.zip
wget http://forge.centreon.com/attachments/695/centreon-2.1.6_multibroker002_To_003.tar
unzip centreon-2.1.5_multibroker001.patch.zip
tar -zxvf centreon-2.1.6_multibroker002_To_003.tar
patch -p1 < ../centreon/centreon-2.1.5_multibroker001.patch
patch -p1 < ../centreon/centreon-2.1.6_multibroker002_To_003.patch

Now go to Configuration > Nagios


  1. Albert Fortes
    September 15th, 2011 at 18:22 | #1

    Hi Felipe,

    I’ve just installed nagios 3.3.1 with centreon 2.2.2. Currently using only ndo.

    I’ve seen that this centreon version includes multi broker support, can you explain what configuration is required to change in nagios and centreon to use only mk_livestatus.

    Is it possible to completly remove ndoutils?

    Thanks in advance,

    Thank you very much,


  2. Andre
    August 23rd, 2012 at 11:33 | #2

    Felipe, então eu não posso ter apenas o mk_livestatus no centreon, precisarei do ndo ainda (Para o centreon poder atualizar o banco)? Posso ter 2 entradas de broker no nagios?

  1. No trackbacks yet.