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:
SQL:
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`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
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
ref.
http://mathias-kettner.de/checkmk_livestatus.html
http://forum.centreon.com/showthread.php/9681-PATCH-nagios.cfg-Multiple-Directive-broker-module-Centreon-2.1.5?highlight=broker
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,
Cheers!
Thank you very much,
Cheers!!!
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?