Error incheck_http when checking cert expiration

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ajacobs
Posts: 1
Joined: Wed Aug 02, 2017 2:41 am

Error incheck_http when checking cert expiration

Post 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
kyang

Re: Error incheck_http when checking cert expiration

Post 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?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Error incheck_http when checking cert expiration

Post by dwhitfield »

Thanks @kyang!

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