Zabbix template for nginx with nginx-sla module enabled.
This module collects stats for nginx built with support of the awesome nginx stats collection module nginx-sla.
It simply dumps stats by calling a dedicated url shipped by nginx-sla.
- This module currently supports a single pool name and no auto-discovery
- 10 collected items
- 6 graphs
- Macros to configure nginx-sla stats location and pool name
- No triggers
- zabbix zabbix 2.4.7 or later (tested with 2.4.7 only although it should work in newer versions too)
- nginx with nginx-sla module enabled
- bash
- wget
- number of 2xx, 3xx, 4xx, 5xx and total responses per minute for your
nginx_slapool - 90%, 95%, 99% response time percentile
-
Drop
nginx-sla.shinto your scripts path (it's likely to be somewhat similar to/etc/zabbix/scripts/) on your Zabbix agent hosts. Make sure it has +x permissions for zabbix-agent -
Put
userparameter_nginx_sla.confinto /etc/zabbix/zabbix_agentd.d/ -
Import
zbx_nginx_sla_template.xmlthrough zabbix UI -
Configure nginx to support nginx-sla unless it's already done.
The detailed reference can be found here.
Here's a sample working configuration:
sla_pool main timings=50:100:1000:10000:60000 http=200:404:500:502:503:504 default;



