Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nagios 4.5 not working with adagios #683

Open
BrixSat opened this issue Jan 3, 2024 · 7 comments
Open

Nagios 4.5 not working with adagios #683

BrixSat opened this issue Jan 3, 2024 · 7 comments

Comments

@BrixSat
Copy link

BrixSat commented Jan 3, 2024

Hi the latest version of nagios (4.5) and adagios 1.6 do not work. When opening adagios the message i have is the following:

Oh no, something went wrong ☹
Adagios cannot connect to livestatus. Don't worry, you can still use the other parts of Adagios, but to get the status part to work check the following:

    Is [mk-livestatus](http://mathias-kettner.de/checkmk_livestatus.html/) installed ?
    Does [nagios.cfg](http://192.168.2.6/adagios/objectbrowser/nagios.cfg) have a broker_module= line that loads mk-livestatus ?
    Are there any errors related to livestatus in [nagios logfiles](http://192.168.2.6/adagios/status/log?search=livestatus) ?

Install instructions for rpm-based systems:

yum --enablerepo=ok-testing install mk-livestatus
pynag config --append "broker_module=/usr/lib64/mk-livestatus/livestatus.o /var/spool/nagios/cmd/livestatus"
service nagios reload
            

Install instructions for debian-based systems:

apt-get install check-mk-livestatus
pynag config --append "broker_module=/usr/lib/check_mk/livestatus.o /var/lib/nagios3/rw/livestatus"
service nagios3 reload

ParserError: "[Errno 111] Connection refused while connecting to '/usr/local/nagios/var/rw/livestatus'. Make sure nagios is running and mk_livestatus loaded."

When adagios is opened it makes the mk-live-status socket crash, and i cant find why is crashing.

Dont know how to fix or where to fix. If someone could point me in the right direction i would appreciate it.

Thanks in advance

@BrixSat
Copy link
Author

BrixSat commented Mar 13, 2024

Any help?

@gardart
Copy link
Contributor

gardart commented Mar 13, 2024

I would use Naemon, it has livestatus support. You can try to use older version (1.2.6) of livestatus with nagios

wget https://github.com/opinkerfi/adagios/raw/master/contrib/mk-livestatus-1.2.6.tar.gz

Build mk-livestatus for Nagios4

Download mk-livestatus-1.2.6.tar.gz
sudo yum install -y make gcc-c++
tar -zxvf mk-livestatus-1.2.6.tar.gz
cd mk-livestatus-1.2.6
./configure --with-nagios4
make
make install

@BrixSat
Copy link
Author

BrixSat commented Mar 13, 2024 via email

@BrixSat
Copy link
Author

BrixSat commented Mar 13, 2024 via email

@gardart
Copy link
Contributor

gardart commented Mar 13, 2024

did you change the broker module path?

broker_module=/usr/local/lib/mk-livestatus/livestatus.o

@gardart
Copy link
Contributor

gardart commented Mar 13, 2024

and if you want to try Naemon, you can try this guide for RHEL8 :
https://github.com/opinkerfi/adagios/wiki/Install-guide

@BrixSat
Copy link
Author

BrixSat commented Mar 13, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants