General maintenance. Create README, update repo URL, etc.
This commit is contained in:
parent
bb78e81d15
commit
9fd6774670
16
README
Normal file
16
README
Normal 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
|
||||||
|
|
24
check_domain
24
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.
|
# 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user