/ZBX_NGINX

Zabbix monitoring template for nginx

GNU General Public License v3.0GPL-3.0

System requirements

Nginx, with configured `http_stub_status_module`

Features

HTTP/HTTPS support
Connection Statistics:
  • Active
  • Reading
  • Waiting
  • Writing
Request Statistics:
  • Accepted
  • Handled
  • Total
Graph and screen:
  • 'Requests Statistics' graph
  • 'Connection Status' graph
  • Screen combining both graph
Macros for customization:
  • {$NGINX_HOST}
  • {$NGINX_STATS_URI}
  • {$NGINX_PORT}
  • {$NGINX_REQ_NUM}
  • {$NGINX_CON_NUM}

Installation

Nginx Configuration

 

Add the following example to your default vhost configuration file:

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

Zabbix Configuration

 

  1. Import XML template file (`zbx_template_nginx.xml`) into Zabbix via Web GUI (Configuration -> Templates -> Import).
  2. Assign the imported template to a host and enjoy!