On Fri, Nov 25, 2016 at 11:56 PM, Daniel <dferradal@xxxxxxxxx> 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 DanielI am still seeingNo Backend availableNone 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.socksrw-rw-rw- 1 nagios apache 0 Nov 25 18:12 /var/tmp/live.sock[root@e2e-14-53 ~]# id nagiosuid=1000(nagios) gid=1000(nagios) groups=1000(nagios),48(apache),1001(nagcmd) [root@e2e-14-53 ~]# id apacheuid=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 apacheapache 4240 0.0 0.0 264664 4168 ? S Nov25 0:00 /usr/sbin/httpd -DFOREGROUNDapache 4242 0.0 0.1 348296 8524 ? S Nov25 0:00 /usr/sbin/httpd -DFOREGROUNDapache 4243 0.0 0.0 347956 8000 ? S Nov25 0:00 /usr/sbin/httpd -DFOREGROUNDapache 4245 0.0 0.1 347960 8380 ? S Nov25 0:00 /usr/sbin/httpd -DFOREGROUNDapache 4246 0.0 0.0 347956 8004 ? S Nov25 0:00 /usr/sbin/httpd -DFOREGROUNDapache 4247 0.0 0.1 347936 8228 ? S Nov25 0:00 /usr/sbin/httpd -DFOREGROUNDapache 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 -DFOREGROUNDapache 10479 0.0 0.0 347956 7748 ? S 00:00 0:00 /usr/sbin/httpd -DFOREGROUNDapache 10480 0.0 0.0 347956 7748 ? S 00:00 0:00 /usr/sbin/httpd -DFOREGROUNDapache 10481 0.0 0.0 347892 7924 ? S 00:00 0:00 /usr/sbin/httpd -DFOREGROUNDapache 10482 0.0 0.0 347956 7748 ? S 00:00 0:00 /usr/sbin/httpd -DFOREGROUNDapache 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 thrukroot 4239 0.0 0.2 88080 21268 ? S Nov25 0:00 perl -x /usr/share/thruk/thruk_authapache 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 nagiosnagios 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/iPIUPlease let me know if you need any additional informationRegards,Kaushal--2016-11-25 19:19 GMT+01:00 Kaushal Shriyan <kaushalshriyan@xxxxxxxxx>: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#ls -l /var/tmp/live.socksrw-rw---- 1 nagios nagios 0 Nov 25 18:12 /var/tmp/live.sockI can share the /etc/httpd/conf.d/thruk.confAny help will be highly appreciable.Regards,Kaushal