I am trying to check the status of TCP ports of servers from Hearbeat client. I am getting 4 output responses in kibana, three are showing status as false and one status is true. Initially it has failed due to timeout and i have increased the timeout period and after that getting the socket time out error.
Requirement:
In the two servers, I have to verify the ports 80, 443, 8080.
My hearbeat config is below.
heartbeat.monitors:
- type: tcp
hosts: ["target.server1.domainl","target.server2.domain"]
ports: [80, 443, 8080]
schedule: '@every 1200s'
timeout: 3000s
output.elasticsearch:
hosts: ["elkserver.domain:9200"]
index: "ports-status--%{+yyyy.MM.dd}"
Error seen in kibana:
error.message : dial tcp <ip_no>:443: getsockopt: connection timed out
How to troubleshoot this issue ? any clue what is happening in the above code.