I set up heartbeat with my cluster ELK 7.12 (2 nodes) running on separate VMs, everything working fine, but when I enabled transport ssl and generated certificates for each node, heartbeat keeps showing that my nodes are down but they are up. Kibana is running on node1.
Here is heartbeat.yml for node1:
heartbeat.config.monitors:
# Directory + glob pattern to search for configuration files
path: ${path.config}/monitors.d/*.yml
# If enabled, heartbeat will periodically check the config.monitors path for changes
reload.enabled: false
# How often to check for changes
reload.period: 5s
heartbeat.monitors:
- type: http
# ID used to uniquely identify this monitor in elasticsearch even if the config changes
id: monitor-my-cluster-node1
# Human readable display name for this service in Uptime UI and elsewhere
name: Monitor node1
# List or urls to query
urls: ["http://localhost:9200"]
# Configure task schedule
schedule: '@every 10s'
setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
setup.kibana:
host: "localhost:5601"
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["node1:9200", "node2:9200"]
username: "elastic"
password: "${ES_PWD}"
processors:
- add_observer_metadata:
and heartbeat.yml for node2:
heartbeat.config.monitors:
# Directory + glob pattern to search for configuration files
path: ${path.config}/monitors.d/*.yml
# If enabled, heartbeat will periodically check the config.monitors path for changes
reload.enabled: false
# How often to check for changes
reload.period: 5s
# Configure monitors inline
heartbeat.monitors:
- type: http
# ID used to uniquely identify this monitor in elasticsearch even if the config changes
id: monitor-my-cluster-node2
# Human readable display name for this service in Uptime UI and elsewhere
name: Monitor node2
# List or urls to query
urls: ["http://localhost:9200"]
# Configure task schedule
schedule: '@every 10s'
setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
setup.kibana:
host: "node1:5601"
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["node1:9200", "node2:9200"]
username: "elastic"
password: "${ES_PWD}"
processors:
- add_observer_metadata:
checked heartbeat logs and showing no errors, what's wrong with my conf please?
Below a screenshot from kibana of heartbeat result: