您使用什么工具来监控 Web 服务?
从每秒页面浏览量等基本信息到 CPU 或内存使用情况等更高级的信息。 有任何想法吗?
From basic things likes page views per second to more advanced stuff like cpu or memory usage. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我认为有人在这里之前问过同样类型的问题? 虽然我不太确定它有多大帮助。
对于CPU使用率等,我会尝试RRDTool,或者类似仙人掌。
I think someone has asked the same type of question before here? Though I'm not too sure how helpful it is.
For CPU usage, etc, I would try RRDTool, or maybe something like Cacti.
网络服务或网站? 既然您提到页面浏览量:我相信您指的是网站。
谷歌分析可能会为您提供跟踪使用统计数据所需的一切,最重要的是在大多数情况下都是免费的。
您可能还想监控网站的正常运行时间,并在网站因某种原因关闭时发送电子邮件警报。 我们过去使用过 Nagios,它运行得很好。
Web service or web site? Since you mention page views: I believe you mean web site.
Google Analytics will probably give you everything you need to track usage statistics and best of all is free under most circumstances.
You might also want to monitor site up-time and have something to send email alerts if the site is down for some reason. We've used Nagios in the past and it works just fine.
我一直在使用 monit (http://www.tildeslash.com/monit/)年。 它监视 CPU 和内存使用情况以及 apache/mysql/etc 的停机时间...您还可以将其配置为通知您中断并实时自动重新启动服务。
我还使用 munin 进行报告: http://munin.projects.linpro.no/
如果您想要有关页面浏览量等的报告,AWStats 是我用过的最好的。
I've been using monit (http://www.tildeslash.com/monit/) for years. It monitors CPU and memory usage as well as downtime for apache/mysql/etc... you can also configure it to notify you of outages and automatically restart services in real time.
I also use munin for reporting: http://munin.projects.linpro.no/
If you want reports on pageviews and whatnot, AWStats is the best I've used.
我使用 Nagios 在 Linux 上进行一般机器监控,并且我非常依赖 Google Analytics 用于网站报告 - 我知道这并不适合所有人,因为有些人对将所有网站数据提供给 Google 存在隐私问题。
两者都是免费且易于安装(Nagios 通常可以通过 apt-get 获得,而 Analytics 则可以在网站上轻松安装)。
然而,Nagios 可能很难配置。
I use Nagios for general machine monitoring on Linux and I pretty much rely on Google Analytics for website reporting - I know that's not for everyone since some folks have privacy concerns about giving all their site data to Google.
Both are free and easy to install (Nagios is generally available through apt-get and Analytics is a pretty easy install on a site).
Nagios, however, can be a bear to configure.
我也投票给 monit 。 好处是它可以理解 apache 状态信息,并且可以在 80% 的 apache 工作人员处于“忙碌”状态时通知/采取操作。
但你需要其他东西来进行硬件和一般监控,一些支持 SNMP 的东西,比如 zennos 或 zabbix
I cast my vote for monit as well. The nice thing about is that it understands apache-status info and can notify/take actions when say 80% of max num of apache workers are in "busy" state.
but you need something else for hardware and general monitoring, something SNMP-aware, like zennos or zabbix
Munin 和 Cacti 为rrdtool 提供了非常好的界面和预构建脚本。 他们还可以监控多个服务器并通过 naigos 发出警告和警报。
Munin and Cacti provide very nice interfaces and pre-built scripts for rrdtool. They can also monitor multiple servers and send out warnings and alerts through naigos.