<div dir="ltr">Hi.<div><br></div><div>I am having an issue getting this going on Ubuntu 14.04LTS.  I don't think the issue is with smokeping itself, as when I run it in debug mode, I get a full page of normal output and the service doesn't seem to crash.</div><div><br></div><div>The issue I have is trying to set it up with nginx, I get this error in the nginx log.</div><div><br></div><div>----</div><div><br></div><div><div>2015/10/12 17:06:51 [error] 4222#0: *35 FastCGI sent in stderr: "Cannot get script name, are DOCUMENT_ROOT and SCRIPT_NAME (or SCRIPT_FILENAME) set and is the script executable?" while reading response header from upstream, client: 10.0.1.192, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "10.0.0.34", referrer: "<a href="http://10.0.0.34/cgi-bin/smokeping.cgi">http://10.0.0.34/cgi-bin/smokeping.cgi</a>"</div></div><div><br></div><div>-----</div><div><br></div><div>nginx config is below.  Is there something stupid I'm missing?</div><div><br></div><div><div>user www-data;</div><div>worker_processes 4;</div><div>pid /run/nginx.pid;</div><div><br></div><div>events {</div><div><span class="" style="white-space:pre">       </span>worker_connections 768;</div><div><span class="" style="white-space:pre">    </span># multi_accept on;</div><div>}</div><div><br></div><div>http {</div><div><br></div><div><span class="" style="white-space:pre">  </span>##</div><div><span class="" style="white-space:pre"> </span># Basic Settings</div><div><span class="" style="white-space:pre">   </span>##</div><div><br></div><div><span class="" style="white-space:pre">        </span>sendfile on;</div><div><span class="" style="white-space:pre">       </span>tcp_nopush on;</div><div><span class="" style="white-space:pre">     </span>tcp_nodelay on;</div><div><span class="" style="white-space:pre">    </span>keepalive_timeout 65;</div><div><span class="" style="white-space:pre">      </span>types_hash_max_size 2048;</div><div><span class="" style="white-space:pre">  </span># server_tokens off;</div><div><br></div><div><span class="" style="white-space:pre">      </span># server_names_hash_bucket_size 64;</div><div><span class="" style="white-space:pre">        </span># server_name_in_redirect off;</div><div><br></div><div><span class="" style="white-space:pre">    </span>include /etc/nginx/mime.types;</div><div>#<span class="" style="white-space:pre">    </span>default_type text/html;</div><div><span class="" style="white-space:pre">    </span>default_type application/html;</div><div><br></div><div><span class="" style="white-space:pre">    </span>##</div><div><span class="" style="white-space:pre"> </span># Logging Settings</div><div><span class="" style="white-space:pre"> </span>##</div><div><br></div><div><span class="" style="white-space:pre">        </span>access_log /var/log/nginx/access.log;</div><div><span class="" style="white-space:pre">      </span>error_log /var/log/nginx/error.log;</div><div><br></div><div><span class="" style="white-space:pre">       </span>##</div><div><span class="" style="white-space:pre"> </span># Gzip Settings</div><div><span class="" style="white-space:pre">    </span>##</div><div><br></div><div><span class="" style="white-space:pre">        </span>gzip on;</div><div><span class="" style="white-space:pre">   </span>gzip_disable "msie6";</div><div><br></div><div><span class="" style="white-space:pre">   </span># gzip_vary on;</div><div><span class="" style="white-space:pre">    </span># gzip_proxied any;</div><div><span class="" style="white-space:pre">        </span># gzip_comp_level 6;</div><div><span class="" style="white-space:pre">       </span># gzip_buffers 16 8k;</div><div><span class="" style="white-space:pre">      </span># gzip_http_version 1.1;</div><div><span class="" style="white-space:pre">   </span># gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;</div><div><br></div><div><span class="" style="white-space:pre">  </span>##</div><div><span class="" style="white-space:pre"> </span># nginx-naxsi config</div><div><span class="" style="white-space:pre">       </span>##</div><div><span class="" style="white-space:pre"> </span># Uncomment it if you installed nginx-naxsi</div><div><span class="" style="white-space:pre">        </span>##</div><div><br></div><div><span class="" style="white-space:pre">        </span>#include /etc/nginx/naxsi_core.rules;</div><div><br></div><div><span class="" style="white-space:pre">     </span>##</div><div><span class="" style="white-space:pre"> </span># nginx-passenger config</div><div><span class="" style="white-space:pre">   </span>##</div><div><span class="" style="white-space:pre"> </span># Uncomment it if you installed nginx-passenger</div><div><span class="" style="white-space:pre">    </span>##</div><div><span class="" style="white-space:pre"> </span></div><div><span class="" style="white-space:pre">   </span>#passenger_root /usr;</div><div><span class="" style="white-space:pre">      </span>#passenger_ruby /usr/bin/ruby;</div><div><br></div><div><span class="" style="white-space:pre">    </span>##</div><div><span class="" style="white-space:pre"> </span># Virtual Host Configs</div><div><span class="" style="white-space:pre">     </span>##</div><div><br></div><div><span class="" style="white-space:pre">        </span>include /etc/nginx/conf.d/*.conf;</div><div><span class="" style="white-space:pre">  </span>include /etc/nginx/sites-enabled/*;</div><div><br></div><div><br></div><div>server {</div><div>        listen 80 default_server;</div><div><br></div><div><span class="" style="white-space:pre">  </span>location /<span class="" style="white-space:pre">        </span>{ </div><div>        root /usr/share/nginx/html;</div><div>        index index.html index.htm;</div><div><span class="" style="white-space:pre">    </span>fastcgi_intercept_errors on;</div><div><span class="" style="white-space:pre">       </span>include fastcgi_params;</div><div>#<span class="" style="white-space:pre">   </span>fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</div><div>#<span class="" style="white-space:pre"> </span>fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/cgi-bin$fastcgi_script_name;</div><div><span class="" style="white-space:pre">   </span>fastcgi_param SCRIPT_FILENAME $document_root/cgi-bin/smokeping.cgi$fastcgi_script_name;</div><div><span class="" style="white-space:pre">    </span></div><div><span class="" style="white-space:pre">   </span>###I think this is where I'm having an issue</div><div><span class="" style="white-space:pre">   </span></div><div><span class="" style="white-space:pre">   </span>fastcgi_pass unix:/var/run/fcgiwrap.socket;</div><div><br></div><div><span class="" style="white-space:pre">                       </span>}</div><div><br></div><div>        # Make site accessible from <a href="http://localhost/">http://localhost/</a></div><div>        #server_name localhost;</div><div><span class="" style="white-space:pre"> </span>}</div><div>}</div><div><br></div><div><br></div><div><br></div></div></div>