Kaushal Shriyan
2016-Nov-25 18:23 UTC
[CentOS] Thruk reports /var/tmp/live.sock: No such file or directory inspite of the file being present
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&_=1480078344275 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
Leonard den Ottolander
2016-Nov-26 15:56 UTC
[CentOS] Thruk reports /var/tmp/live.sock: No such file or directory inspite of the file being present
Hello Kaushal, On Fri, 2016-11-25 at 23:53 +0530, Kaushal Shriyan wrote:> I am seeing this issue in *thruk.log prod: ERROR: failed to open socket > /var/tmp/live.sock: 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> selinux is disabled.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. -- mount -t life -o ro /dev/dna /genetic/research
Maybe Matching Threads
- Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- Driving me nuts!!! - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)
- Getting mysql.sock error
- Failed to bind socket to '/var/run/libvirt/libvirt-sock': Permission denied