[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] Thruk reports /var/tmp/live.sock: No such file or directory inspite of the file be
From:       Kaushal Shriyan <kaushalshriyan () gmail ! com>
Date:       2016-11-26 3:54:00
Message-ID: CAD7Ssm85uj-_1013XORyEHmYxnr3AR+NzueXLLgi4DVvbS9-ZA () mail ! gmail ! com
[Download RAW message or body]

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 <dferradal@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 <kaushalshriyan@gmail.com>:
>
>>
>>
>> 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
>>>
>>
>>
>
>
> --
> *Daniel Ferradal*
> IT Specialist
>
> email         dferradal at gmail.com
> linkedin     es.linkedin.com/in/danielferradal
>

[Attachment #3 (text/html)]

<div dir="ltr">Hi Daniel,<div><br></div><div>Please find the details which are as \
below :-<br><div><br></div><div><div>[root@e2e-14-53 ~]# namei -mx \
/var/tmp/live.sock</div><div>f: /var/tmp/live.sock</div><div>  Dr-xr-xr-x \
/</div><div>  drwxr-xr-x var</div><div>  drwxrwxrwt tmp</div><div>  srw-rw-rw- \
live.sock</div><div>[root@e2e-14-53 ~]# namei -mol /var/tmp/live.sock</div><div>f: \
/var/tmp/live.sock</div><div>dr-xr-xr-x root    root    /</div><div>drwxr-xr-x root   \
root    var</div><div>drwxrwxrwt root    root    tmp</div><div>srw-rw-rw- nagios \
apache live.sock</div><div>[root@e2e-14-53 \
~]#</div></div><div><br></div><div><div>#cat nagios.log</div><div>[1480131966] Caught \
SIGTERM, shutting down...</div><div>[1480131966] Successfully shutdown... \
(PID=3092)</div><div>[1480131966] Event broker module &#39;NERD&#39; deinitialized \
successfully.</div><div>[1480131968] livestatus: Socket thread has \
terminated</div><div>[1480131968] Event broker module \
&#39;/usr/lib64/check_mk/livestatus.o&#39; deinitialized \
successfully.</div><div>[1480131968] Nagios 4.2.3 starting... \
(PID=22207)</div><div>[1480131968] Local time is Sat Nov 26 09:16:08 IST \
2016</div><div>[1480131968] LOG VERSION: 2.0</div><div>[1480131968] qh: Socket \
&#39;/usr/local/nagios/var/rw/nagios.qh&#39; successfully \
initialized</div><div>[1480131968] qh: core query handler \
registered</div><div>[1480131968] nerd: Channel hostchecks registered \
successfully</div><div>[1480131968] nerd: Channel servicechecks registered \
successfully</div><div>[1480131968] nerd: Channel opathchecks registered \
successfully</div><div>[1480131968] nerd: Fully initialized and ready to \
rock!</div><div>[1480131968] wproc: Successfully registered manager as @wproc with \
query handler</div><div>[1480131968] wproc: Registry request: name=Core Worker \
22212;pid=22212</div><div>[1480131968] wproc: Registry request: name=Core Worker \
22211;pid=22211</div><div>[1480131968] wproc: Registry request: name=Core Worker \
22209;pid=22209</div><div>[1480131968] wproc: Registry request: name=Core Worker \
22210;pid=22210</div><div>[1480131968] livestatus: Livestatus 1.2.8p11 by Mathias \
Kettner. Socket: &#39;/var/tmp/live.sock&#39;</div><div>[1480131968] livestatus: \
Please visit us at <a \
href="http://mathias-kettner.de/">http://mathias-kettner.de/</a></div><div>[1480131968] \
livestatus: Hint: please try out OMD - the Open Monitoring \
Distribution</div><div>[1480131968] livestatus: Please visit OMD at <a \
href="http://omdistro.org">http://omdistro.org</a></div><div>[1480131968] livestatus: \
Finished initialization. Further log messages go to \
/usr/local/nagios/var/livestatus.log</div><div>[1480131968] Event broker module \
&#39;/usr/lib64/check_mk/livestatus.o&#39; initialized \
successfully.</div><div>[1480131968] Successfully launched command file worker with \
pid 22213</div><div>[1480131968] TIMEPERIOD TRANSITION: \
24x7;-1;1</div><div>[1480131968] TIMEPERIOD TRANSITION: \
24x7_sans_holidays;-1;1</div><div>[1480131968] TIMEPERIOD TRANSITION: \
none;-1;0</div><div>[1480131968] TIMEPERIOD TRANSITION: \
us-holidays;-1;0</div><div>[1480131968] TIMEPERIOD TRANSITION: \
workhours;-1;0</div></div><div><br></div><div><br></div><div><div>#cat \
thruk.log</div><div>[2016/11/26 09:16:08][xxx.xxx.xxx.xxx][ERROR][Thruk] No Backend \
available</div><div>[2016/11/26 09:16:08][xxx.xxx.xxx.xxx][ERROR][Thruk] on page: <a \
href="http://xxx.xxx.xxx.xxx/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdeta \
il&amp;_=1480131969407">http://xxx.xxx.xxx.xxx/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdetail&amp;_=1480131969407</a></div><div>[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)</div></div><div><br></div><div><div>[root@e2e-14-53 httpd]# cat \
access_log</div><div>127.0.0.1 - thrukadmin [26/Nov/2016:09:16:08 +0530] &quot;POST \
/thruk/cgi-bin/restricted.cgi HTTP/1.1&quot; 200 15 &quot;-&quot; \
&quot;thruk_auth&quot;</div><div>117.192.245.7 - - [26/Nov/2016:09:16:08 +0530] \
&quot;GET /thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdetail&amp;_=1480131969407 \
HTTP/1.1&quot; 500 6103 &quot;<a \
href="http://xxx.xxx.xxx.xxx/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdeta \
il">http://xxx.xxx.xxx.xxx/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdetail</a>&quot; \
&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 \
Firefox/50.0&quot;</div><div>127.0.0.1 - thrukadmin [26/Nov/2016:09:17:39 +0530] \
&quot;POST /thruk/cgi-bin/restricted.cgi HTTP/1.1&quot; 200 15 &quot;-&quot; \
&quot;thruk_auth&quot;</div><div>117.192.245.7 - - [26/Nov/2016:09:17:39 +0530] \
&quot;GET /thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdetail&amp;_=1480132059956 \
HTTP/1.1&quot; 500 6103 &quot;<a \
href="http://xxx.xxx.xxx.xxx/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdeta \
il">http://xxx.xxx.xxx.xxx/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdetail</a>&quot; \
&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 \
Firefox/50.0&quot;</div><div>127.0.0.1 - - [26/Nov/2016:09:18:15 +0530] &quot;POST \
/thruk/cgi-bin/remote.cgi?startup HTTP/1.1&quot; 200 13 &quot;-&quot; &quot;Wget/1.14 \
(linux-gnu)&quot;</div><div>[root@e2e-14-53 httpd]# cat error_log</div><div>[Sat Nov \
26 09:18:14.506139 2016] [fcgid:warn] [pid 4240] mod_fcgid: cleanup zombie process \
4248</div><div>[root@e2e-14-53 \
httpd]#</div></div><div><br></div><div>Regards,</div><div><br></div><div>Kaushal</div><div><br></div></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 26, 2016 at 12:10 AM, \
Daniel <span dir="ltr">&lt;<a href="mailto:dferradal@gmail.com" \
target="_blank">dferradal@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">may be worth checking with namei command to \
see the permissions are correct for the whole path not just the end socket \
file.<div><br></div><div>namei -mx  <span \
style="font-size:12.8px">/var/tmp/live.sock</span></div><div><span \
style="font-size:12.8px">or</span></div><div><span style="font-size:12.8px">namei \
-mol  </span>  <span \
style="font-size:12.8px">/var/tmp/live.sock</span></div><div><span \
style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Also \
what does the httpd error log say?</span></div></div><div class="HOEnZb"><div \
class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-11-25 19:35 \
GMT+01:00 Kaushal Shriyan <span dir="ltr">&lt;<a \
href="mailto:kaushalshriyan@gmail.com" \
target="_blank">kaushalshriyan@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div \
class="gmail_quote"><span>On Fri, Nov 25, 2016 at 11:56 PM, Daniel <span \
dir="ltr">&lt;<a href="mailto:dferradal@gmail.com" \
target="_blank">dferradal@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr">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)</div><div \
class="gmail_extra"><div><div \
class="m_1258575840282007603m_-1508760597538800991gmail-h5"><br></div></div></div></blockquote><div><br></div></span><div>Hi \
Daniel</div><div><br></div><div>I am still seeing  </div><div><br></div><div><div \
class="m_1258575840282007603m_-1508760597538800991errorMessage">No Backend \
available</div> <div \
class="m_1258575840282007603m_-1508760597538800991errorDescription">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.</div>
<br>
<div class="m_1258575840282007603m_-1508760597538800991errorDescription">
Details:<br>
prod: ERROR: failed to open socket /var/tmp/live.sock: No such file or directory.. \
(/var/tmp/live.sock)</div></div><div><br></div><div>ls -l \
/var/tmp/live.sock<br></div><div>srw-rw-rw- 1 nagios apache 0 Nov 25 18:12 \
/var/tmp/live.sock  </div><div><br></div><div><br></div><div><div>[root@e2e-14-53 ~]# \
id nagios</div><div>uid=1000(nagios) gid=1000(nagios) \
groups=1000(nagios),48(apache)<wbr>,1001(nagcmd)</div><div>[root@e2e-14-53 ~]# id \
apache</div><div>uid=48(apache) gid=48(apache) \
groups=48(apache),1000(nagios)<wbr>,1001(nagcmd),1003(prod)</div><div>[root@e2e-14-53 \
~]#</div></div><div><br></div><div><br></div><div><div>[root@e2e-14-53 ~]# ps aux | \
grep apache</div><div>apache      4240   0.0   0.0 264664   4168 ?            S      \
Nov25    0:00 /usr/sbin/httpd -DFOREGROUND</div><div>apache      4242   0.0   0.1 \
348296   8524 ?            S      Nov25    0:00 /usr/sbin/httpd \
-DFOREGROUND</div><div>apache      4243   0.0   0.0 347956   8000 ?            S      \
Nov25    0:00 /usr/sbin/httpd -DFOREGROUND</div><div>apache      4245   0.0   0.1 \
347960   8380 ?            S      Nov25    0:00 /usr/sbin/httpd \
-DFOREGROUND</div><div>apache      4246   0.0   0.0 347956   8004 ?            S      \
Nov25    0:00 /usr/sbin/httpd -DFOREGROUND</div><div>apache      4247   0.0   0.1 \
347936   8228 ?            S      Nov25    0:00 /usr/sbin/httpd \
-DFOREGROUND</div><div>apache      4248   0.0   0.4 117508 36368 ?            S      \
Nov25    0:00 /usr/bin/perl /usr/share/thruk/script/<a href="http://thruk_fastcgi.pl" \
target="_blank">thruk_<wbr>fastcgi.pl</a></div><div>prod         4355   0.0   0.0 \
106668   7724 ?            Ss    Nov25    0:00 /usr/sbin/httpd -f \
/omd/sites/prod/etc/apache/apa<wbr>che.conf</div><div>prod         4360   0.0   0.0 \
106596   4328 ?            S      Nov25    0:00 /usr/sbin/httpd -f \
/omd/sites/prod/etc/apache/apa<wbr>che.conf</div><div>prod         4362   0.0   0.0 \
106668   5216 ?            S      Nov25    0:00 /usr/sbin/httpd -f \
/omd/sites/prod/etc/apache/apa<wbr>che.conf</div><div>prod         4363   0.0   0.0 \
106668   5216 ?            S      Nov25    0:00 /usr/sbin/httpd -f \
/omd/sites/prod/etc/apache/apa<wbr>che.conf</div><div>prod         4365   0.0   0.1 \
156684 13156 ?            S      Nov25    0:00 /usr/sbin/httpd -f \
/omd/sites/prod/etc/apache/apa<wbr>che.conf</div><div>prod         4366   0.0   0.0 \
106668   4712 ?            S      Nov25    0:00 /usr/sbin/httpd -f \
/omd/sites/prod/etc/apache/apa<wbr>che.conf</div><div>prod         4367   0.0   0.0 \
106668   4712 ?            S      Nov25    0:00 /usr/sbin/httpd -f \
/omd/sites/prod/etc/apache/apa<wbr>che.conf</div><div>apache      4373   0.0   0.0 \
347848   7524 ?            S      Nov25    0:00 /usr/sbin/httpd \
-DFOREGROUND</div><div>apache    10479   0.0   0.0 347956   7748 ?            S      \
00:00    0:00 /usr/sbin/httpd -DFOREGROUND</div><div>apache    10480   0.0   0.0 \
347956   7748 ?            S      00:00    0:00 /usr/sbin/httpd \
-DFOREGROUND</div><div>apache    10481   0.0   0.0 347892   7924 ?            S      \
00:00    0:00 /usr/sbin/httpd -DFOREGROUND</div><div>apache    10482   0.0   0.0 \
347956   7748 ?            S      00:00    0:00 /usr/sbin/httpd \
-DFOREGROUND</div><div>apache    10483   0.3   0.3 106296 31264 ?            S      \
00:00    0:00 /usr/bin/perl /usr/share/thruk/script/<a href="http://thruk_fastcgi.pl" \
target="_blank">thruk_<wbr>fastcgi.pl</a></div><div>root       10546   0.0   0.0 \
112624    928 pts/0      R+    00:02    0:00 grep --color=auto \
apache</div><div>[root@e2e-14-53 ~]# ps aux | grep thruk</div><div>root         4239  \
0.0   0.2   88080 21268 ?            S      Nov25    0:00 perl -x \
/usr/share/thruk/thruk_auth</div><div>apache      4248   0.0   0.4 117508 36368 ?     \
S      Nov25    0:00 /usr/bin/perl /usr/share/thruk/script/<a \
href="http://thruk_fastcgi.pl" \
target="_blank">thruk_<wbr>fastcgi.pl</a></div><div>apache    10483   0.3   0.3 \
106296 31264 ?            S      00:00    0:00 /usr/bin/perl \
/usr/share/thruk/script/<a href="http://thruk_fastcgi.pl" \
target="_blank">thruk_<wbr>fastcgi.pl</a></div><div>root       10551   0.0   0.0 \
112624    932 pts/0      S+    00:02    0:00 grep --color=auto \
thruk</div><div>[root@e2e-14-53 ~]# ps aux | grep nagios</div><div>nagios      3092   \
0.0   0.0 689244   3008 ?            Ssl   Nov25    0:03 /usr/local/nagios/bin/nagios \
-d /usr/local/nagios/etc/nagios.c<wbr>fg</div><div>nagios      3094   0.0   0.0   \
10780   1016 ?            S      Nov25    0:00 /usr/local/nagios/bin/nagios --worker \
/usr/local/nagios/var/rw/nagio<wbr>s.qh</div><div>nagios      3095   0.0   0.0   \
10780   1012 ?            S      Nov25    0:00 /usr/local/nagios/bin/nagios --worker \
/usr/local/nagios/var/rw/nagio<wbr>s.qh</div><div>nagios      3096   0.0   0.0   \
10780   1012 ?            S      Nov25    0:00 /usr/local/nagios/bin/nagios --worker \
/usr/local/nagios/var/rw/nagio<wbr>s.qh</div><div>nagios      3097   0.0   0.0   \
10780   1012 ?            S      Nov25    0:00 /usr/local/nagios/bin/nagios --worker \
/usr/local/nagios/var/rw/nagio<wbr>s.qh</div><div>nagios      3098   0.0   0.0   \
24556   1304 ?            S      Nov25    0:01 /usr/local/nagios/bin/nagios -d \
/usr/local/nagios/etc/nagios.c<wbr>fg</div><div>prod         4289   0.0   0.0 156076  \
832 ?            S      Nov25    0:01 /omd/sites/prod/bin/npcd -d -f \
/omd/sites/prod/etc/pnp4nagios<wbr>/npcd.cfg</div><div>prod         4316   0.0   0.0 \
1041064 2832 ?            Ssl   Nov25    0:09 /omd/sites/prod/bin/nagios -ud \
/omd/sites/prod/tmp/nagios/nag<wbr>ios.cfg</div><div>root       10553   0.0   0.0 \
112624    932 pts/0      R+    00:02    0:00 grep --color=auto \
nagios</div><div>[root@e2e-14-53 ~]#</div></div><div><br></div><div>#strace -p <a \
href="http://pidofthruk_fastcgi.pl" target="_blank">pidofthruk_fastcgi.pl</a> perl \
process output   -&gt; <a href="http://sprunge.us/iPIU" \
target="_blank">http://sprunge.us/iPIU</a>  </div><div><br></div><div>Please let me \
know if you need any additional \
information</div><div><br></div><div>Regards,</div><div><br></div><div>Kaushal</div><span><div><br></div><div><br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div><div \
class="m_1258575840282007603m_-1508760597538800991gmail-h5"><div \
class="gmail_quote">2016-11-25 19:19 GMT+01:00 Kaushal Shriyan <span dir="ltr">&lt;<a \
href="mailto:kaushalshriyan@gmail.com" \
target="_blank">kaushalshriyan@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>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.x8<wbr>6_64 on CentOS Linux release \
7.2.1511 (Core)</div><div><br></div><div>While accessing thruk web interface  <a \
href="http://thruk.mydomain.com/thruk/cgi-bin/status.cgi?host=all&amp;_=1480078344275" \
target="_blank">http://thruk.mydomai<wbr>n.com/thruk/cgi-bin/status.cgi<wbr>?host=all&amp;_=1480078344275</a><br></div><div><br></div><div>I \
am seeing this issue in <font color="#ff0000"><b>thruk.log prod: ERROR: failed to \
open socket /var/tmp/live.sock: No such file or \
directory</b></font></div><div><br></div><div>#ls -l /var/tmp/live.sock  \
</div><div>srw-rw---- 1 nagios nagios 0 Nov 25 18:12 \
/var/tmp/live.sock</div><div><br></div><div>I can share the \
/etc/httpd/conf.d/thruk.conf<br></div><div><br></div><div>Any help will be highly \
appreciable.</div><div><br></div><div>Regards,</div><div><br></div><div>Kaushal</div></div>
 </blockquote></div><br><br clear="all"><div><br></div></div></div><span \
class="m_1258575840282007603m_-1508760597538800991gmail-HOEnZb"><font \
color="#888888">-- <br><div \
class="m_1258575840282007603m_-1508760597538800991gmail-m_-3303508795794128897gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b>Daniel \
Ferradal</b><div>IT Specialist</div><div><font \
color="#000000"><br></font></div></div></div></div></div><div><div \
dir="ltr"><div><div dir="ltr"><div><font color="#000000">email            \
</font><font color="#6fa8dc"> dferradal  at <a href="http://gmail.com" \
target="_blank">gmail.com</a></font></div></div></div></div></div><div><div \
dir="ltr"><div dir="ltr"><div>linkedin       <a \
href="http://es.linkedin.com/in/danielferradal" target="_blank"><font \
color="#6fa8dc"><span \
style="margin:0px;padding:0px;border:0px;font-size:13px;font-family:helvetica,freesans,&quot;liberation \
sans&quot;,helmet,arial,sans-serif;vertical-align:baseline;font-stretch:inherit;line-height:17px">es.linkedin.com/in/</span><span \
style="margin:0px;padding:0px;border:0px;font-size:13px;font-family:helvetica,freesans,&quot;liberation \
sans&quot;,helmet,arial,sans-serif;vertical-align:baseline;font-stretch:inherit;line-h \
eight:17px">danielferra<wbr>dal</span></font></a></div></div></div></div></div></div></div></div>
 </font></span></div>
