<div dir="ltr">Hello,<div><br></div><div>I am using Nginx to configure nagios setup.</div><div><br></div><div>Nginx configured correctly and I am able to serve pages. But I get error from error_log as follows:</div><div><br></div><div>







<p class=""><span class="">2015/10/11 00:34:49 [crit] 18092#0: *9 connect() to unix:/var/run/fcgiwrap.socket failed (13: Permission denied) while connecting to upstream, client: 192.168.0.1, server: <a href="http://nagios.example.com">nagios.example.com</a>, request: "GET /nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "<a href="http://nagios.example.com">nagios.example.com</a>", referrer: "<a href="http://nagios.example.com/side.php">http://nagios.example.com/side.php</a>"</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">sudo service fcgiwrap status</span></p><p class=""><span class="">








</span></p><p class=""><span class=""> * Checking status of FastCGI wrapper fcgiwrap                                                                                              [ OK ] </span></p><p class=""><span class="">sudo netstat -anp | grep cgi</span></p><p class=""><span class="">








</span></p><p class=""><span class="">unix  2      [ ACC ]     STREAM     LISTENING     2188667357 16645/f</span><span class=""><b>cgi</b></span><span class="">wrap      /var/run/f</span><span class=""><b>cgi</b></span><span class="">wrap.socket</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">ls -ltr /var/run/fcgiwrap.socket</span></p><p class=""><span class="">








</span></p><p class=""><span class="">srwxr-xr-x 1 www-data www-data 0 Oct 11 00:19 </span><span class=""><b>/var/run/fcgiwrap.socket</b></span></p><p class=""><span class=""><b><br></b></span></p><p class=""><span class=""><b>Please suggest and fix this error ?</b></span></p><p class=""><span class=""><b><br></b></span></p><p class=""><span class=""><b>Best regards, Kasino.</b></span></p></div></div>