Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_ssl_expiration.php

Rating
0 votes
Favoured:
0
Current Version
1.0.0
Last Release Date
2016-07-13
Compatible With
  • Nagios 4.x
  • Nagios XI
Owner
Hits
2844

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

This plugin can be used to check SSL certificate expiration for a given IP address or range of IP addresses.

check_ssl_expiration.php - v1.0.0
Copyright (c) 2016 Matthew Capra, Nagios Enterprises
Under GPL v2 License

This plugin checks the expiration date of an SSL certificate on a remote host (or group of hosts)

Usage: check_ssl_expiration.php -h | -a [-c ] [-w ]
NOTE: -a must be specified

Options:
-h
Print this help and usage message
-a
The address (or block) we wish to check
-t
The timeout for our checks (seconds), default is 5. If you're scanning an awful lot of IPs, try setting this to 1 or lower.
-w
Expiration time warning status (days), default 30
-c
Expiration time critical status (days), default 15

This plugin will use openssl to check a target certificate's expiration date.
Example:
$./check_ssl_expiration.php -a 172.217.4.96 -w 90
$./check_ssl_expiration.php -a 172.217.4.96/27 -t 2 -w 90 -c 30
$./check_ssl_expiration.php -a 172.217.4.96,172.217.4.97,172.217.4.124 -t 2 -w 90 -c 30