Check_MK - Livestatus not loading in Nagios

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
mscf
Posts: 10
Joined: Thu Feb 19, 2015 2:53 pm

Check_MK - Livestatus not loading in Nagios

Post by mscf »

So, I have installed Nagios 4 (its working just fine) and I'm looking at setting up Thunk. So before that, i'm working on getting Livestatus working. I went through the install (just did the full check_mk install) and it seems to be working. I can run cmk command line queries. But when I load nagios and try to use Thunk's back end configuration I get messages about the connection being refused.

In my nagios.cfg I have added:

Code: Select all

event_broker_options=-1
broker_module=/usr/lib/check_mk/livestatus.o /usr/local/nagios/var/rw/live
/usr/local/nagios/var/rw/live was created after restarting nagios, so that seems to be working.

Here are my livestatus errors in Nagios (I left out everything before the livestatus notifications): http://pastebin.com/j3jAiXPc
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_MK - Livestatus not loading in Nagios

Post by lmiltchev »

Is this path correct?

Code: Select all

/usr/lib/check_mk/livestatus.o
Can you run:

Code: Select all

locate livestatus.o
and show us the output?
What is the nagios version that you are currently running?
Be sure to check out our Knowledgebase for helpful articles and solutions!
mscf
Posts: 10
Joined: Thu Feb 19, 2015 2:53 pm

Re: Check_MK - Livestatus not loading in Nagios

Post by mscf »

Yes, that path is correct. I can see the file there.

When I enter location livestatus.o, nothing happens.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_MK - Livestatus not loading in Nagios

Post by scottwilkerson »

This looks like your problem

Code: Select all

livestatus: Unable to bind adress /var/log/nagios/rw/live to UNIX socket: No such file or directory
Can you post your nagios.cfg
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mscf
Posts: 10
Joined: Thu Feb 19, 2015 2:53 pm

Re: Check_MK - Livestatus not loading in Nagios

Post by mscf »

Sorry about the delay, just got a chance to grab the cfg file. You can view it here: http://pastebin.com/BcjHbJUA
mscf
Posts: 10
Joined: Thu Feb 19, 2015 2:53 pm

Re: Check_MK - Livestatus not loading in Nagios

Post by mscf »

lmiltchev wrote: What is the nagios version that you are currently running?
I tried to respond to the second part of your question earlier, but I guess since I'm new it still hasn't passed the moderators. None the less, the version is 4.0.8

And one other wrinkle. Since I've started working on this, I haven't been watching my Nagios monitor. Now its not working either. Throwing up an error that says "Error: Could not read host and service status information!" whenever I try to view anything. And when I try to restart the service, I get "Stopping nagios:/etc/init.d/nagios: 140: kill: No such process".
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_MK - Livestatus not loading in Nagios

Post by scottwilkerson »

You have the following in your nagios.cfg twice

Code: Select all

broker_module=/usr/lib/check_mk/livestatus.o /var/log/nagios/rw/live
event_broker_options=-1
You for sure should remove one of them
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked