# Metricbeat Requests To Nginx Keep 'Waiting' State

**URL:** <https://discuss.elastic.co/t/metricbeat-requests-to-nginx-keep-waiting-state/216525>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 25, 2020, 2:52pm UTC](https://discuss.elastic.co/t/metricbeat-requests-to-nginx-keep-waiting-state/216525 "2020-01-25T14:52:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Razco](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@Razco](https://discuss.elastic.co/u/Razco)\
**Post date:** [January 25, 2020, 2:52pm UTC](https://discuss.elastic.co/t/metricbeat-requests-to-nginx-keep-waiting-state/216525/1 "2020-01-25T14:52:18Z")

</div>

Hey there guys !  
I'm encountering a very odd situation with configuring Metricbeat Nginx module.  
My Metricbeat requests to the Nginx server stuck on Waiting state on the Nginx.

I've set-up the stub status page :

```
location /server-status {
stub_status on;
access_log off;
allow all; 

```

Set-up the Metricbeat module:

```
metricbeat.modules:
- module: nginx
  metricsets: ["stubstatus"]
  enabled: true
  period: 10s

  # Nginx hosts
  hosts: ["127.0.0.1"]

  # Path to server status. Default server-status
  server_status_path: "server-status" 

```

Tried to get the Metricbeat work both from the Nginx server host and from another server,  
And unfortunately the Metricbeat requests stuck in 'Waiting' state on my Nginx server :

```
Active connections: 3

server accepts handled requests

400 400 558

Reading: 0 Writing: 1 Waiting: 2

```

Thank you guys,  
Raz Cohen.

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [January 27, 2020, 10:35am UTC](https://discuss.elastic.co/t/metricbeat-requests-to-nginx-keep-waiting-state/216525/2 "2020-01-27T10:35:55Z")

</div>

Hi!

I would point you for reference to the configuration that is used in CI tests of this Module -\> [https://github.com/elastic/beats/blob/6003861532e39ae8624109711183c425ba8dc82e/metricbeat/module/nginx/\_meta/nginx.conf#L23](https://github.com/elastic/beats/blob/6003861532e39ae8624109711183c425ba8dc82e/metricbeat/module/nginx/_meta/nginx.conf#L23)

Could you try with something like this in combination with the [docs](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-nginx.html) configuration for the module?

C.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 24, 2020, 10:36am UTC](https://discuss.elastic.co/t/metricbeat-requests-to-nginx-keep-waiting-state/216525/3 "2020-02-24T10:36:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
