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

Directory Tree

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
7085
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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