本文介绍了使用Cacti监视请求响应的HTTP状态代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个代理脚本,通过PHP使用cURL向其他网页发出HTTP GET请求。

I have a proxy script that makes HTTP GET requests to other pages using cURL through PHP.

可以监视返回给那些cURL请求的响应代码,使用Cacti?如果不是Cacti,可以使用任何类似的监控系统?

Is it possible to monitor what response codes are returned to those cURL requests, using Cacti? If not Cacti, possible with any similar monitoring system?

例如,我想要一个报告显示每个状态类别中有多少个响应, a 404,500等。

For example, I want a report that shows how many responses came in each status category, ie, with a 200, a 404, 500, etc.

推荐答案

当然,你可以使用Cacti做这样的事情。你可以用它来绘制任何东西。

Sure, you CAN use Cacti to do such things. You can graph just about anything with it. http://docs.cacti.net/manual:087:3a_advanced_topics.1_data_input_methods#data_input_methods

这听起来像你的问题,你想要一个监视和警报解决方案,而不只是一个图形解决方案。对于监视,警报和图形(虽然图表不像rrdtool和cacti那么有吸引力)我喜欢开源Hyperic产品()。还有Nagios,BigBrother和许多其他低成本/无成本选项。

It sounds though from your question that you want a monitoring and alerting solution, not just a graphing solution. For monitoring, alerting, and graphing (though the graphs are not nearly as attractive as rrdtool and cacti) I like the opensource Hyperic product(http://www.hyperichq.com). There is also Nagios, BigBrother and a host of other low cost / no cost options.

这篇关于使用Cacti监视请求响应的HTTP状态代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-25 16:53