Questions tagged [consul-health-check]

15 questions
1
vote
1 answer

The servers are alive but the clients aren't! "No installed keys could decrypt the message", how to resolve this on consul?

Once I enabled encrypt, all my consul cluster failed. this is sudo systemctl consul status: memberlist: failed to receive: No installed keys could decrypt Nov 01 08:49:30 server-1 consul[593217]: 2021-11-01T08:49:30.031+0330 [ERROR]…
mehdiMj
  • 101
  • 8
1
vote
1 answer

Consul Data Center: Leader node not automatically selected after failure of previous leader node

I'm new to Consul and I have created a one Data Center with 2 server nodes. I followed the steps provided in this documentation, https://learn.hashicorp.com/tutorials/consul/deployment-guide?in=consul/datacenter-deploy The nodes are successfully…
1
vote
1 answer

why server can't find pihole.service.consul: NXDOMAIN and how can I fix this?

I have following configuration for consul. { "service": { "name": "pihole", "Address": "192.168.0.15", "tags": [ "pi" ], "port": 8165, "check": { "args": [ "curl", "192.168.0.15" ], …
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
0
votes
0 answers

Error registering service : Unexpected response code: 400 (Invalid check: TTL must be > 0 for TTL checks)

I want to register my services with multiple script checks for each. I store the values in consul kv and call them with consul-template to write a JSON file as the configuration file to register services with cli “consul services register…
0
votes
0 answers

How to check consul service health if there is space in the name and tag both

I want to fetch service health information from consul. How can I search a service with curl cmd when there is space in their name and tag both one more question is curl --get http://127.0.0.1:8500/v1/health/checks/$service will check for service…
0
votes
0 answers

Consul Serf Health Status

I have installed on my localhost, a consul server (leader) with an IP address of 192.168.48.1 => running ok Then I installed a vagrant box (ubuntu 20.04) as a consul agent, with an ip address of 10.0.2.15 and I informed about the bridge within the…
YoussHark
  • 558
  • 1
  • 9
  • 26
0
votes
2 answers

Run a custom command using consul hashicorp json file

i set up a 3 consul servers and 1 nginx and linked them in one cluster and everything is ok on the web ui . i would like to run a custom .JSON config file to run this command "ss -nlt" in order to see the number of connections to that server on the…
resha
  • 78
  • 1
  • 7
0
votes
1 answer

How does Consul's script(args) check run in my pod?

I deploy Coscul through helm-chart, and don't enable to inject sidecar. Then I register service which has args check as below. { "name": "demo-svc", "Address": "demo-svc.default.svc.cluster.local", "port": 8080, "checks":…
0
votes
2 answers

Spring boot consul health check is failing

I have a consul server running on my local machine in dev mode with ACL enabled. Here is my ACL policy for service named web: service "web" { policy = "write" } And I have a token where I have attached this policy. I am trying to register the…
0
votes
0 answers

How to select namespace from Consul

I have ent. Consul installed and it has multiple namespaces. I want to use Python module to query specified namespace. Basically if I have namespaces: ns_1, ns_2. I want get the services and respective meta for ns_1 and ns_2 individually. The input…
0
votes
1 answer

Configure Consul Watches with HTTP Endpoint Handler through CLI

I am starting out with Consul, and I was wondering if there is a way to set the HTTP handler configuration(s) (i.e. path, method, etc.) through the CLI command itself (consul watch), without using a configuration file (with -config-file…
0
votes
0 answers

service get automatically deregister from consul after a period of time

we have implemented Microservice Architecture. When we deploy a service it perfectly register itself over consul. But after some time it gets automatically deregister. No logs in service as well.
0
votes
1 answer

Why I don't see LEADER badge on server?

I have 3 consul servers in cluster. They were recovered from outage. Now they are running. Everything works. I checked with API who is leader, and I found it out. But weird thing - I don't see LEADER badge in UI. Morover I see "No service checks" on…
Yukpun
  • 47
  • 1
  • 8
0
votes
2 answers

Get failed service name inside Consul watch handler

I'm using Consul to monitor services health status. I use Consul watch command to fire a handler when some service is failed. Currently I'm using this command: consul watch -type=checks -state=passing /home/consul/health.sh This works, however I'd…
nyan-cat
  • 610
  • 5
  • 19
0
votes
1 answer

Consul health checker

I have consul agent server on localhost:8500. Then I have a simple http server, which first registrates in consul Consul client = Consul.builder().build(); // connect on localhost AgentClient agentClient = client.agentClient(); String…
Anton
  • 63
  • 6