userparameter_nginx.conf 1.0 KB

123456789101112131415161718192021
  1. # in nginx config:
  2. # location /nginx_status {
  3. # # Turn on nginx stats
  4. # stub_status on;
  5. # # I do not need logs for stats
  6. # access_log off;
  7. # # Security: Only allow access from IP #
  8. # allow $1;
  9. # # Send rest of the world to /dev/null #
  10. # deny all;
  11. # }
  12. UserParameter=nginx.accepted[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a accepted
  13. UserParameter=nginx.active[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a active
  14. UserParameter=nginx.handled[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a handled
  15. UserParameter=nginx.reading[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a reading
  16. UserParameter=nginx.total[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a requests
  17. UserParameter=nginx.waiting[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a waiting
  18. UserParameter=nginx.writing[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a writing
  19. UserParameter=nginx.version,nginx -v 2>&1