Total Pageviews

Monday 29 October 2012

给cacti添加对nginx的统计

官方论坛上有详细说明
http://forums.cacti.net/about26458.html
需要说明的是,本地系统可能没有安装perl的LWP模块,对于CentOS系统来说:
yum -y install perl-libwww-perl
即可。
另一个,便是编译nginx时增加 –with-http_stub_status_module 选项
然后,在Server容器里增加如下配置:
location /status {
stub_status             on;
access_log              off;
allow   192.168.0.0/16;
deny    all;
}