On Tue, Jun 5, 2012 at 10:26 AM, Joseph Cabezas <tdgh2323@hotmail.com> wrote:
> Does anybody have a monitoring system in place by nginx error code... 500,
> 200, 404, 444.... and did you do this with cacti or php4nagios?
>
Hi,
You can take a look at the nginx-lua module (on the logby branch) :
https://github.com/chaoslawful/lua-nginx-module/tree/logby
There is an example in the README :
https://github.com/chaoslawful/lua-nginx-module/blob/logby/README
Look for log_by_lua, and log_by_lua_file.
You can use it to aggregate values, and use another location to report
aggregated data (using content_by_lua) and feed it in your own system.
We use OpenTSDB (http://opentsdb.net/) to keep aggregating data in time series.
Hope that helps,
Matthieu.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx