General maintenance. Create README, update repo URL, etc.

This commit is contained in:
Elyrith 2013-06-04 17:56:05 -04:00
parent bb78e81d15
commit 9fd6774670
2 changed files with 24 additions and 16 deletions

16
README Normal file
View File

@ -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 <tnunez@criptos.com>,
2009-2012 Elan Ruusamäe <glen@delfi.ee>, 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

View File

@ -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. # The latest version of check_domain can be found at: #
# Debian/Ubuntu: apt-get install whois # https://github.com/Elyrith/check_domain #
# ###############################################################################
# Original version had this copyright notice in it:
# Copyright (c) 2005 Tomàs Núñez Lirola <tnunez@criptos.com>, VERSION="Version Infinity"
# 2009-2012 Elan Ruusamäe <glen@delfi.ee>, under GPL License AUTHOR="See README. This version updated by Ryan Loudfoot (elyrith@gmail.com)"
#
# 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
PROGRAM=${0##*/} PROGRAM=${0##*/}
PROGPATH=${0%/*} PROGPATH=${0%/*}
@ -158,4 +150,4 @@ expdays=$((diffseconds/86400))
# No alarms? Ok, everything is right. # No alarms? Ok, everything is right.
echo "OK - Domain will expire in $expdays days ($expdate). | Warning: $warning, Critical: $critical" echo "OK - Domain will expire in $expdays days ($expdate). | Warning: $warning, Critical: $critical"
exit $STATE_OK exit $STATE_OK