Hi Frank,
On Wed, 2015-09-09 at 11:35 -0400, Frank Ch. Eigler wrote:
>
> I'm really not familiar with the insides of that pmda, but there
> is not that much going on. Check it out - it's just a short perl
> script. It does a http fetch on "http://localhost/nginx_status"
> (or some other location overridden in eval'd nginx.conf). The
> resulting data is parsed with a blunt
>
> @nginx_status = ($response->decoded_content =~ m/(\d+)/gm);
>
> and then metrics are fetched from that array, indexed by
> the item number (e.g. 6).
>
> So if I had to diagnose this bad boy, I'd start with a hand-fetched
> nginx_status result file, and insert some tracing to dump
> @nginx_status after the parse process.
Thanks for these debugging tips!
As I wrote in another post, I missed the part that I should configure
nginx to export the stats. Apart from the issues with SELinux denials, I
was able to make it work.
Thanks and best regards,
Tadej
|