opinkerfi / adagios

Adagios - Web Based Nagios Configuration
GNU Affero General Public License v3.0
327 stars 75 forks source link

Nagios 4.5 not working with adagios #683

Open BrixSat opened 8 months ago

BrixSat commented 8 months ago

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 commented 6 months ago

Any help?

gardart commented 6 months ago

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 commented 6 months ago

Thanks will try that :)

On Wed, 13 Mar 2024 at 12:03, Garðar Þorsteinsson @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/opinkerfi/adagios/issues/683#issuecomment-1994222704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANT2RMVJX6NHESQCZTZKN3YYA6CFAVCNFSM6AAAAABBLF66RSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUGIZDENZQGQ . You are receiving this because you authored the thread.Message ID: @.***>

BrixSat commented 6 months ago

NO luck.... sorry :(

On Wed, 13 Mar 2024 at 15:06, César Silva Araújo @.***> wrote:

Thanks will try that :)

On Wed, 13 Mar 2024 at 12:03, Garðar Þorsteinsson < @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/opinkerfi/adagios/issues/683#issuecomment-1994222704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANT2RMVJX6NHESQCZTZKN3YYA6CFAVCNFSM6AAAAABBLF66RSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUGIZDENZQGQ . You are receiving this because you authored the thread.Message ID: @.***>

gardart commented 6 months ago

did you change the broker module path?

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

gardart commented 6 months ago

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

BrixSat commented 6 months ago

Yes i have changed broker module path. It used to work untill nagios 4.4, on 4.5 and 4.5.1 is broken.

On Wed, 13 Mar 2024 at 15:24, Garðar Þorsteinsson @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/opinkerfi/adagios/issues/683#issuecomment-1994655826, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANT2ROSNEAF3KDS2FHYRXLYYBVRFAVCNFSM6AAAAABBLF66RSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUGY2TKOBSGY . You are receiving this because you authored the thread.Message ID: @.***>