Multi function checks with check_http

OK folks - sorry if this is FAQ

Upgraded to latest plugins and still seeing this

I want to use check_http to check both response times and content. Ideally I’d like to do this with the same check -but it doesn’t seem to work:

./check_http -H some.website.com -u / -w 1 -c 2 -l -R foobar

HTTP WARNING: HTTP/1.1 200 OK - 1.477 second response time |time=1.477037s;1.000000;2.000000;0.000000 size=4128B;;;0

echo $?

1

The string foobar definitely isn’t in the body! The response time warning is overriding the missing content. If I remove the -w/-c the content check will fail. Am I asking too much from the plugin?

Bump! I still see this with plugins 1.4.11. Would love to see this fixed.

Problem is - if you combine a regexp check with a warn/critical response time check (which check_http lets you do), a response time WARNING overrides a regexp CRITICAL so you only see a WARNING for response time.