Page 1 of 1

Nagios core 4.3.2 and mk_livestatus 1.2.6

Posted: Tue Aug 22, 2017 8:54 am
by emi65
Hi

I'm using Nagios core 4.3.2 (on red hat 6) and I'm attemptin to install check-mk-livestatus

The final goal is to use NagVis

Using yum I installed check-mk-livestatus-1.2.6p16-3.el6.x86_64

I modified nagios.cfg with this line
broker_module=/usr/lib64/check_mk/livestatus.o /var/spool/nagios/live
event_broker_options=-1

When I restart nagios I got this error
[1503408104] Error: Could not load module '/usr/lib64/check_mk/livestatus.o' -> /usr/lib64/check_mk/livestatus.o: undefined symbol: last_command_check
[1503408104] Error: Failed to load module '/usr/lib64/check_mk/livestatus.o'.

Could you help me to solve this problem ?

thanks
Emilio

Re: Nagios core 4.3.2 and mk_livestatus 1.2.6

Posted: Tue Aug 22, 2017 9:31 am
by mcapra
I would recommend removing the repository install and building livestatus from scratch:
http://mathias-kettner.com/checkmk_live ... Livestatus

My guess is that repository you installed from has a build of livestatus for Nagios 3.x rather than Nagios 4.x.

Re: Nagios core 4.3.2 and mk_livestatus 1.2.6

Posted: Tue Aug 22, 2017 11:12 am
by scottwilkerson
Here is a thread that describes your issue with a resolution:
https://support.nagios.com/forum/viewto ... =7&t=30485

SOLVED Re: Nagios core 4.3.2 and mk_livestatus 1.2.6

Posted: Wed Aug 23, 2017 3:05 am
by emi65
I solved in this way
I downloaded mk-livestatus-1.2.6p15
I run ./configure --with-nagios4

and the make is worked and has created the livestatus.o

All works fine
Thanks
Emilio

Re: Nagios core 4.3.2 and mk_livestatus 1.2.6

Posted: Wed Aug 23, 2017 9:15 am
by scottwilkerson
Excellent. That was the main reason I linked that other thread because it showed all the required commands for a Nagios 4 installation including --with-nagios4