adubkov / zbx_nginx_template

Zabbix template for Nginx
126 stars 93 forks source link

Multiple vhosts #6

Open hsoares opened 9 years ago

hsoares commented 9 years ago

Hey. Apologize for opening a issue when your script works perfectly. I would like to know if there's a simple way to adapt it to monitor multiple log files on the same server. I have an independent access log file per virtual host. Thanks.

Krylon360 commented 9 years ago

You'll need to patch and compile Nginx with the extended_status_module. It's not included with the default package.

Bryce Walter On Oct 9, 2015 5:46 AM, "hsoares" notifications@github.com wrote:

Hey. Apologize for opening a issue when your script works perfectly. I would like to know if there's a simple way to adapt it to monitor multiple log files on the same server. I have an independent access log file per virtual host. Thanks.

— Reply to this email directly or view it on GitHub https://github.com/blacked/zbx_nginx_template/issues/6.

adubkov commented 9 years ago

@hsoares you can just run several copies on that script and change path to the log file and to temp file(where it saves offset of log file) in each of them. This is the easiest way.