Cacti 添加 Nginx 监控
source link: https://blogread.cn/it/article/1642?f=hot1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Cacti 添加 Nginx 监控
1. 在Nginx 配置文件中增加 Server Status 支持,然后重新启动Nginx
server {
listen 80;
server_name 192.168.1.24;
location ^~ /NginxStatus {
stub_status on;
allow 192.168.1.241
access_log off;
}
}
注:被监测的Nginx服务器最好设置权限访问
2. 下载 cacti 的 nginx模板
http://code.google.com/p/mysql-cacti-templates/
其实里面除了Nginx的模板以外,还包括Memcached,Redis,Mysql,Apache等模板,相对于日常工作已经足够了.
3.将下载下来的压缩文件中的ss_get_by_ssh.php拷贝到cacti的scripts目录中
4.配置cacti中的apache模板
5.参考资料
http://code.google.com/p/mysql-cacti-templates/wiki/NginxTemplates
建议继续学习:
扫一扫订阅我的微信号:IT技术博客大学习
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK