如何监控多个网站的可用性
我需要确保任何数量的网站和服务都没有陷入困境。 目前,我依靠一个简单的 5 分钟 cronjob,它使用curl 和一个 url 文件来检查所有响应是否正确(200 或很少是 301)。
这一切都在基础层面上进行,我对更复杂的开源工具(统计、响应时间、漂亮的图表)感兴趣 - 你使用什么?
I need to ensure that any number of websites and services haven't bitten the dust. At the moment I rely on a simple 5 minute cronjob which uses curl and a file of urls to check that all the responses are correct (200 or rarely 301).
It all works on a basic level, I'm interested in more sophisticated open-source tools (statistics, response times, pretty graphs) - what do you use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我自己没有使用过它,但我很确定我听说过Nagios发光的术语。 值得一试?
I haven't used it myself, but I'm pretty sure I've heard Nagios spoken of in fairly glowing terms. Worth a try?
根据我的经验,nagios 工作得很好,但有时似乎很难照顾。 如果您想在 nagios 提供的基础上获得统计数据和其他所有内容,请添加 cacti。 如果您希望将所有内容都集中在一个包中,您应该查看 OpenNMS。 要充分利用所有这些功能,您还应该使用 SNMP,这样您还可以查看内存、CPU、磁盘使用的详细信息。
In my experience nagios works pretty well but seems to be hard to take care of at times. If you want to have stats and everything else on top of what nagios gives you then add cacti. If you want it all in one package you should look into OpenNMS. To get the full benefit of all of these you should be using SNMP too so you can see the details of memory, cpu, disk use as well.
从经验来看,我会加倍建议使用 Nagios。 我认为我没有找到比 Nagios 更好的开源工具来实现相同的功能。
Speaking from experience, I'd double the suggestion of using Nagios. I don't think I have found a better open source tool than Nagios that achieves the same stuff.
我推荐 AdventNet 的 ManageEngine (http://manageengine.adventnet.com/)。 最多可免费使用 5 个受监控资源 iirc。 除了免费版本之外,它相当便宜。
开箱即用 它知道如何监视 Web 服务、Web 服务器(不同类型,例如 IIS、Tomcat、Websphere(5 和 6))以及许多其他内容,例如从 MSSQL 和 DB2 本地提取性能数据。仅通过“http-are-you-there”进行监控,但您也可以根据 wsdl 规范指定要发送的实际内容,这样您就知道对方不仅会响应,而且还能够处理记录(当然。这要求您有办法在之后删除这些保持活动的数据记录,但这是一个不同的问题,
对于每个受监控的系统,您可以设置警报阈值,因此在触发警报之前它必须连续出现 5 次。 SMS 警报或自动重新启动服务
作为额外的好处,它具有我所见过的最好的 SNMP 支持
。 .html" rel="nofollow noreferrer">http://manageengine.adventnet.com/products/applications_manager/download-free.html
链接到演示:http://demo.appmanager.com/LoginPage.do
(注意:我不隶属于该公司)
I would recommend the ManageEngine from AdventNet (http://manageengine.adventnet.com/). It is free for up to 5 monitored resources iirc. Outside the free version it is rather cheap.
Out of the box It knows how to monitor webservices, webservers (of varying types, such as IIS, Tomcat, Websphere (5 and 6), and a host of other things such as natively pulling performance data from MSSQL and DB2. Webservices can be monitored just by "http-are-you-there" but you can also specify actual content to send from the wsdl specification, so you know that not only does the other side respond, but it is able to process records as well. (ofcourse this requires you to have a way of deleting these keep-alive data records afterwards but thats a different issue).
For each of the monitored systems you can setup thresholds to the alert, so it has to come 5 times in a row before triggering an SMS alert or automatically restart the service.
As an added bonus it has the best SNMP support I have seen anywhere.
Link to free download : http://manageengine.adventnet.com/products/applications_manager/download-free.html
Linkg to demo: http://demo.appmanager.com/LoginPage.do
(Note: i'm not affiliated with the company)
Zabbix 1.6 支持多种 Web 监控流程,并允许您监控除此之外的其他内容。 它是免费的并且非常灵活。
Zabbix 1.6 supports multiple flows for web monitoring, and will allow you to monitor other things besides that. It's free and very flexible.