{
"bootstrap_expect": 2,
"client_addr": "0.0.0.0",
"data_dir": "/var/lib/consul",
"enable_syslog": true,
"ports": {
"dns": 8600,
"http": 8500,
"rpc": 8400,
"serf_lan": 8301,
"serf_wan": 8302,
"server": 8300
},
"server": true,
"start_join": [
"10.0.1.2"
],
"verify_incoming": false,
"verify_outgoing": false
}
"services": [
{
"name": "redis-6379-redis1",
"tags": ["redis"],
"address": "10.0.1.2",
"port": 6379,
"enableTagOverride": true,
"checks": [
{
"script": "/usr/local/script/check_redis_6379.sh",
"interval": "10s"
}
]
}
]
consul: 2016/12/17 11:41:10 [WARN] agent: Check 'service:redis-6379-redis1' is now warning
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/ea5bc653-9de8-432a-bc8d-bc7059f8cb18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Let me preface this with the following: I know nothing about redis.Are you using the redis health check you linked exactly as-is?#!/usr/bin/with-contenv shRESULT=`redis-cli ping`if [ "$RESULT" = "PONG" ]; thenexit 0fiexit 2I suspect the user Consul runs as doesn't have redis-cli in its path, or does not have permissions to run said executable. Honestly, I'd clean that health check script up a bit, change the #! line to the actual path to bash, and hardcode the redis-cli path.
You received this message because you are subscribed to a topic in the Google Groups "Consul" group.To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/CAFOdRH%2BXsyobGZg00ekWVkDZiGurSvHOSKM1mgnytL3_e%2BfGcA%40mail.gmail.com.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/consul-tool/3t1lrHY990g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to consul-tool+unsubscribe@googlegroups.com.