GithubHelp home page GithubHelp logo

ramilehti / monitoring-plugin-check_domain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from glensc/monitoring-plugin-check_domain

0.0 1.0 0.0 122 KB

Nagios/Icinga plugin for checking a domain name expiration date

Shell 100.00%

monitoring-plugin-check_domain's Introduction

Nagios/Icinga Plugin: check_domain

Build Status

Nagios/Icinga plugin for checking a domain name expiration date

Usage

$ ./check_domain.sh -d github.io
OK - Domain github.io will expire in 43 days (2014-03-08).

Caching

This tool excels at monitoring a small number of domains, but because of whois rate limiting, it becomes infeasible to use for a large number of domains. For this to work around, there's support for caching positive lookups for defined time period. A failed lookup will cause the domain cache file to be removed so it should be as responsive as a normal check when the critical/warning threshold is reached.

An example to configure to cache positive lookups for one day:

  • --cache-dir /var/cache/check_domain --cache-age 1

The cache dir must exist and must be writable for user running the checks.

Pull requests

  1. Fork it.
  2. Create your feature branch (git checkout -b fixing-blah).
  3. Commit your changes (git commit -am 'Fixed blah').
  4. Run ./test.sh domain.tld to test the domain
  5. Add the example domain name to domains for CI to test them, commit it
  6. Push to the branch (git push origin fixing-blah).
  7. Create a new pull request.

Do not update changelog or attempt to change version.

Installing whois

This plugin uses the "whois" command. It is usually installed by default, but if not, you can get it via your favourite package manager.

Debian/Ubuntu:

# apt-get install whois

RHEL/CentOS:

# yum install whois

Directory Listings

monitoring-plugin-check_domain's People

Contributors

glensc avatar elyrith avatar herbie34 avatar jeanpaulgalea avatar oasys avatar tomas-edwardsson avatar rastkov avatar bsv9 avatar ravisorg avatar d0gd3v avatar abchk1234 avatar adlabgithub avatar ivmaks avatar mxroo avatar nothinux avatar tarmot avatar kso512 avatar oikarinen avatar

Watchers

Rami Lehti 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.