Use Cacti to Monitor HTTP Status Codes of Request Responses?

人盡茶涼 提交于 2019-12-13 03:38:54

问题


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

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?

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


回答1:


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

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.



来源:https://stackoverflow.com/questions/795011/use-cacti-to-monitor-http-status-codes-of-request-responses

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!