I would like to monitor NGinx stats through Munin but the Nginx plugins show no data. Is it possible to diagnose why only one of the munin nginx plugins seems to be working?
The server runs on CentOS 5.3
Best Answer
The nginx plugins rely on the following URL to get the status info:
http://127.0.0.1/nginx_status
Usually, nginx does not have this URL configured to show status data.
From the documentation of the plugins, I see that nginx needs to be configured to show status data in a spesific URL.
You need to enable nginx status by adding the following lines to the site's configuration:
According to nginx pitfalls, it's slightly better to omit the unnecessary capture, using $request_uri instead. In that case, append a question mark to prevent nginx from doubling any query args.
Best Answer
The nginx plugins rely on the following URL to get the status info:
Usually, nginx does not have this URL configured to show status data.
From the documentation of the plugins, I see that nginx needs to be configured to show status data in a spesific URL.
You need to enable nginx status by adding the following lines to the site's configuration:
Don't forget to restart the server after adding this configuration, and make sure the stus URL returns the status data.
For the complete documentation of each plugin, you can run:
Hope this helps.