arr's blog

Script to check SSL Cert Expiration via nagios

Submitted by arr on Thu, 2007-11-29 07:50.WWW

Someone on the sage-members mailing list asked about checking SSL expiration dates. We use the following script to check them via nagios (actually, we use a slightly older version that takes hostname and port instead of URL, but this is the next version we plan to roll out). I thought I'd post it here (with the permission of the author, who is no longer at Tufts) for others to use:

#!/usr/local/bin/perl
###########################################################################
#####                                                                     #
#####     check_cert.pl -- check  HTTPS,  IMAPS,  LDAPS or SMTP (with     #


  
XML feed