MK Livestatus

The MK Livestatus module works with Centreon-Engine 1.3 but you can have some issus.

Undefined symbole

The first one is the undefined symbole

$ cat /var/log/centreon-engine/centengine.log | grep 'Error'
[1358499328] Error: Could not load module '/usr/lib64/centreon-engine/livestatus.o' -> load library failed: /usr/lib64/centreon-engine/livestatus.o: undefined symbol: submit_external_command

To resolve this probleme, you need to load the Centreon External Command module before the MK Livestatus module. This is necessary to provide some symbole use by MK Livestatus. You just need to edit Centreon-Engine configuration file like that

$ cat /etc/centreon-engine/centengine.cfg | grep 'broker_module'
broker_module=/usr/lib64/centreon-engine/externalcmd.so
broker_module=/usr/lib64/centreon-engine/livestatus.so

Unable to bind address

The second one is the unable to bind address

$ cat /var/log/centreon-engine/centengine.log | grep 'livestatus:'
[1358499695] livestatus: Livestatus 1.2.0p3 by Mathias Kettner. Socket: '/usr/local/nagios/var/rw/live'
[1358499695] livestatus: Please visit us at http://mathias-kettner.de/
[1358499695] livestatus: Hint: please try out OMD - the Open Monitoring Distribution
[1358499695] livestatus: Please visit OMD at http://omdistro.org
[1358499695] livestatus: Unable to bind adress /usr/local/nagios/var/rw/live to UNIX socket: Aucun fichier ou répertoire de ce type
[1358499695] livestatus: deinitializing

MK Livestatus use nagios path by default. You need to set Centreon-Engine path. For that you need to edit Centreon-Engine configuration file like that

$ cat /etc/centreon-engine/centengine.cfg | grep 'livestatus'
broker_module=/usr/lib64/centreon-engine/livestatus.o /var/lib/centreon-engine/rw/livestatus.sock