From 326fde4895ae6b372be4520b2f68454f687945c8 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Thu, 14 Feb 2019 20:42:56 -0600 Subject: [PATCH] Increment nginx check port In the event that both NGINX and apache are co-existing on the same machine the status port check for both platforms will be the same, and that will cause one of the services to not start. This change increments the NGINX check port to ensure there are no conflicts. Change-Id: I03d5d351fff2d6926f35ca860c01f5a075de42aa Signed-off-by: Kevin Carter --- .../roles/elastic_metricbeat/templates/metricbeat.yml.j2 | 2 +- .../roles/elastic_metricbeat/templates/nginx-status.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/elk_metrics_6x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 b/elk_metrics_6x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 index b800d1e1..41c1a15f 100644 --- a/elk_metrics_6x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 +++ b/elk_metrics_6x/roles/elastic_metricbeat/templates/metricbeat.yml.j2 @@ -415,7 +415,7 @@ metricbeat.modules: period: 30s # Nginx hosts - hosts: ["http://127.0.1.1:18181"] + hosts: ["http://127.0.1.1:18182"] # Path to server status. Default server-status server_status_path: "server-status" diff --git a/elk_metrics_6x/roles/elastic_metricbeat/templates/nginx-status.conf.j2 b/elk_metrics_6x/roles/elastic_metricbeat/templates/nginx-status.conf.j2 index e518f92f..47291c4a 100644 --- a/elk_metrics_6x/roles/elastic_metricbeat/templates/nginx-status.conf.j2 +++ b/elk_metrics_6x/roles/elastic_metricbeat/templates/nginx-status.conf.j2 @@ -1,5 +1,5 @@ server { - listen 127.0.1.1:18181; + listen 127.0.1.1:18182; location /server-status { stub_status on; access_log off;