[Xymon] Monitoring Nginx
Henrik Størner
henrik at hswn.dk
Thu Mar 31 17:24:13 CEST 2011
Den 31-03-2011 15:49, SEGLARD, Thomas skrev:
> Do some of you use Xymon to monitor Nginx ? Basically, you could use the
> stub-status module (http://wiki.nginx.org/HttpStubStatusModule) to
> enable the status handler within Nginx. The output is similar to :
>
> Active connections: 291
>
> server accepts handled requests
I assume this data can then be requested via a standard HTTP request,
i.e. it is available in a web browser ?
In that case, a simple http-test in Xymon would do it. Probably with an
added content-check, e.g.
10.0.0.1 nginx1 # \
cont=nginx;http://nginx1/nginx_status;server.accepts.*requests
This will check that the data returned contains the "server accepts
handled requests" string.
> 16630948 16630948 31070465
>
> Reading: 6 Writing: 179 Waiting: 106
Don't know if it would make sense to track any of these in Xymon, but I
see there is already a pointer in the Wiki to monitoring with rrdtool,
so adding graphs shouldn't be at all difficult.
Regards,
Henrik
More information about the Xymon
mailing list