Hi Daniel, Please find the details which are as below :-
[root@e2e-14-53 ~]# namei -mx /var/tmp/live.sock f: /var/tmp/live.sock Dr-xr-xr-x / drwxr-xr-x var drwxrwxrwt tmp srw-rw-rw- live.sock [root@e2e-14-53 ~]# namei -mol /var/tmp/live.sock f: /var/tmp/live.sock dr-xr-xr-x root root / drwxr-xr-x root root var drwxrwxrwt root root tmp srw-rw-rw- nagios apache live.sock [root@e2e-14-53 ~]# #cat nagios.log [1480131966] Caught SIGTERM, shutting down... [1480131966] Successfully shutdown... (PID=3092) [1480131966] Event broker module 'NERD' deinitialized successfully. [1480131968] livestatus: Socket thread has terminated [1480131968] Event broker module '/usr/lib64/check_mk/livestatus.o' deinitialized successfully. [1480131968] Nagios 4.2.3 starting... (PID=22207) [1480131968] Local time is Sat Nov 26 09:16:08 IST 2016 [1480131968] LOG VERSION: 2.0 [1480131968] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized [1480131968] qh: core query handler registered [1480131968] nerd: Channel hostchecks registered successfully [1480131968] nerd: Channel servicechecks registered successfully [1480131968] nerd: Channel opathchecks registered successfully [1480131968] nerd: Fully initialized and ready to rock! [1480131968] wproc: Successfully registered manager as @wproc with query handler [1480131968] wproc: Registry request: name=Core Worker 22212;pid=22212 [1480131968] wproc: Registry request: name=Core Worker 22211;pid=22211 [1480131968] wproc: Registry request: name=Core Worker 22209;pid=22209 [1480131968] wproc: Registry request: name=Core Worker 22210;pid=22210 [1480131968] livestatus: Livestatus 1.2.8p11 by Mathias Kettner. Socket: '/var/tmp/live.sock' [1480131968] livestatus: Please visit us at http://mathias-kettner.de/ [1480131968] livestatus: Hint: please try out OMD - the Open Monitoring Distribution [1480131968] livestatus: Please visit OMD at http://omdistro.org [1480131968] livestatus: Finished initialization. Further log messages go to /usr/local/nagios/var/livestatus.log [1480131968] Event broker module '/usr/lib64/check_mk/livestatus.o' initialized successfully. [1480131968] Successfully launched command file worker with pid 22213 [1480131968] TIMEPERIOD TRANSITION: 24x7;-1;1 [1480131968] TIMEPERIOD TRANSITION: 24x7_sans_holidays;-1;1 [1480131968] TIMEPERIOD TRANSITION: none;-1;0 [1480131968] TIMEPERIOD TRANSITION: us-holidays;-1;0 [1480131968] TIMEPERIOD TRANSITION: workhours;-1;0 #cat thruk.log [2016/11/26 09:16:08][xxx.xxx.xxx.xxx][ERROR][Thruk] No Backend available [2016/11/26 09:16:08][xxx.xxx.xxx.xxx][ERROR][Thruk] on page: http://xxx.xxx.xxx.xxx/thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail&_=1480131969407 [2016/11/26 09:16:08][xxx.xxx.xxx.xxx][ERROR][Thruk] prod: ERROR: failed to open socket /var/tmp/live.sock: No such file or directory.. (/var/tmp/live.sock) [root@e2e-14-53 httpd]# cat access_log 127.0.0.1 - thrukadmin [26/Nov/2016:09:16:08 +0530] "POST /thruk/cgi-bin/restricted.cgi HTTP/1.1" 200 15 "-" "thruk_auth" 117.192.245.7 - - [26/Nov/2016:09:16:08 +0530] "GET /thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail&_=1480131969407 HTTP/1.1" 500 6103 " http://xxx.xxx.xxx.xxx/thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0" 127.0.0.1 - thrukadmin [26/Nov/2016:09:17:39 +0530] "POST /thruk/cgi-bin/restricted.cgi HTTP/1.1" 200 15 "-" "thruk_auth" 117.192.245.7 - - [26/Nov/2016:09:17:39 +0530] "GET /thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail&_=1480132059956 HTTP/1.1" 500 6103 " http://xxx.xxx.xxx.xxx/thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0" 127.0.0.1 - - [26/Nov/2016:09:18:15 +0530] "POST /thruk/cgi-bin/remote.cgi?startup HTTP/1.1" 200 13 "-" "Wget/1.14 (linux-gnu)" [root@e2e-14-53 httpd]# cat error_log [Sat Nov 26 09:18:14.506139 2016] [fcgid:warn] [pid 4240] mod_fcgid: cleanup zombie process 4248 [root@e2e-14-53 httpd]# Regards, Kaushal On Sat, Nov 26, 2016 at 12:10 AM, Daniel <dferra...@gmail.com> wrote: > may be worth checking with namei command to see the permissions are > correct for the whole path not just the end socket file. > > namei -mx /var/tmp/live.sock > or > namei -mol /var/tmp/live.sock > > Also what does the httpd error log say? > > 2016-11-25 19:35 GMT+01:00 Kaushal Shriyan <kaushalshri...@gmail.com>: > >> >> >> On Fri, Nov 25, 2016 at 11:56 PM, Daniel <dferra...@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 <kaushalshri...@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 >>> >> >> > > > -- > *Daniel Ferradal* > IT Specialist > > email dferradal at gmail.com > linkedin es.linkedin.com/in/danielferradal >