Home Directory Plugins Internet Domains and WHOIS check_whois.pl (Advanced Nagios Plugins Collection)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_whois.pl (Advanced Nagios Plugins Collection) Popular

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
Hits
697004
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks domain expiry via whois lookup. This is an important piece of code given that ppl overlook domain renewals till the last minute (and auto-renewals fail when their cached credit cards have expired)
Part of the Advanced Nagios Plugins Collection, download it here:

https://github.com/harisekhon/nagios-plugins

./check_whois.pl --help

Nagios Plugin to check domain expiry via whois lookup

This is an important piece of code given that ppl overlook domain renewals till the last minute (and auto-renewals fail when their cached credit cards have expired)

usage: check_whois.pl [ options ]

-d --domain Domain to check
-H --whois-server Query this specific whois server
-w --warning Warning threshold in days for domain expiry (defaults to 60 days)
-c --critical Critical threshold in days for domain expiry (defaults to 30 days)
--no-expiry Do not check expiry. Do not use this except for those rubbish broken european TLDs whois like .fr
--no-nameservers Do not check for nameservers. You should not use this normally
--name-servers Name servers to expect for domain, should be comma delimited list, no spaces
--registrant Registrant to expect
--registrar Registrar to expect
--admin-email Admin email to expect
--tech-email Tech email to expect
-h --help Print description and usage options
-t --timeout Timeout in secs (default: 10)
-v --verbose Verbose mode
-V --version Print version and exit