cacti监控nginx
制作:高进波
时间:20009-3-18
1.启用 nginx http_stub_status_module 模块
vi nginx.conf
location /nginx_status {
stub_status on;
# disable access_log if requared
access_log off;
#allow XX.YY.AA.ZZ;
#allow YY.ZZ.JJ.CC;
#deny all;
}
2.插件下载 http://forums.cacti.net/about26458.html&highlight=nginx
http://forums.cacti.net/download.php?id=12676
tar xvfz cacti-nginx.tar.gz
cd cacti-nginx
cp get_nginx_clients_status.pl <path_cacti>/scripts/
cp get_nginx_socket_status.pl <path_cacti>/scripts/
chmod 0755 <path_cacti>/scripts/get_nginx_socket_status.pl
chmod 0755 <path_cacti>/scripts/get_nginx_clients_status.pl
3.安装perl模块
yum install perl-libwww-perl
4.Check that it’s work
<path_cacti>/scripts/get_nginx_clients_status.pl http://192.168.1.237/nginx_status
5.WEB管理cacti导入模板
cacti_graph_template_nginx_clients_stat.xml
cacti_graph_template_nginx_sockets_stat.xml
6. Add nginx graphs to your hosts.
完成
五月 9th, 2011 at 21:16
Recommended Sites…
[...]below you’ll see my links page http://www.yeastinfectiontreatmentcure.net/links/ with some very good websites that I think you should visit[...]…
六月 17th, 2011 at 05:26
Interesting Posts…
[...]some other related resources on the web that are worth viewing on this subject include[...]…