New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Domain Expiry

Votes:

0

Your Vote:

Up

Down

Hi,

Has anyone written a sensor to monitor the expiry of a domain?

Eg: paessler.com Expires 09/09/2012

If not something to put on my to do list.

Cheers Pete

custom-sensor domain sensor

Created on Jul 4, 2012 5:17:31 PM by  Peter Foreman (0) 1



16 Replies

Votes:

0

Your Vote:

Up

Down

PTF.TLDomainExpiration

This can be done with custom sensor PTF.TLDomainExpiration. The sensor returns the number of days before a .com, .net, .org, .info, .us or .biz domain registration expires.

The following parameters can be used:

-d=    The domain name to monitor.

The sensor can be downloaded from this page.

Regards,

Created on Jul 5, 2012 9:34:20 AM by  PRTG Tools Family [prtgtoolsfamily.com] (12,925) 3 4

Last change on May 23, 2013 2:23:50 PM by  Patrick Hutter [Paessler Support] (7,174) 3 3



Votes:

0

Your Vote:

Up

Down

It appears this tool is not reporting the proper expiration date. For example, a domain expiring in 741 days it reported it expired -721 days ago.

Created on Jul 9, 2012 5:07:33 PM by  David Dinner (0) 1



Votes:

0

Your Vote:

Up

Down

I am also having the same issue, works for some but not others. This would be a really useful sensor.

Created on May 16, 2013 11:16:10 PM by  ThorinO (0) 1



Votes:

0

Your Vote:

Up

Down

Can you give one ore more examples of domains that are not working?

If you do not want to publish those names here, you can contact me at http://www.prtgtoolsfamily.com?page=contact

Created on May 17, 2013 11:41:56 AM by  PRTG Tools Family [prtgtoolsfamily.com] (12,925) 3 4



Votes:

0

Your Vote:

Up

Down

I sent you an Email with some that do and don't work. Thank you.

Created on May 21, 2013 12:28:02 AM by  ThorinO (0) 1



Votes:

0

Your Vote:

Up

Down

Version 13.2.2.6 of the sensor is now available for download.

This verson includes better handling for falsely reported negative values and "No expiration date found" errors.

The sensor can be downloaded from http://www.prtgtoolsfamily.com?page=downloads (Custom Sensors section)

Created on May 23, 2013 2:06:00 PM by  PRTG Tools Family [prtgtoolsfamily.com] (12,925) 3 4



Votes:

0

Your Vote:

Up

Down

You can check the expiry of a domain with the help of Whois search from http://www.whoisxy.com/ where you can check the date created and when it is going to expiry and also the last updated date....

Created on Aug 7, 2013 7:04:25 AM by  passer123 (0)



Votes:

0

Your Vote:

Up

Down

Hi, great custom sensor that works well... however, I have checked the http://www.who.is site as recommended in the ReadMe and it appears it is now able to perform look-ups on .co.uk domain names though the sensor seems to be hard-coded to return the fact that it can only look up TLD's.

Can .co.uk's now also be allowed?

Kind regards,

James

Created on Aug 25, 2015 8:34:15 AM by  DrapJ (0)



Votes:

1

Your Vote:

Up

Down

Hi,

Please send an email to [email protected] with a few examples of domain names that you would like to monitor.

Created on Aug 25, 2015 8:47:05 AM by  PRTG Tools Family [prtgtoolsfamily.com] (12,925) 3 4



Votes:

0

Your Vote:

Up

Down

Many thanks, I have done so.

Regards,

James

Created on Aug 26, 2015 12:31:45 PM by  DrapJ (0)



Votes:

0

Your Vote:

Up

Down

Wow, what fantastic service! Thank you very much to 'PRTGToolsFamily' for updating your sensor to now include .co.uk's ... and so quickly too. :-)

I have tried to 'upvote' you but apparently I'm not reputable enough. :-( If there's anything else I can do in this regard, please let me know.

Regards,

James

Created on Aug 26, 2015 2:28:36 PM by  DrapJ (0)



Votes:

0

Your Vote:

Up

Down

This 3rd party sensor still doesn't quite work right. I'm getting a negative number for a domain which expires in four years.

PS C:\Temp\PTF.TLDomainExpiration> .\TLDomainExpiration.exe -d=somedomain.net -nocheck 16.1.1.18 Requesting data ...... .Found negative value, trying again. Requesting data ...... .-38:The domain registration expires in -38 days.

Very disappointing that PRTG doesn't have a native sensor to handle domain expiration. This is a very easy task in Nagios.

Created on Feb 24, 2016 8:30:10 PM by  joshford (0)



Votes:

0

Your Vote:

Up

Down

This sensor still appears to have issues and the issues are inconsistent. Earlier today, when trying this sensor from the command line, I would receive a negative value on a domain which I know expires next February. Now, I'm getting "no expiration date found", regardless of what domain I use. Example below.

PS C:\temp\Domain Expiry> .\TLDomainExpiration.exe -d=google.com -nocheck 16.1.2.19 Requesting data ... No expiration date found, trying again. Requesting data ... No expiration date found, please visit http://www.who.is and enter your domain name once.

Press any key to continue

Created on Apr 5, 2016 6:38:25 PM by  joshford (0)



Votes:

0

Your Vote:

Up

Down

Hi Joshford,

There seems to be nothing wrong with checking google.com at this moment.

Please keep in mind that you should not use a 60sec interval for this sensor.
Checking once a day at a 24h interval should be sufficient for this sensor type.

A 60sec interval might generate too much traffic for who.is as a result of which your IP can get temporarily blocked, explaining the inconsistent issues.

Created on Apr 7, 2016 8:55:20 AM by  PRTG Tools Family [prtgtoolsfamily.com] (12,925) 3 4



Votes:

0

Your Vote:

Up

Down

  1. Try a custom PS sensor should work for any domain if you know the whois server url
  1. example .\GetDaysLeft.ps1 rg.bm "Registrar Registration Expiration Date: " whois.asaplatform.info
  2. example .\GetDaysLeft.ps1 google.com "Registrar Registration Expiration Date: "
  3. example .\GetDaysLeft.ps1 bbc.co.uk " Expiry date:"
  1. whois.exe from micrsoft must be in specified in script
Param(
  [Parameter(Mandatory=$true)]
  [string]$domain,
  [Parameter(Mandatory=$true)]
  [string]$expirationtextsearch,
  [string]$whoisserveroveride
)

$Command = "C:\Program Files (x86)\PRTG Network Monitor\custom sensors\EXE\whois.exe"
$Parms = "/accepteula $domain $whoisserveroveride"
$Prms = $Parms.Split(" ")
$whoisoutput = (& "$Command" $Prms) 

$expirationresult = $whoisoutput | % { if($_ -match $expirationtextsearch) {$_}}

$datestring = $expirationresult.Substring($expirationtextsearch.Length)

$expiredate = Get-Date $datestring
$daystoexpire = ($expiredate - (Get-Date)).Days


$x=[string]$daystoexpire+":The domain registration expires in "+$daystoexpire+" days."
write-host $x

exit 0

Created on Dec 22, 2016 12:27:17 PM by  hwsknudsen (0) 2

Last change on Dec 22, 2016 7:14:43 PM by  Erhard Mikulik [Paessler Support]



Votes:

0

Your Vote:

Up

Down

I've added the script to github as well https://github.com/hwsknudsen/PSWhoisGetDaysLeft/

Created on Dec 22, 2016 5:55:58 PM by  hwsknudsen (0) 2



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.