Hi. 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.
The issue I have is trying to set it up with nginx, I get this error in the nginx log. ---- 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: "http://10.0.0.34/cgi-bin/smokeping.cgi" ----- nginx config is below. Is there something stupid I'm missing? user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; # server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types; # default_type text/html; default_type application/html; ## # Logging Settings ## access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; ## # Gzip Settings ## gzip on; gzip_disable "msie6"; # gzip_vary on; # gzip_proxied any; # gzip_comp_level 6; # gzip_buffers 16 8k; # gzip_http_version 1.1; # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; ## # nginx-naxsi config ## # Uncomment it if you installed nginx-naxsi ## #include /etc/nginx/naxsi_core.rules; ## # nginx-passenger config ## # Uncomment it if you installed nginx-passenger ## #passenger_root /usr; #passenger_ruby /usr/bin/ruby; ## # Virtual Host Configs ## include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; server { listen 80 default_server; location / { root /usr/share/nginx/html; index index.html index.htm; fastcgi_intercept_errors on; include fastcgi_params; # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/cgi-bin$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root/cgi-bin/smokeping.cgi$fastcgi_script_name; ###I think this is where I'm having an issue fastcgi_pass unix:/var/run/fcgiwrap.socket; } # Make site accessible from http://localhost/ #server_name localhost; } }
_______________________________________________ smokeping-users mailing list smokeping-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users