Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Check the expiry date of an SSL certificate using openssl.
Current Version
Last Release Date
June 18, 2009
Owner
Nagios Exchange
Website
http://www.reversemidastouch.com/nagios/
Perl check_ssl script.
Perl script to check an SSL cerificate and warn and/or alarm if the certificate is due to expire. Differs from other version of check_ssl_cert in that temporary files are not used (as per Nagios documentation). In addition, Date::Calc is not used (no separate perl plugins required).
It was written without me being aware that check_ssl_cert exists as it is not in the Networking section of Check Plugins.
Love the script. There's an issue with hostnames that have a hyphen in them however, so the likes of myserver.my-domain.com:443 causes a failure of the script. I'm not familiar with Perl so could not work out exactly why, but the following REGEX drops everything before the hypen in the hostname (so it would try to check the expiry of domain.com:443 in my example above) - if ($cmd_options{H} =~ /([w+.*]+:d+)/){ $hostname_port_number=$1; Changing this to the below solved it for me, but I'm not sure if the author was trying to use the REGEX to clean up the hostname in some way so this fix may not be ideal, but it does work - if ($cmd_options{H} =~ /([w+.*]+:d+)/){ $hostname_port_number=$cmd_options{H};
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!