Page 1 of 1

Error incheck_http when checking cert expiration

Posted: Wed Aug 02, 2017 2:52 am
by ajacobs
Hi

I am in the process of upgrading our nagios servers from debian7 to debian9, and have run into a problem with check_http.

In the old version (2.1.4) the command "check_http -H hostname -S -C 20 --sni" gives a correct answer, but the new version (2.2.1) gives a wrong answer because the server responds with a 403 HTTP response. That is it always returns 1 no matter the expiry of the cert.

Is this a known problem, and is there a workaround ?

Best regards
Allan

Re: Error incheck_http when checking cert expiration

Posted: Wed Aug 02, 2017 1:06 pm
by kyang
Hi @ajacobs,

This sounds like a known issue that has been reported and added to the bug fixes for the next version.

https://github.com/nagios-plugins/nagio ... issues/280
https://github.com/nagios-plugins/nagio ... issues/299

There is the option of downgrading back to 2.1.4 if you need the -C certificate check.

Does this help?

Re: Error incheck_http when checking cert expiration

Posted: Wed Aug 02, 2017 3:55 pm
by dwhitfield
Thanks @kyang!

OP, let us know if you have any additional questions.