Domain Expiration

This template allows you to monitor the expiration date of the target domain name by retrieving this information from the WHOIS web service API.


Prerequisites: None.

Credentials: Administrator credentials on Orion server.


Components Monitors

Domain Expiration

This component returns the number of days left before the target domain name will expire.

Note: This monitor returns the statistic only for domains from .com, .net or .edu root domains. Before using this monitor, the correct arguments should be provided:

domain_name
where
domain_name – full name of domain name.

Below is an example using the Scripts Arguments field:
solarwinds.com

Configuring Windows Remote Management (WinRM)

  1. If not already done so, install PowerShell 2.0 and WinRM on the SAM and target servers. Powershell 2.0 can be found here: http://support.microsoft.com/kb/968930.
  2. On the SAM server, open a command prompt as an administrator. To do this, perform the following step:
  • Go to the Start menu and right-click the cmd.exe and then select Run as Administrator.
  1. Enter the following in the command prompt:
           winrm quickconfig
    winrm set winrm/config/client @{TrustedHosts="*"}
  2. 4.     On the target server, open a command prompt as an Administrator and enter the following:
           winrm quickconfig
    winrm set winrm/config/client @{TrustedHosts="IP_ADDRESS"}

where IP address is the IP address of your SAM server.

Last updated 12/12/2014

  • We tried different domain name in the domain expiry template. below error has been spotted on it. check and suggest if any other source available to add domain expiry into monitoring.

    Output: ==============================================
    Message: Failed to get statistic for brightstar.com.

    Errors: ==============================================
    New-WebServiceProxy : The underlying connection was closed: The connection was closed unexpectedly.
    At line:11 char:12
    + $web = New-WebServiceProxy ‘www.webservicex.net/whois.asmx ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (www.webs...whois.asmx [New-WebServiceProxy], WebException
    + FullyQualifiedErrorId : WebException,Microsoft.PowerShell.Commands.NewWebServiceProxy

  • It looks like the script that drives this template is targeting a lookup API that is no longer functioning. The API is from a third party not affiliated with SolarWinds. There are probably other APIs out there and someone could probably edit this template relatively easily to make use of a different lookup. That being said this template in it's current state appears to be broken.

  • I will defer to jvb​ on this one, as he is now the Product Manager for SAM.

  • aLTeReGo

    Does this still work?  I'm getting a 404 when I test it against solarwinds.com. It looks like the whois wsdl no longer exists.

  • I am also using different template to monitor website cert expiration. I was looking for this template to monitor external domain expiration dates.

    We do receive email alert from vendor(registrar) but has a high risk of not renewing domain on time due to other high priority work. We have centralized team who works on alerts and getting them notified by 1 central tool (Orion) about domain expiration will be a great win...

    I am still looking to get answer from fellow members on how to use this template.. I have opened a case with support to get answer on my query (Case # 1112733 )