check_http

Christian Kujau lists at nerdbynature.de
Fri Feb 28 03:08:27 CET 2020


On Thu, 27 Feb 2020, Dave Compton wrote:
> I suggest adding an option to check_http to set the maximum validity time
> of the certificate. My C is rather rusty but I'd be happy to try and hack

Isn't this already accomplished with the (uppercase) -C option?

 $ ../monitoring-plugins/check_http -H example.org -C 90,20
 WARNING - Certificate 'example.org' expires in 47 day(s) (Wed 15 Apr 2020 06:48:11 AM GMT +0000).

The check_tcp plugin also has a -D option:

 $ ../monitoring-plugins/check_tcp -H example.org -p 443 -D 90,20
 WARNING - Certificate 'example.org' expires in 47 day(s) (Wed 15 Apr 2020 06:48:11 AM GMT +0000).                                                                                                      

Or did you mean something else?

Christian.
-- 
BOFH excuse #26:

first Saturday after first full moon in Winter


More information about the Devel mailing list