Fix for livestatus icw nagios 4

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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Fix for livestatus icw nagios 4

Post by sreinhardt »

can you provide the exact steps that you followed from downloading source files to building the binaries please?
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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Fix for livestatus icw nagios 4

Post by lmiltchev »

You can search system messages for errors, related to livestatus:

Code: Select all

grep livestatus /var/log/messages
Most probably the module didn't load. I believe you need to change this:

Code: Select all

broker_module=/usr/local/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
to this:

Code: Select all

broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live
Note: Other words, you need to put "live" into the same directory as the Nagios pipe.

Restart nagios and check to see if the module loaded successfully:

Code: Select all

service nagios restart
grep livestatus /var/log/messages
Be sure to check out our Knowledgebase for helpful articles and solutions!
Mike-sbg
Posts: 37
Joined: Mon Jun 01, 2015 1:05 am

Re: Fix for livestatus icw nagios 4

Post by Mike-sbg »

This post is rather old, but did you get it working, without crashes of the nagios core.

I didn't have luck ... Nagios 4.2 crashes every few hours, when I use mk-livestatus
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Fix for livestatus icw nagios 4

Post by lmiltchev »

Mike, I will be locking this post as you have another one open on the same issue already: https://support.nagios.com/forum/viewto ... 6&start=10, and a post on GitHub: https://github.com/NagiosEnterprises/na ... issues/299.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked