Page 1 of 1

Nagios (mklivestatus)

Posted: Wed Dec 10, 2014 9:50 am
by d1ZZy666
Nagios core: 4.0.8
Install path: /usr/local/nagios

I'm trying to install Nagvis 1.7.10 but mk-livestatus is failing. See log below;

-------
[1418222495] LOG VERSION: 2.0
[1418222495] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1418222495] qh: core query handler registered
[1418222495] nerd: Channel hostchecks registered successfully
[1418222495] nerd: Channel servicechecks registered successfully
[1418222495] nerd: Channel opathchecks registered successfully
[1418222495] nerd: Fully initialized and ready to rock!
[1418222495] wproc: Successfully registered manager as @wproc with query handler
[1418222495] wproc: Registry request: name=Core Worker 3989;pid=3989
[1418222495] wproc: Registry request: name=Core Worker 3990;pid=3990
[1418222495] wproc: Registry request: name=Core Worker 3992;pid=3992
[1418222495] wproc: Registry request: name=Core Worker 3993;pid=3993
[1418222495] wproc: Registry request: name=Core Worker 3994;pid=3994
[1418222495] wproc: Registry request: name=Core Worker 3991;pid=3991
[1418222495] Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/lib/mk-livestatus/livestatus.o: undefined symbol: last_command_check
[1418222495] Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.
[1418222495] Error: Module loading failed. Aborting.
-------

I've seen post < http://support.nagios.com/forum/viewtop ... 4&start=10 > but i'm not too sure how to build from https://github.com/op5/livestatus

Also, I don't have the original nagios install folder, but I know i've built it right as I have a /usr/local/nagios/includes folder.

Both "/usr/local/lib/mk-livestatus/livestatus.o" and "/usr/local/nagios/var/rw" exist.

I know i'm pretty close to getting nagvis up and running!!

Any help would be appreciated!!

Re: Nagios (mklivestatus)

Posted: Wed Dec 10, 2014 10:37 am
by abrist
You need to build the core 4 version of livestatus. Refer to the following post for instructions on doing so:
http://support.nagios.com/forum/viewtop ... 244#p87681
Or:
http://mathias-kettner.com/checkmk_livestatus.html

Re: Nagios (mklivestatus)

Posted: Wed Dec 10, 2014 12:02 pm
by d1ZZy666
Hi thanks for your response.

I followed this guide; http://mathias-kettner.com/checkmk_livestatus.html with version mk-livestatus-1.2.4p5

Installation failed with version mk-livestatus-1.1.6p1

Still getting same error;

[1418227805] Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/lib/mk-livestatus/livestatus.o: undefined symbol: last_command_check
[1418227805] Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.
[1418227805] Error: Module loading failed. Aborting.

Any idea?

Re: Nagios (mklivestatus)

Posted: Wed Dec 10, 2014 3:06 pm
by sreinhardt
Yes, as abrist mentioned, you need to use the core4 branch specifically. The standard guide is no longer compatible with nagios core 4 pre 1.2.5i, which it looks like you were just before that version.

edit: I should also note, that since you are compiling newer that core 4.0.2, you will need to have the core headers for mk to compile properly.

Re: Nagios (mklivestatus)

Posted: Wed Dec 10, 2014 5:06 pm
by d1ZZy666
Hi thanks for your response!!

I've recompiled with the 1.2.5i version. I had also created the folder /usr/local/nagios/var/rw/live - which was also stopping the livestatus process from spawning. Removed folder and restart nagios.

Happy to report i'm up and running now!!

Thanks for your help much appreciated. :-)

-----

For those of you with the same issue as me, I done the following;

1. Downloaded - http://mathias-kettner.com/download/mk- ... 6p4.tar.gz
2. Extracted
3. As root executed: ./configure --with-nagios4
4. Added (without quotes): "broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live" to /usr/local/nagios/etc/nagios.cfg
5. Restarted nagios!! /etc/init.d/nagios restart