Collectd安装客户端

Collectd前端列表https://collectd.org/wiki/index.php/List_of_front-ends
安装Collectd Graph Panel
wget https://github.com/pommi/CGP/archive/master.zip
解压/data/web/cpg

建立nginx站点

server
{
    listen 80;
    root /data/web/cpg;
    index index.html index.htm index.php;
    server_name collectd.dev;
    autoindex off;
    location / {
        try_files $uri $uri/ =404;
    }
    location ~ \.php$ {
        fastcgi_pass unix:/dev/shm/php7-fpm.sock;
        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
    location ~ /\.ht {
        deny all;
    }
}



Tagged , . Bookmark the permalink.

Comments are closed.