Nagios (mklivestatus)

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Nagios (mklivestatus)

Postby d1ZZy666 » Wed Dec 10, 2014 9:50 am

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 < viewtopic.php?f=7&t=25244&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!!
d1ZZy666
 
Posts: 3
Joined: Wed Dec 10, 2014 7:32 am

Re: Nagios (mklivestatus)

Postby abrist » Wed Dec 10, 2014 10:37 am

You need to build the core 4 version of livestatus. Refer to the following post for instructions on doing so:
viewtopic.php?f=7&t=25244#p87681
Or:
http://mathias-kettner.com/checkmk_livestatus.html
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
 
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios (mklivestatus)

Postby d1ZZy666 » Wed Dec 10, 2014 12:02 pm

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?
d1ZZy666
 
Posts: 3
Joined: Wed Dec 10, 2014 7:32 am

Re: Nagios (mklivestatus)

Postby sreinhardt » Wed Dec 10, 2014 3:06 pm

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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
sreinhardt
-fno-stack-protector
 
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios (mklivestatus)

Postby d1ZZy666 » Wed Dec 10, 2014 5:06 pm

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
d1ZZy666
 
Posts: 3
Joined: Wed Dec 10, 2014 7:32 am


Return to Nagios Core

Who is online

Users browsing this forum: srv.nagios and 13 guests