Page 1 of 1
Check_MK - Livestatus not loading in Nagios
Posted: Thu Feb 19, 2015 2:56 pm
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
Re: Check_MK - Livestatus not loading in Nagios
Posted: Thu Feb 19, 2015 4:15 pm
by lmiltchev
Is this path correct?
Can you run:
and show us the output?
What is the nagios version that you are currently running?
Re: Check_MK - Livestatus not loading in Nagios
Posted: Thu Feb 19, 2015 5:55 pm
by mscf
Yes, that path is correct. I can see the file there.
When I enter location livestatus.o, nothing happens.
Re: Check_MK - Livestatus not loading in Nagios
Posted: Thu Feb 19, 2015 6:12 pm
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
Re: Check_MK - Livestatus not loading in Nagios
Posted: Thu Feb 19, 2015 10:40 pm
by mscf
Sorry about the delay, just got a chance to grab the cfg file. You can view it here:
http://pastebin.com/BcjHbJUA
Re: Check_MK - Livestatus not loading in Nagios
Posted: Thu Feb 19, 2015 10:44 pm
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".
Re: Check_MK - Livestatus not loading in Nagios
Posted: Fri Feb 20, 2015 10:16 am
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