</blockquote></span></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="m_1258575840282007603gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b>Daniel \
Ferradal</b><div>IT Specialist</div><div><font \
color="#000000"><br></font></div></div></div></div></div><div><div \
dir="ltr"><div><div dir="ltr"><div><font color="#000000">email            \
</font><font color="#6fa8dc"> dferradal  at <a href="http://gmail.com" \
target="_blank">gmail.com</a></font></div></div></div></div></div><div><div \
dir="ltr"><div dir="ltr"><div>linkedin       <a \
href="http://es.linkedin.com/in/danielferradal" target="_blank"><font \
color="#6fa8dc"><span \
style="margin:0px;padding:0px;border:0px;font-size:13px;font-family:Helvetica,FreeSans,&#39;Liberation \
Sans&#39;,Helmet,Arial,sans-serif;vertical-align:baseline;font-stretch:inherit;line-height:17px">es.linkedin.com/in/</span><span \
style="margin:0px;padding:0px;border:0px;font-size:13px;font-family:Helvetica,FreeSans,&#39;Liberation \
Sans&#39;,Helmet,Arial,sans-serif;vertical-align:baseline;font-stretch:inherit;line-he \
ight:17px">danielferra<wbr>dal</span></font></a></div></div></div></div></div></div></div></div>
 </div>
</div></div></blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic