Thruk Reports /var/tmp/live.sock: No Such File Or Directory Inspite Of The File Being Present

Home » CentOS » Thruk Reports /var/tmp/live.sock: No Such File Or Directory Inspite Of The File Being Present
CentOS 1 Comment

Hi,

I am running thruk (version is thruk-2.12-1.x86_64) which is a web interface for nagios 4.2.3 and running httpd-2.4.6-40.el7.CentOS.4.x86_64
on CentOS Linux release 7.2.1511 (Core)

While accessing thruk web interface http://thruk.mydomain.com/thruk/cgi-bin/
status.cgi?host=all&_80078344275

I am seeing this issue in *thruk.log prod: ERROR: failed to open socket
/var/tmp/live.sock: No such file or directory*

As you can see the file /var/tmp/live.sock is present as per the below ls
-l command output, I am not sure about the above error of No such file or directory
#ls -l /var/tmp/live.sock srw-rw—- 1 nagios nagios 0 Nov 25 18:12 /var/tmp/live.sock

I can share the /etc/httpd/conf.d/thruk.conf. selinux is disabled.

thruk :- https://www.thruk.org/

http://sprunge.us/iPIU is the output of *strace -p pidofthruk*

apache 4248 0.0 0.3 106020 31016 ? S 19:25 0:00
/usr/bin/perl /usr/share/thruk/script/thruk_fastcgi.pl

Please let me know if you need any additional information.

Regards,

Kaushal

One thought on - Thruk Reports /var/tmp/live.sock: No Such File Or Directory Inspite Of The File Being Present

  • Hello Kaushal,

    I suppose the problem is the ownership of that file. Apache normally runs as user apache group apache, neither of which can read that file. chgrp the file or add apache to the nagios group or run that (virtual?)
    http host with the nagios group or user.

    Regards, Leonard.

LEAVE A COMMENT