Page 1 of 1

Livestatus not working

Posted: Mon Jun 25, 2018 8:45 am
by sandeepatil
We have installed and configured livestatus (check_mk) as per below document.

https://mathias-kettner.com/checkmk_livestatus.html

OS : Red Hat 7.3 and Nagios Core Version : 4.3.4

nagios.cfg, update with below line.
broker_module=/opt/app/nagios/thruk/lib/mk-livestatus/livestatus.o /opt/app/nagios/var/rw/live
event_broker_options=-1
Issue : Unable to restart nagios service.

Error :
[1529933017] Nagios 4.3.4 starting... (PID=3932)
[1529933017] Local time is Mon Jun 25 09:23:37 EDT 2018
[1529933017] LOG VERSION: 2.0
[1529933017] qh: Socket '/opt/app/nagios/var/rw/nagios.qh' successfully initialized
[1529933017] qh: core query handler registered
[1529933017] nerd: Channel hostchecks registered successfully
[1529933017] nerd: Channel servicechecks registered successfully
[1529933017] nerd: Channel opathchecks registered successfully
[1529933017] nerd: Fully initialized and ready to rock!
[1529933017] wproc: Successfully registered manager as @wproc with query handler
[1529933017] wproc: Registry request: name=Core Worker 3934;pid=3934
[1529933017] wproc: Registry request: name=Core Worker 3935;pid=3935
[1529933017] wproc: Registry request: name=Core Worker 3936;pid=3936
[1529933017] wproc: Registry request: name=Core Worker 3937;pid=3937
[1529933017] Error: Could not load module '/opt/app/nagios/thruk/lib/mk-livestatus/livestatus.o' -> /opt/app/nagios/thruk/lib/mk-livestatus/livestatus.o: undefined symbol: external_command_buffer_slots
[1529933017] Error: Failed to load module '/opt/app/nagios/thruk/lib/mk-livestatus/livestatus.o'.
[1529933017] Error: Module loading failed. Aborting.

Re: Livestatus not working

Posted: Mon Jun 25, 2018 8:52 am
by scottwilkerson
Did you also compile Livestatus against nagios4 using the --with-nagios4 flag when running configure? I think external_command_buffer_slots and it's related functionality was removed/deprecated with some version of Nagios Core 4.

Re: Livestatus not working

Posted: Mon Jun 25, 2018 1:07 pm
by sandeepatil
@Scott

After compile Livestatus against nagios4 using the --with-nagios4, able to restart the nagios service and livestatus working.

Thanks for support.

Re: Livestatus not working

Posted: Mon Jun 25, 2018 1:17 pm
by scottwilkerson
sandeepatil wrote:@Scott

After compile Livestatus against nagios4 using the --with-nagios4, able to restart the nagios service and livestatus working.

Thanks for support.
Excellent, glad it is resolved.

Locking