httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kaushal Shriyan <kaushalshri...@gmail.com>
Subject Re: [users@httpd] Thruk reports /var/tmp/live.sock: No such file or directory inspite of the file being present
Date Fri, 25 Nov 2016 18:35:25 GMT
On Fri, Nov 25, 2016 at 11:56 PM, Daniel <dferradal@gmail.com> wrote:

> If apache is supposed to interact with that socket file, the user it runs
> as at least should be in the nagios group looking at how you configured its
> permissions, or you could change its ownership to nagios:www-data (or
> however the user httpd uses is named)
>
>
Hi Daniel

I am still seeing

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 /var/tmp/live.sock: No such file or
directory.. (/var/tmp/live.sock)

ls -l /var/tmp/live.sock
srw-rw-rw- 1 nagios apache 0 Nov 25 18:12 /var/tmp/live.sock


[root@e2e-14-53 ~]# id nagios
uid=1000(nagios) gid=1000(nagios)
groups=1000(nagios),48(apache),1001(nagcmd)
[root@e2e-14-53 ~]# id apache
uid=48(apache) gid=48(apache)
groups=48(apache),1000(nagios),1001(nagcmd),1003(prod)
[root@e2e-14-53 ~]#


[root@e2e-14-53 ~]# ps aux | grep apache
apache    4240  0.0  0.0 264664  4168 ?        S    Nov25   0:00
/usr/sbin/httpd -DFOREGROUND
apache    4242  0.0  0.1 348296  8524 ?        S    Nov25   0:00
/usr/sbin/httpd -DFOREGROUND
apache    4243  0.0  0.0 347956  8000 ?        S    Nov25   0:00
/usr/sbin/httpd -DFOREGROUND
apache    4245  0.0  0.1 347960  8380 ?        S    Nov25   0:00
/usr/sbin/httpd -DFOREGROUND
apache    4246  0.0  0.0 347956  8004 ?        S    Nov25   0:00
/usr/sbin/httpd -DFOREGROUND
apache    4247  0.0  0.1 347936  8228 ?        S    Nov25   0:00
/usr/sbin/httpd -DFOREGROUND
apache    4248  0.0  0.4 117508 36368 ?        S    Nov25   0:00
/usr/bin/perl /usr/share/thruk/script/thruk_fastcgi.pl
prod      4355  0.0  0.0 106668  7724 ?        Ss   Nov25   0:00
/usr/sbin/httpd -f /omd/sites/prod/etc/apache/apache.conf
prod      4360  0.0  0.0 106596  4328 ?        S    Nov25   0:00
/usr/sbin/httpd -f /omd/sites/prod/etc/apache/apache.conf
prod      4362  0.0  0.0 106668  5216 ?        S    Nov25   0:00
/usr/sbin/httpd -f /omd/sites/prod/etc/apache/apache.conf
prod      4363  0.0  0.0 106668  5216 ?        S    Nov25   0:00
/usr/sbin/httpd -f /omd/sites/prod/etc/apache/apache.conf
prod      4365  0.0  0.1 156684 13156 ?        S    Nov25   0:00
/usr/sbin/httpd -f /omd/sites/prod/etc/apache/apache.conf
prod      4366  0.0  0.0 106668  4712 ?        S    Nov25   0:00
/usr/sbin/httpd -f /omd/sites/prod/etc/apache/apache.conf
prod      4367  0.0  0.0 106668  4712 ?        S    Nov25   0:00
/usr/sbin/httpd -f /omd/sites/prod/etc/apache/apache.conf
apache    4373  0.0  0.0 347848  7524 ?        S    Nov25   0:00
/usr/sbin/httpd -DFOREGROUND
apache   10479  0.0  0.0 347956  7748 ?        S    00:00   0:00
/usr/sbin/httpd -DFOREGROUND
apache   10480  0.0  0.0 347956  7748 ?        S    00:00   0:00
/usr/sbin/httpd -DFOREGROUND
apache   10481  0.0  0.0 347892  7924 ?        S    00:00   0:00
/usr/sbin/httpd -DFOREGROUND
apache   10482  0.0  0.0 347956  7748 ?        S    00:00   0:00
/usr/sbin/httpd -DFOREGROUND
apache   10483  0.3  0.3 106296 31264 ?        S    00:00   0:00
/usr/bin/perl /usr/share/thruk/script/thruk_fastcgi.pl
root     10546  0.0  0.0 112624   928 pts/0    R+   00:02   0:00 grep
--color=auto apache
[root@e2e-14-53 ~]# ps aux | grep thruk
root      4239  0.0  0.2  88080 21268 ?        S    Nov25   0:00 perl -x
/usr/share/thruk/thruk_auth
apache    4248  0.0  0.4 117508 36368 ?        S    Nov25   0:00
/usr/bin/perl /usr/share/thruk/script/thruk_fastcgi.pl
apache   10483  0.3  0.3 106296 31264 ?        S    00:00   0:00
/usr/bin/perl /usr/share/thruk/script/thruk_fastcgi.pl
root     10551  0.0  0.0 112624   932 pts/0    S+   00:02   0:00 grep
--color=auto thruk
[root@e2e-14-53 ~]# ps aux | grep nagios
nagios    3092  0.0  0.0 689244  3008 ?        Ssl  Nov25   0:03
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    3094  0.0  0.0  10780  1016 ?        S    Nov25   0:00
/usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    3095  0.0  0.0  10780  1012 ?        S    Nov25   0:00
/usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    3096  0.0  0.0  10780  1012 ?        S    Nov25   0:00
/usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    3097  0.0  0.0  10780  1012 ?        S    Nov25   0:00
/usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    3098  0.0  0.0  24556  1304 ?        S    Nov25   0:01
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
prod      4289  0.0  0.0 156076   832 ?        S    Nov25   0:01
/omd/sites/prod/bin/npcd -d -f /omd/sites/prod/etc/pnp4nagios/npcd.cfg
prod      4316  0.0  0.0 1041064 2832 ?        Ssl  Nov25   0:09
/omd/sites/prod/bin/nagios -ud /omd/sites/prod/tmp/nagios/nagios.cfg
root     10553  0.0  0.0 112624   932 pts/0    R+   00:02   0:00 grep
--color=auto nagios
[root@e2e-14-53 ~]#

#strace -p pidofthruk_fastcgi.pl perl process output  ->
http://sprunge.us/iPIU

Please let me know if you need any additional information

Regards,

Kaushal


2016-11-25 19:19 GMT+01:00 Kaushal Shriyan <kaushalshriyan@gmail.com>:
>
>> 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.mydomai
>> n.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*
>>
>> #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
>>
>> Any help will be highly appreciable.
>>
>> Regards,
>>
>> Kaushal
>>
>
>
>
> --
> *Daniel Ferradal*
> IT Specialist
>
> email         dferradal at gmail.com
> linkedin     es.linkedin.com/in/danielferradal
>

Mime
View raw message