Thruk prod: ERROR: failed to open socket /var/tmp/live.sock:

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kaushalshriyan
Posts: 120
Joined: Fri May 22, 2015 7:12 am

Thruk prod: ERROR: failed to open socket /var/tmp/live.sock:

Post by kaushalshriyan »

Hi,

I am running thruk as web interface for Nagios 4.2.2 version running on CentOS Linux release 7.2.1511 (Core)

#rpm -qa | grep thruk
thruk-plugin-reporting-2.12-1.x86_64
libthruk-2.10-1.el7.centos.x86_64
thruk-base-2.12-1.x86_64
thruk-2.12-1.x86_64

ps aux | grep thruk
root 14004 0.0 0.2 88104 21240 ? S 23:48 0:00 perl -x /usr/share/thruk/thruk_auth
apache 14096 0.1 0.4 115056 40060 ? S 23:48 0:00 /usr/bin/perl /usr/share/thruk/script/thruk_fastcgi.pl
root 14170 0.0 0.0 112620 672 pts/0 S+ 23:56 0:00 grep --color=auto thruk

ps aux | grep nagios
nagios 7885 0.0 0.0 693980 3268 ? Ssl Nov15 1:54 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 7887 0.0 0.0 10780 1028 ? S Nov15 0:04 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 7888 0.0 0.0 10780 1024 ? S Nov15 0:04 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 7889 0.0 0.0 10780 1028 ? S Nov15 0:04 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 7890 0.0 0.0 10780 1028 ? S Nov15 0:04 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 7891 0.0 0.0 25068 1344 ? S Nov15 0:58 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 14176 0.0 0.0 112620 672 pts/0 S+ 23:57 0:00 grep --color=auto nagios

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.2.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-24-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 6 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
#ll /tmp/live.sock
srw-rw---- 1 nagios nagios 0 Nov 15 15:52 /tmp/live.sock

I am getting the below error which is marked in red

No Backend available
None of the configured Backends could be reached, please have a look at the logfile for detailed information and make sure the core is up and running.

Details:
prod: ERROR: failed to open socket /tmp/live.sock: No such file or directory.. (/tmp/live.sock)

/etc/thruk/thruk.conf -> http://sprunge.us/RGAE
/usr/local/nagios/etc//nagios.cfg -> http://sprunge.us/MPZh

cat /var/log/thruk/thruk.log

[2016/11/25 00:03:27][xxxxxxxxxxxxxxxxxxxxxxxxxx][ERROR][Thruk] No Backend available
[2016/11/25 00:03:27][xxxxxxxxxxxxxxxxxxxxxxxxxx][ERROR][Thruk] on page: http://thruk.mydomain.com/thruk/cgi-bin ... 0012405634
[2016/11/25 00:03:27][xxxxxxxxxxxxxxxxxxxxxxxxxx][ERROR][Thruk] prod: ERROR: failed to open socket /tmp/live.sock: No such file or directory.. (/tmp/live.sock)

cat /usr/local/nagios/var/nagios.log

[1480012555] Event broker module '/usr/lib64/check_mk/livestatus.o' deinitialized successfully.
[1480012556] Nagios 4.2.2 starting... (PID=14333)
[1480012556] Local time is Fri Nov 25 00:05:56 IST 2016
[1480012556] LOG VERSION: 2.0
[1480012556] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1480012556] qh: core query handler registered
[1480012556] nerd: Channel hostchecks registered successfully
[1480012556] nerd: Channel servicechecks registered successfully
[1480012556] nerd: Channel opathchecks registered successfully
[1480012556] nerd: Fully initialized and ready to rock!
[1480012556] wproc: Successfully registered manager as @wproc with query handler
[1480012556] wproc: Registry request: name=Core Worker 14336;pid=14336
[1480012556] wproc: Registry request: name=Core Worker 14337;pid=14337
[1480012556] wproc: Registry request: name=Core Worker 14335;pid=14335
[1480012556] wproc: Registry request: name=Core Worker 14338;pid=14338
[1480012556] livestatus: Livestatus 1.2.8p11 by Mathias Kettner. Socket: '/tmp/live.sock'
[1480012556] livestatus: Please visit us at http://mathias-kettner.de/
[1480012556] livestatus: Hint: please try out OMD - the Open Monitoring Distribution
[1480012556] livestatus: Please visit OMD at http://omdistro.org
[1480012556] livestatus: Finished initialization. Further log messages go to /usr/local/nagios/var/livestatus.log
[1480012556] Event broker module '/usr/lib64/check_mk/livestatus.o' initialized successfully.
[1480012556] Successfully launched command file worker with pid 14339
[1480012556] TIMEPERIOD TRANSITION: 24x7;-1;1
[1480012556] TIMEPERIOD TRANSITION: 24x7_sans_holidays;-1;1
[1480012556] TIMEPERIOD TRANSITION: none;-1;0
[1480012556] TIMEPERIOD TRANSITION: us-holidays;-1;0
[1480012556] TIMEPERIOD TRANSITION: workhours;-1;0

I have attached the screenshot for your reference

Please do let me know if you need any additional information to debug this issue.

Thanks in advance.

Regards,

Kaushal
Attachments
Screen Shot 2016-11-25 at 12.07.38 AM.png
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Thruk prod: ERROR: failed to open socket /var/tmp/live.s

Post by tmcdonald »

You will need to contact the Thruk developers, as we did not write and do not support this interface.
Former Nagios employee
kaushalshriyan
Posts: 120
Joined: Fri May 22, 2015 7:12 am

Re: Thruk prod: ERROR: failed to open socket /var/tmp/live.s

Post by kaushalshriyan »

Thanks donald. I have fixed the issue
Locked