Problem mk-livestatus on Nagios 4.1.1

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.
rumarcin11
Posts: 36
Joined: Thu Feb 25, 2016 7:42 am

Problem mk-livestatus on Nagios 4.1.1

Post by rumarcin11 »

[1460464949] Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/lib/mk-livestatus/livestatus.o: undefined symbol: external_command_buffer_slots
[1460464949] Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.
[1460464949] Error: Module loading failed. Aborting.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Problem mk-livestatus on Nagios 4.1.1

Post by tmcdonald »

You'll need to reach out to the MK devs for help with this, as it is not our project and we do not provide support for it.
Former Nagios employee
blevans
Posts: 13
Joined: Mon Mar 23, 2015 3:40 pm

Re: Problem mk-livestatus on Nagios 4.1.1

Post by blevans »

rumarcin,
I am having the same issue and have not been able to locate ANY info on this error elsewhere.
Were you able to resolve this?
If so, please advise!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Problem mk-livestatus on Nagios 4.1.1

Post by tmcdonald »

We can leave this open for the OP to comment, but the thread is fairly old by now and he might not have notifications enabled.
Former Nagios employee
WinkTVSupport
Posts: 1
Joined: Thu Nov 17, 2016 8:41 am

Re: Problem mk-livestatus on Nagios 4.1.1

Post by WinkTVSupport »

for future search reference.

I can confirm that for mk-livestatus-1.2.8 and Nagios 4.1.1 core ... livestatus will successfully build if you copy the required .h files from the nagios source to the mk-livestatus nagios4 directory.
edit: shared.sh, change
#include "lib/libnagios.h"
to
#include "libnagios.h"
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Problem mk-livestatus on Nagios 4.1.1

Post by rkennedy »

Thanks for the addition @WinkTVSupport - I'll leave this open for further discussion.
Former Nagios Employee
Mike-sbg
Posts: 37
Joined: Mon Jun 01, 2015 1:05 am

Re: Problem mk-livestatus on Nagios 4.1.1

Post by Mike-sbg »

Did anyone find a solution for the problem?

Code: Select all

./configure CPPFLAGS=-I/Nagios-Sources/include/
It compiled without any errors for Nagios 4.2.3, but when I try to start it, I get the error

Code: Select all

Error: Could not load module '/usr/lib64/check_mk/livestatus.o' -> /usr/lib64/check_mk/livestatus.o: undefined symbol: external_command_buffer_slots
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Problem mk-livestatus on Nagios 4.1.1

Post by dwhitfield »

Perhaps those of you in this thread have already looked, but there are various threads of people trying to get mk-livestatus working: https://support.nagios.com/forum/search ... id%5B%5D=5
Mike-sbg
Posts: 37
Joined: Mon Jun 01, 2015 1:05 am

Re: Problem mk-livestatus on Nagios 4.1.1

Post by Mike-sbg »

If found a solution, you must also define, for which Nagios Version you compile it, the full command is:

Code: Select all

./configure CPPFLAGS=-I/Nagios-Sources/nagios-4.2.3/include/  --with-nagios4 --prefix=/usr/local/nagios
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Problem mk-livestatus on Nagios 4.1.1

Post by dwhitfield »

@rumarcin11, does @Mike-sbg's solution work for you?
Locked