G
G
ggagnidze2012-12-26 16:27:54
Nginx
ggagnidze, 2012-12-26 16:27:54

How to measure the channel occupied by an nginx virtual host?

Good day, gentlemen.
There is an nginx server that serves static files.
It runs several virtual servers.
I would like to know how much outgoing traffic each virtual server generates (on-line or in slices of 1-5 minutes).
Ideally, tie it to Zabbix.
Are there ready-made solutions or will you have to invent?
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
pentarh, 2012-12-26
@pentarh

Count bytes by access logs. But there is a nuance. For example, if I request a large file and abort the download, this entry still gets into the access log with the full size of the file. Apache writes real bytes mod_log_io. I don't know about nginx.

G
ggagnidze, 2012-12-27
@ggagnidze

Perhaps someone screwed nginx_vhost_traffic (https://github.com/joanpc/nginx_vhost_traffic)?
I think it will work for zabbix as well.

F
Fader, 2014-03-13
@Fader

once: www.mygento.ru/blog/munin_nginx_vhost_traffic
two: debianworld.ru/qa/question/45/nginx-munin-debian-ubuntu

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question