# Heartbeat error DEBUG \[tcp\] tcp/task.go:58 check failed with: EOF

**URL:** https://discuss.elastic.co/t/heartbeat-error-debug-tcp-tcp-task-go-58-check-failed-with-eof/174469
**Category:** Beats
**Tags:** heartbeat
**Created:** [March 29, 2019, 5:16am UTC](https://discuss.elastic.co/t/heartbeat-error-debug-tcp-tcp-task-go-58-check-failed-with-eof/174469 "2019-03-29T05:16:55Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![martinr\_ubi](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martinr\_ubi](https://discuss.elastic.co/u/martinr_ubi)
#### Post date: [April 10, 2019, 8:02am UTC](https://discuss.elastic.co/t/heartbeat-error-debug-tcp-tcp-task-go-58-check-failed-with-eof/174469/3 "2019-04-10T08:02:53Z")

</div>

Hi,

You need to post your config for the monitor because we can't see how you configured it.  
Also maybe this can help:

> [@Postgresql tcp check is not working](https://discuss.elastic.co/t/postgresql-tcp-check-is-not-working/174767):
>
> Hello, I have setup in heartbeat a tcp check for postgresql but I don't seam to manage to have it working. The config looks like the following: - type: tcp schedule: '@every 5s' hosts: ["172.168.17.2"] ports: [5432] check.send: 'Check' check.receive: 'Check' tags: ["db-tier", "postgresql"] fields: '@environment': staging3 region: Canada DC: OVH Is there anything I do wrong in here?

A heartbeat monitor which would do the equivalent of this:

```auto
# nc -v 10.4.3.5 -port 1525
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 10.4.3.5:1525.
^C

```

would be this:

```auto
- type: tcp
  schedule: '@every 5s'
  hosts: ["10.4.3.5"]
  ports: [1525]

```

But you didn't post your config so it's hard to help.

Martin

---

_[View the full topic](https://discuss.elastic.co/t/heartbeat-error-debug-tcp-tcp-task-go-58-check-failed-with-eof/174469)._
