airbnb / nerve

A service registration daemon that performs health checks; companion to airbnb/synapse
MIT License
942 stars 151 forks source link

Add content check to HttpServiceCheck #49

Closed deverton closed 10 years ago

deverton commented 10 years ago

Introduces a new HttpServiceCheck configuration parameter called expect which is string value to expect in the server response.

In addition to checking for a status code in the [200,300) range, it also verifies a given string is contained in the response. This is similar to the HAProxy http-check expect string configuration.