Pages : 1
#1 Le 29/12/2015, à 14:11
- vpackets
Ubuntu server 14.04 LTS + NGINX + Smokeping
Hello tout le monde.
Je me permet de vous exposer mon probleme concernant smokeping avec la ubuntu 14.04 et le service web NGINX.Je suis ingenieur reseau mais mes connaissances en Linux sont un peu limites et je suis en train de remedier a cela
J'ai suivi ce tuto http://linoxide.com/monitoring-2/setup- … ntu-15-04/ et cela ne fonctionne pas tres tres bien
Voici mon NGINX.CONF
nic@srvubuntu01:~$ cat /etc/nginx/nginx.conf
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 application/octet-stream;
##
# 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 {
#fast cgi support
include /etc/nginx/fcgiwrap.conf;
location ~ \.cgi$
{
fastcgi_intercept_errors on;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
}
#mail {
# # See sample authentication script at:
# # [url]http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript[/url]
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}
nic@srvubuntu01:~$
Voici mon fcgiwrap.conf P
nic@srvubuntu01:~$ cat /etc/nginx/fcgiwrap.conf
# Include this file on your nginx.conf to support debian cgi-bin scripts using
# fcgiwrap
location /cgi-bin/ {
# Disable gzip (it makes scripts feel slower since they have to complete
# before getting gzipped)
gzip off;
# Set the root to /usr/lib (inside this location this means that we are
# giving access to the files under /usr/lib/cgi-bin)
root /usr/lib;
# Fastcgi socket
fastcgi_pass unix:/var/run/fcgiwrap.socket;
# Fastcgi parameters, include the standard ones
include /etc/nginx/fastcgi_params;
# Adjust non standard parameters (SCRIPT_FILENAME)
fastcgi_param SCRIPT_FILENAME /usr/lib$fastcgi_script_name;
location /smokeping/ {
index smokeping.cgi;
gzip off;
}
}
J'arrive bien a afficher la page web "basique" m'indiquant que NGINX fonctionne mais impossible d'avoir les RDD de smokeping.
Je suis sur que Smokeping fonctionne mais je n'arrive pas a faire fonctionner CGI avec NGINX
Si un linuxien pure souche pouvait m'eclairer
Merci
Modération : merci à l'avenir d'utiliser les balises code (explications ici).
Dernière modification par cqfd93 (Le 29/12/2015, à 17:42)
Hors ligne
Pages : 1