[Nagiosplug-devel] sslutils patch : show certificate subject

Stéphane Urbanovski stephane.urbanovski at ac-nancy-metz.fr
Wed Nov 24 15:24:55 CET 2010

Hi all

Here is a patch (against v1.4.15) that show the certificate subject in check_http message :

check_http -C 5 -H
OK - Certificate 'www.verisign.com' will expire on 05/25/2012 23:59.

Can someone check it ? (I'm not a C guru)

It seems there is a little bug when using check_tcp with certificate check (sample output from an unpatched version):

check_tcp -D 5 -H www.verisign.com -p 443
OK - Certificate will expire on 05/25/2012 23:59.
TCP OK - 0,476 second response time on port 443|time=0,476054s;;;0,000000;10,000000

Is there a way to use strftime (or something in same spirit) to show a locale date (dd/mm/yyyy for french) instead of US format mm/dd/yyyy ?


Stéphane Urbanovski

-------------- next part --------------
A non-text attachment was scrubbed...
Name: show-certificate-subject.patch
Type: text/x-diff
Size: 2356 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20101124/0d34a4a7/attachment.patch>

More information about the Devel mailing list