Nagios core 4.3.2 and mk_livestatus 1.2.6

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
emi65
Posts: 119
Joined: Fri Aug 17, 2012 3:41 am

Nagios core 4.3.2 and mk_livestatus 1.2.6

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios core 4.3.2 and mk_livestatus 1.2.6

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

Re: Nagios core 4.3.2 and mk_livestatus 1.2.6

Post by scottwilkerson »

Here is a thread that describes your issue with a resolution:
https://support.nagios.com/forum/viewto ... =7&t=30485
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
emi65
Posts: 119
Joined: Fri Aug 17, 2012 3:41 am

SOLVED Re: Nagios core 4.3.2 and mk_livestatus 1.2.6

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

Re: Nagios core 4.3.2 and mk_livestatus 1.2.6

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked