Code Monkey home page Code Monkey logo

check_domain's Introduction

Nagios Plugin: check_domain

A Nagios plugin for checking a domain expiration date by registry name.

This plugin relies on jwhois to find the registration dates so any TLD that is not supported by whois will not return correctly and will output something similar to the following:

Error running whois:

Thanks to glensc for his work on nagios-plugin-check_domain which inspired this php version of his shell plugin.

Usage:

$./check_domain.php -d nagios.org
OK - Domain nagios.org will expire in 248 days (2015-10-04)

Full Usage:

check_domain.php - v1.1.0
    Copyright (c) 2014 Luke Groschen, Nagios Enterprises <[email protected]>, 
                  2009-2014 Elan Ruusamäe <[email protected]>
Under GPL v2 License

This plugin checks the expiration date of a domain name.

Usage: check_domain.php -h | -d <domain> [-c <critical>] [-w <warning>] [-s <whoisServer>]
NOTE: -d must be specified

Options:
-h
     Print this help and usage message
-d
     Domain name to query against
-w
     Response time to result in warning status (days)
-c
     Response time to result in critical status (days)
-s
	 Specify a whois server (whois.internic.net by default)

This plugin will use the whois service to get the expiration date for the domain name.
Example:
     $./check_domain.php -d nagios.com -w 30 -c 10 \n\n"

check_domain's People

Contributors

scot0357 avatar

Watchers

Igor Nikonorov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.