diff --git a/README b/README new file mode 100644 index 0000000..e7195a8 --- /dev/null +++ b/README @@ -0,0 +1,16 @@ +This is a Nagios plugin to check the expiration date of a domain name. +It uses the "whois" command, which usually comes as a "whois" package. +Debian/Ubuntu: apt-get install whois + +Original version had this copyright notice in it: +Copyright (c) 2005 Tomàs Núñez Lirola , + 2009-2012 Elan Ruusamäe , under GPL License + +Ryan found it hosted at: +http://git.pld-linux.org/gitweb.cgi/?p=packages/nagios-plugin-check_domain.git + +This is a modified version, hosted at https://github.com/Elyrith/check_domain +Currently supports .com, .ca, .tv, .ee, .ru +Support for .ca and .se by Ryan Loudfoot (elyrith@gmail.com) +Support for Performance Data by Ryan Loudfoot + diff --git a/check_domain b/check_domain index ecb09c9..4d3064b 100755 --- a/check_domain +++ b/check_domain @@ -18,21 +18,13 @@ # # ################################################################################ -# This is a Nagios plugin to check the expiration date of a domain name. -# It uses the "whois" command, which usually comes as a "whois" package. -# Debian/Ubuntu: apt-get install whois -# -# Original version had this copyright notice in it: -# Copyright (c) 2005 Tomàs Núñez Lirola , -# 2009-2012 Elan Ruusamäe , under GPL License -# -# Ryan found it hosted at: -# http://git.pld-linux.org/gitweb.cgi/?p=packages/nagios-plugin-check_domain.git -# -# This is a modified version, hosted at https://bitbucket.org/elyrith/check_domain -# Currently supports .com, .ca, .tv, .ee, .ru -# Support for .ca and .se by Ryan Loudfoot (ryan@loudfoot.ca) -# Support for Performance Data by Ryan Loudfoot +############################################################################### +# The latest version of check_domain can be found at: # +# https://github.com/Elyrith/check_domain # +############################################################################### + +VERSION="Version Infinity" +AUTHOR="See README. This version updated by Ryan Loudfoot (elyrith@gmail.com)" PROGRAM=${0##*/} PROGPATH=${0%/*} @@ -158,4 +150,4 @@ expdays=$((diffseconds/86400)) # No alarms? Ok, everything is right. echo "OK - Domain will expire in $expdays days ($expdate). | Warning: $warning, Critical: $critical" -exit $STATE_OK \ No newline at end of file +exit $STATE_OK