Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up

Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More

  • Home
  • Directory
  • Library
  • Support
  • About
Plugins4405Themes and Skins13Add-ons757Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Configuration Wizards Dell Out-of-Band Server Monitoring Configuration Wizard
0.0 (0)
34.8K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (7)deskwork_itunes142 (4)Marcin Bednarski (3)Davide Lemma (3)Chad Columbus (3)
See More
Newest Contributors
signalgrid (1)Sanna Glue (2)fisherrs (1)smolinux (1)juanfertor (1)
See More

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > John Kegaly
JK

John Kegaly

@jkegaly

User Stats

Member Since: April 2, 2018

Favorites0

Views

Projects0

No Projects Found
CheckSSLCertExpiry

Works well, but needed configuration

This was a good starter script. It works as it should after modification. I ended up modifying it to say... ####################################### #!/bin/bash SitePort=$1 OutDate=$(echo | openssl s_client -connect ${SitePort}:443 2>/dev/null | openssl x509 -noout -endda$ OutputDate=$(date -d "${OutDate}" "+%s") SystemDate=$(date '+%s') DiffTime=$(expr "${OutputDate}" - "${SystemDate}") if [ "${DiffTime}" -ge 864000 ] then echo "Certificate will expire on ${OutDate}" exit 0 elif [ "${DiffTime}" -le 863999 -a -ge 5 ] then echo "Certificate is going to expire in less then 10 days on ( ${OutDate} ). Please Renew!" exit 1 elif [ "${DiffTime}" -le 4 ] then echo "Certificate has EXPIRED on ( ${OutDate} )! Please replace!" exit 2 else echo "ERROR! Certificate NOT found!" exit 2 fi #######################################

Reviewed 8 years ago

check_https

Works Very Well!

Works very well, just took the check_http command and modified so it would work properly!

Reviewed 8 years ago

No Favorites Found

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile