Livestatus not working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Livestatus not working

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Livestatus not working

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Livestatus not working

Post by sandeepatil »

@Scott

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

Thanks for support.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Livestatus not working

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked