IT技术博客大学习 共学习 共进步
全部 移动开发 后端 数据库 AI 算法 安全 DevOps 前端 设计 开发者

Cacti 添加 Nginx 监控

SpawN 2010-05-26 13:22:17 累计浏览 10,522 次
本机暂存

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

同分类推荐文章

  1. How to Set Up Homebrew Tap for Private CLI Tools: A Complete Guide (2026-05-27 02:13:03)
  2. WARNING: detected duplicate paths to the same disk导致crs无法正常启动故障解决 (2026-05-24 22:24:49)
  3. Terraform 极简入门:从 AWS-CLI 到基础设施即代码(IaC) (2026-05-20 08:00:00)

查看更多 DevOps 文章 →

建议继续学习

  1. 配置Nginx+uwsgi更方便地部署python应用 (累计阅读 106,964)
  2. 搜狐闪电邮箱的 Nginx/Postfix 使用模式 (累计阅读 33,822)
  3. 记录一个软中断问题 (累计阅读 16,885)
  4. 解析nginx负载均衡 (累计阅读 16,503)
  5. 批量添加主机到cacti+nagios的监控报警系统中 (累计阅读 14,764)
  6. 我常用的主机监控shell脚本 (累计阅读 13,261)
  7. server日志的路径分析 (累计阅读 11,181)
  8. Nginx模块开发入门 (累计阅读 11,102)
  9. 检查nginx配置,重载配置以及重启的方法 (累计阅读 10,782)
  10. 使用Squid缓存视频 (累计阅读 10,280)