DNS

check_domain.pl

Description:

This plugin will do a whois lookup on a given domain and return the number of days remaining until it expires.

Current Version

1.1

Last Release Date

2012-05-15

Compatible With

  • Nagios 3.x

Owner

License

GPL


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Notes
Usage: $USER1$/check_domain.pl -d domainname.tld -w int -c int Version history: 1.0: initial release 1.0a: minor regex bug fix 1.1: major regex updates
Reviews (1) Add a Review
good variant, please include this changes to support more formats
by dshvedchenko, September 30, 2012
if ($whois =~ m/expir.*?((# dd-Mon-yy
d{2}-w{3}-(d{4}|d{2})|
#Jul 11 23:59:59 GMT 2013
w{3}sw{3}sd{2}sd{2}:d{2}:d{2}sw{3}sd{4}|
# dd Mon yyyy
d{2}sw{3}sd{4}|
# yyyy-mm-dd
d{4}-w{2}-d{2}))/xi or
$whois =~ m/status:.*OK-UNTILs((d{8}))d{6}/xi or
$whois =~ m/paid-till.*?((d{4}.d{2}.d{2}))/xi
) {
$edate = $1;
}
else {
print "Unknown - $domain expiration date not found.
";
exit 3;
}
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (1)
Favorites
0
Views
65,996