Page 1 of 1

Nagios building the MK Livestatus module for Nagios XI

Posted: Tue Dec 16, 2014 1:40 pm
by highness
Looks like there are a few people trying to get MK Livestatus installed for Nagios XI folks (and having varying degrees of issues / success).

Is there ANY way that Nagios would build an RPM for us to get this working with XI?

I've tried several times, but for some reason am unable to get MK Livestatus 1.2.4p5 working with my 2014R1.5 version of XI.

Re: Nagios building the MK Livestatus module for Nagios XI

Posted: Tue Dec 16, 2014 4:35 pm
by lmiltchev
Is there ANY way that Nagios would build an RPM for us to get this working with XI?
As far as I know, this is not on a road map. I am not sure if it will ever happen, but I could be wrong.
I've tried several times, but for some reason am unable to get MK Livestatus 1.2.4p5 working with my 2014R1.5 version of XI.
What are the specific issues that you ran into? Can you show us an example of the error (problem)?

Re: Nagios building the MK Livestatus module for Nagios XI

Posted: Tue Dec 16, 2014 4:40 pm
by scottwilkerson
Not sure if you need this specific version, but as far as I am aware this works

Code: Select all

cd /tmp
wget http://mathias-kettner.com/download/mk-livestatus-1.2.4.tar.gz
tar xzf mk-livestatus-1.2.4.tar.gz
cd mk-livestatus-1.2.4
./configure --with-nagios4
make
make install
Then making sure you have the following in the in the nagios.cfg

Code: Select all

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

Re: Nagios building the MK Livestatus module for Nagios XI

Posted: Tue Dec 16, 2014 5:01 pm
by highness
Did all those steps you had listed (even removed the files and downloaded again from scratch).

I see this is the /usr/local/nagios/var/nagios.log:

[1418766765] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1418766765] Error: Module loading failed. Aborting.
<SNIP>
[1418767130] Warning: Host performance command 'nagios-process-host-perfdata' was not found - host performance data will not be processed!
[1418767130] Warning: Service performance command 'nagios-process-service-perfdata' was not found - service performance data will not be processed!
[1418767130] Warning: Host performance file processing command 'nagios-process-host-perfdata-file' was not found - host performance data file will not be processed!
[1418767130] Warning: Service performance file processing command 'nagios-process-service-perfdata-file' was not found - service performance data file will not be processed!

Re: Nagios building the MK Livestatus module for Nagios XI

Posted: Tue Dec 16, 2014 6:00 pm
by abrist
highness wrote:[1418766765] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1418766765] Error: Module loading failed. Aborting.
To me, it looks like ndo is failing, not livestatus. Can you post your full nagios.cfg?

Re: Nagios building the MK Livestatus module for Nagios XI

Posted: Tue Dec 16, 2014 6:02 pm
by lmiltchev
Run the following commands and show us the output:

Code: Select all

locate livestatus
grep broker_module /usr/local/nagios/etc/nagios.cfg
grep live /var/log/messages | tail -20

Re: Nagios building the MK Livestatus module for Nagios XI

Posted: Mon Dec 22, 2014 1:40 pm
by highness
looks like I'm going to have to shelve this until after the holidays... We're in peak mode now, so this'll have to wait.

Re: Nagios building the MK Livestatus module for Nagios XI

Posted: Mon Dec 22, 2014 2:11 pm
by tgriep
Thanks for the response.
Please let us know when you are ready to proceed with this.