Hi Tadej,
----- Original Message -----
> Hi!
>
> [...]
> Here are the contents from /var/lib/pcp/pmcd/nginx.log:
> Log for pmdanginx on collector started Wed Sep 9 15:07:57 2015
>
> [Wed Sep 9 15:07:59] pmdanginx(25446) Error: pmdaFetch: PMID 117.0.6
> not handled by fetch callback
>
> Any ideas what is the problem?
>
The problem is likely to be nginx not being configured to export stats,
(they're not enabled by default). There's two things to check...
Firstly, nginx must be compiled with HttpStubStatusModule module (this
is on by default in Fedora). You can check that by running following
command:
$ nginx -V 2>&1 | grep -o with-http_stub_status_module
If nothing is reported, nginx has been built without stats support, and
it will require a recompile to resolve this.
Next, the server section of your /etc/nginx/nginx.conf needs to include:
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
Restart the nginx service, and you should see metric values. There is a
small bug in the error code being returned by the PMDA (from your earlier
mail), this config stuff should be documented in pmdaginx(1), and we lack
tests for this PMDA. I'll get those fixed up for the next PCP release,
but you should be good to go with the configuration steps above.
cheers.
--
Nathan
|