Nginx for Zabbix 3.2/3.4 (HTTP/HTTPS) Popular
Available on Github: https://github.com/sfuerte/zbx-nginx
Zabbix Template for Nginx statistics. The script is written in Python.
System requirements
- Python, http://www.python.org/downloads
- Nginx, http://nginx.org/, with configured `http_stub_status_module`
Features
- HTTP/HTTPS support
- Connection Statistics:
- Active
- Reading
- Waiting
- Writing
- Request Statistics:
- Accepted
- Handled
- Total
- 'Requests Statistics' graph
- 'Connection Status' graph
- Screen combining both graphs
- Version information
- `{$NGINX_HOST}` and `{$NGINX_PORT}` macros for customization
Installation
Nginx Configuration
Add the following to your default vhost configuration file:
location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; }
Zabbix Configuration
- Copy `userparameter_nginx.conf` to `/etc/zabbix/zabbix_agentd.d` folder (or whatever is default and/or configured on your system).
- Copy `nginx-stat.py` to `/etc/zabbix/zabbix_agentd.scripts` folder.
IMPORTANT: if you use another folder for agent scripts, then update userparameter file in the previous step! - Import XML template file (`zbx_template_nginx.xml`) into Zabbix via Web GUI (Configuration -> Templates -> Import).
- Assign the imported template to a host and enjoy!
Listing Details
Type
Min Zabbix version
3.2.x
Features
Created
Modified
Author
sfuerte
Owner