Learn how to send NGiNX data collected by collectd to Wavefront.

NGiNX is a popular web and proxy server. To collect NGiNX data with collectd, use the collectd NGiNX plugin documentation found at Plugin:NGiNX - collectd Wiki.

NGiNX Setup

Enable the stub_status module in your NGiNX configuration, for example:

location /nginx_status {  
 stub_status on;  
 access_log off;  
 allow 127.0.0.1;  
 deny all;  
}  

Installation

  1. On your collectd host, copy the config below into /etc/collectd/managed_config/.
  2. Edit the settings in the file for your NGiNX server.
  3. Restart collectd.

Example collectd Configuration

LoadPlugin nginx"  
<Plugin "nginx">  
  URL "http://localhost:80/nginx_status"  
</Plugin>