Consul Health Check Warning vs. Critical

1,138 views
Skip to first unread message

RyanO

unread,
Feb 23, 2016, 12:46:49 PM2/23/16
to Consul
The "warning" and "critical" health check results both trigger the removal of a node from the service.  I'm trying to understand the use case for warning as a means of notification via a watcher vs. removing the node from the service automatically.  Using a simple example of "Nagios Check Disk" where I'd like to be notified about a disk filling up but not remove it from the service if it's not full.  I can't seem to find anything in the documentation that describes this.  Newbie question, sorry.

Thanks,
Ryan

James Phillips

unread,
Feb 23, 2016, 1:13:05 PM2/23/16
to consu...@googlegroups.com
Hi Ryan,

The "only_passing" configuration option controls this for DNS - https://www.consul.io/docs/agent/options.html#only_passing. By default, warnings should not pull a node out of service, but if this is set to true then things will behave as you describe. There's a similar "passing" option you can pass to the health HTTP endpoint - https://www.consul.io/docs/agent/http/health.html#health_service.

It looks like you might have this option set to true in your configuration. Hope that helps!

-- James

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/5fbefa7e-1b78-458d-a3a7-c36db12e23dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages