-
Notifications
You must be signed in to change notification settings - Fork 448
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
Failed to connect to /usr/local/nagios/var/rw/livestatus: Connection refused at /usr/share/thruk/lib/Monitoring/Livestatus/UNIX.pm line 72 #956
Comments
Hello, kaushalshriyan. It's a livestatus bug. You need apply two patches to livestatus source code and rebuild it. 0003-livestatus_hostfilecolumn-1.5.0.patch.txt |
@n5047c Any steps to apply the above patch? Please guide. Thanks in advance. cd /root/mk_livestatus-main |
Hi, @kaushalshriyan.
|
@n5047c It is still not working.
I have attached the livestatuspatch.log for your reference. |
@n5047c I am attaching further screenshot for your reference. Please guide me further. |
|
Hi, @kaushalshriyan.
|
@n5047c Yes patch -p1 < 0003-livestatus_hostfilecolumn-1.5.0.patch patch -p1 < 0005-livestatus_customvarscolumn-1.5.0.patch I am attaching both nagios.log and livestatus.log for your reference. |
I am attaching both rebuildpatch.txt,nagios.log and livestatus.log for your reference. |
@n5047c I'm checking in again if you need any other details. Thanks in advance, and I look forward to hearing from you. |
Hi, @kaushalshriyan. Last error in your logs is "Permission denied". Could you get "GET status" manualy after start nagios and after restart nagios? Could you show permissons of "/usr/local/nagios/var/rw/livestatus"? |
@n5047c I have attached the log file and screenshot for your reference mentioning all the details of the issue. Please let me know if you need any other details. Thanks in advance and I look forward to hearing from you. |
@sawolf @n5047c I have installed the latest version 4.5.2 (https://www.nagios.org/downloads/nagios-core/thanks/). The issue still persists. Please let me know if you need any other details. Thanks in advance and I look forward to hearing from you.
|
@n5047c Can you please point me to the livestatus github repo wherein i can compile and create a fresh livestatus.o file which is compatible with Nagios core 4.5.x version? |
@n5047c @sawolf I have used https://github.com/Checkmk/checkmk/tree/1.2.8 to configure livestatus using Nagios core 4.5.2. Initially it works while configuring livestatus. Next when i click on hosts link or any other link in thruk webinterface, it crashes. I have attached the screenshot for the reference. Please let me know if you need any other details. Thanks in advance and I look forward to hearing from you.
|
Hi, same problem here with: echo "GET status" | /usr/local/bin/unixcat /usr/local/nagios/var/rw/live /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg With nagios 4.4.14 all work fine: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Nagios Core 4.4.14 systemctl start nagios echo "GET status" | /usr/local/bin/unixcat /usr/local/nagios/var/rw/live Thanks in advance! |
Hi all. In production I use nagioscore 4.4.11 and livestatus 1.4.0p38. My test environment:
service nagios start May 07 13:53:56 modmon-2024-03-31-centos7 nagios[4254]: Checked 0 service dependencies echo "GET status" | /usr/local/bin/unixcat /usr/local/nagios/var/rw/live service nagios restart echo "GET status" | /usr/local/bin/unixcat /usr/local/nagios/var/rw/live cat nagios.log |
@kaushalshriyan i recommend that you look for another alternative because since version 4.5.X the third-party integrations have failed and what was used to connect nagvis and nagios was through livestatus, well that is over, I am using naemon in its version 1.4.2 in docker, I have it integrated with grafana, nagvis, pnp4nagios oh with nagflux |
I am running nagios version 4.5.1 (https://www.nagios.org/projects/nagios-core/4x/)
event_broker_options=-1
broker_module=/opt/local/livestatus/livestatus.o /usr/local/nagios/var/rw/livestatus
I am encountering the below issue whenever I restart
Please guide me. Thanks in advance.
The text was updated successfully, but these errors were encountered: