<html><head><title>Re: [smokeping-users] Setting up smokeping on Ubuntu 14.04 LTS</title>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">Wild guess without much reading [not to mention comprehention. :) ]<br>
<br>
Disable SELinux/Apparmor? <br>
Anything applicable in the Apache logs?<br>
<br>
Nothing else rings a bell for me - perhaps someone else will jump in.<br>
<br>
-Greg<br>
<br>
</span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'courier new'; font-size: 9pt;">Hi.<br>
<br>
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.<br>
<br>
The issue I have is trying to set it up with nginx, I get this error in the nginx log.<br>
<br>
----<br>
<br>
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: "</span><a style=" font-family:'courier new'; font-size: 9pt;" href="http://10.0.0.34/cgi-bin/smokeping.cgi">http://10.0.0.34/cgi-bin/smokeping.cgi</a><span style=" font-family:'courier new'; font-size: 9pt;">"<br>
<br>
-----<br>
<br>
nginx config is below. Is there something stupid I'm missing?<br>
<br>
user www-data;<br>
worker_processes 4;<br>
pid /run/nginx.pid;<br>
<br>
events {<br>
worker_connections 768;<br>
# multi_accept on;<br>
}<br>
<br>
http {<br>
<br>
##<br>
# Basic Settings<br>
##<br>
<br>
sendfile on;<br>
tcp_nopush on;<br>
tcp_nodelay on;<br>
keepalive_timeout 65;<br>
types_hash_max_size 2048;<br>
# server_tokens off;<br>
<br>
# server_names_hash_bucket_size 64;<br>
# server_name_in_redirect off;<br>
<br>
include /etc/nginx/mime.types;<br>
# default_type text/html;<br>
default_type application/html;<br>
<br>
##<br>
# Logging Settings<br>
##<br>
<br>
access_log /var/log/nginx/access.log;<br>
error_log /var/log/nginx/error.log;<br>
<br>
##<br>
# Gzip Settings<br>
##<br>
<br>
gzip on;<br>
gzip_disable "msie6";<br>
<br>
# gzip_vary on;<br>
# gzip_proxied any;<br>
# gzip_comp_level 6;<br>
# gzip_buffers 16 8k;<br>
# gzip_http_version 1.1;<br>
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;<br>
<br>
##<br>
# nginx-naxsi config<br>
##<br>
# Uncomment it if you installed nginx-naxsi<br>
##<br>
<br>
#include /etc/nginx/naxsi_core.rules;<br>
<br>
##<br>
# nginx-passenger config<br>
##<br>
# Uncomment it if you installed nginx-passenger<br>
##<br>
<br>
#passenger_root /usr;<br>
#passenger_ruby /usr/bin/ruby;<br>
<br>
##<br>
# Virtual Host Configs<br>
##<br>
<br>
include /etc/nginx/conf.d/*.conf;<br>
include /etc/nginx/sites-enabled/*;<br>
<br>
<br>
server {<br>
listen 80 default_server;<br>
<br>
location / { <br>
root /usr/share/nginx/html;<br>
index index.html index.htm;<br>
fastcgi_intercept_errors on;<br>
include fastcgi_params;<br>
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>
# fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/cgi-bin$fastcgi_script_name;<br>
fastcgi_param SCRIPT_FILENAME $document_root/cgi-bin/smokeping.cgi$fastcgi_script_name;<br>
<br>
###I think this is where I'm having an issue<br>
<br>
fastcgi_pass unix:/var/run/fcgiwrap.socket;<br>
<br>
}<br>
<br>
# Make site accessible from </span><a style=" font-family:'courier new'; font-size: 9pt;" href="http://localhost/">http://localhost/</a><br>
<span style=" font-family:'courier new'; font-size: 9pt;"> #server_name localhost;<br>
}<br>
}<br>
<br>
<br>
</td>
</tr>
</table>
<br><br>
</body></html>