check_http for ssl certificate expiry check not working!

Eusebio Castillo Navarro ECastillo at osiatis.es
Thu Mar 26 10:48:28 CET 2015


Hello Lakshmi

from  issuing  the  "check_http -help"  it says clearly INTEGER, it never says  range:

Flag

 -C, --certificate=INTEGER
   Minimum number of days a certificate has to be valid. Port defaults to 443
   (when this option is used the URL is not checked.)


 CHECK CERTIFICATE: check_http -H www.verisign.com -C 14

 When the certificate of 'www.verisign.com' is valid for more than 14 days,
 a STATE_OK is returned. When the certificate is still valid, but for less than
 14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when
 the certificate is expired.


Hope this helps,

Eusebio




________________________________
De: Help [help-bounces+ecastillo=osiatis.es at monitoring-plugins.org] en nom de lakshmi narayanan sadagopan [laxmynarain at gmail.com]
Enviat el: dijous, 26 / març / 2015 00:19
Per a: help at monitoring-plugins.org
Tema: check_http for ssl certificate expiry check not working!

Hi,

I was going over the check_http writeup you have at https://www.monitoring-plugins.org/doc/man/check_http.html .

I am able to use check_http to trigger a WARNING state based on a single expiry day threshold but not for a range.

So, for example

This works

check_http -H www.verisign.com<http://www.verisign.com> -C 14

but this doesn't.

check_http -H www.verisign.com<http://www.verisign.com> -C 30,14

Would you know how I can get around this?

Your help is much appreciated.


Regards

Lakshmi


Advertencia legal: La información que figura en la presente comunicación y que la acompaña puede ser de naturaleza confidencial o bien estar sujeta a normas de confidencialidad legal o a protecciones relativas a su divulgación. Tiene por único objeto su utilización por parte del receptor a quien está destinada. Si usted no es el destinatario de la presente comunicación, rogamos eliminar y destruir todos los ejemplares de ésta que se encuentren en su poder, avisándole al remitente que la recibió por error. Queda expresamente prohibido examinar o difundir la presente comunicación o ejecutar actos en base a la misma.

Disclaimer: The information contained in and accompanying this communication may be confidential, subject to legal privilege, or otherwise protected from disclosure, and is intended solely for the use of the intended recipient(s). If you are not the intended recipient of this communication, please delete and destroy all copies in your possession, notify the sender that you have received this communication in error, and note that any review or dissemination of, or the taking of any action in reliance on, this communication is expressly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20150326/a8c851ed/attachment.html>


More information about the Help mailing list