我正在寻找创build一个有点类似于这个graphics:
替代文字http://static.k5-storitve.net/site_media/images/plugins/51-1170621310-ra.mahune.org-nginx_request-month.png
但不是绘制请求,graphics响应,每行HTTP响应代码(200 OK,404 Not Found,500 Server Error等)。
创buildgraphics不是问题(使用RRDtool,服务器密度或类似的东西),但我怎样才能最好地从Nginx检索这些信息?
不幸的是,这个数据在NginxHttpStubStatusModule生成的页面上不可用。 如果是这样,这将是非常容易的。
你必须parsing访问日志。