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
Votes:
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
18 Replies
Votes:
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
Last change on May 23, 2013 2:23:50 PM by
Patrick Hutter [Paessler Support]
(7,225)
●3
●3
Votes:
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.
Votes:
I am also having the same issue, works for some but not others. This would be a really useful sensor.
Votes:
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
Votes:
I sent you an Email with some that do and don't work. Thank you.
Votes:
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)
Votes:
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....
Votes:
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
Votes:
Hi,
Please send an email to [email protected] with a few examples of domain names that you would like to monitor.
Votes:
Many thanks, I have done so.
Regards,
James
Votes:
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
Votes:
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.
Votes:
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
Votes:
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.
Votes:
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
Last change on Dec 22, 2016 7:14:43 PM by
Erhard Mikulik [Paessler Support]
Votes:
I've added the script to github as well https://github.com/hwsknudsen/PSWhoisGetDaysLeft/
Votes:
Well this powershellscript aint working, every domain ill try is:
"-738270:The domain registration expires in -738270 days. This is invalid as it is negative"
So whats wrong? And the original from PRTG Tools Family dont do any other domains :(
Votes:
modified the script a little bit to handle different search string patterns https://github.com/kkuderko/powershell/blob/main/DomainExpiry.ps1
©2024 Paessler AG Terms & Conditions Privacy Policy Legal Notice Download & Install
Add comment