Processing Ajax...

View Message
Close Dialog

Forward Message
Close Dialog

Separate email addresses with commas or semicolons.

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

If you have websites for which you maintain the SSL certificates, this PowerShell script will help more efficiently monitor the expiration status of those certificates. The script can be run from anywhere, as it connects to the public URL for the website, and it will email the results wherever you like. This help guide shows how to configure the script to email the results to CheckCentral and create a companion Check to automate the status parsing.
    Checks can be added from various locations in the CheckCentral interface, from the Dashboard, Checks page, Activity page, and the Check Group details page.
  1. Wherever you are, begin by clicking "
    Add Check
    ."
    Add Check
  2. Select "Start Fresh," and click "Start."
    Create Check
  3. Name the Check. It can be whatever you like, for example
    Website Certificate Expiry Check
    .
  4. Select an existing Check Group or create a new one by clicking
    Check Group icon
    Add Check Group
    .
  5. Select an existing Label or create a new one by typing the name in the text field of the dropdown. (optional)
  6. Add a description (optional).
  7. The Asset ID is used exclusively with certain ticketing systems and is not required for Checks. Asset ID details and ticketing systems are more fully covered by other documents (e.g. Halo Integration (asset ID).)
  8. Leave the Asset ID blank.
  9. Your Check so far will look something like this:
    Step 1: Identification
    Navigate to the next step in CheckCentral by clicking the "Next" button or the tab name.
  10. Leave "Scheduled" selected as we will be running the script regularly.
  11. Assuming you'll run the script daily, leave the Expected Interval on "1" "Day(s)." If you plan to run the script on another interval, adjust accordingly.
  12. The initial expectation time is set by the first email message that is received and processed by its Check. (For example, if a notification email arrives at noon and its Check is set for every half hour, it will expect another notification email at 12:30.)
  13. Leave the Set as Overdue setting at "After 30 Minutes." If the script notification email is not received after this amount of time has been exceeded, the Check will be marked as a failure.
  14. Leave Custom Schedule de-selected.
    Step 2: Schedule
    The Matching step is what matches a notification email to its specific Check. It's also where you'll set the notification's CheckCentral destination email. For CheckCentral to parse notification emails, they must be sent to a "mycheckcentral.cc" address. By default, the email address is [your organization name]@mycheckcentral.cc.
    A more unique email address is created using the name given to the Check (with white spaces removed).
  15. Leave the default selections enabled.
  16. Copy the unique email address for later use by clicking on the Copy icon
    Copy icon
    .
  17. Do not add any matching rules. The unique email address is sufficient.
    Step 3: Matching
    The email address will appear different based on your organization name and the name you specified for your check.
    The previous Matching step identifies the incoming email to the Check. The Status step looks for indicators of what type of notification you're receiving (e.g. The job was successfully run, it failed, or there were some issues.) The configuration options you choose can vary considerably, but the approach is the same. The Default Status is what is set when the other Rules in this step don't match. Criteria for the remaining statuses then need to be defined, requiring their own unique one-to-one matches.
  18. Leave the Default Status on "Failure."
  19. The "Success Criteria" section is where you'll set the criteria that will mark an activity as successful.
  20. Click
    Add Success Rule
    .
  21. A successful run (no certificates expired or expiring soon) of the script will have the word "SUCCESS" in the email Subject.
  22. Set the rule to "Subject contains SUCCESS" by leaving the default dropdown selections and typing
    SUCCESS
    (all caps) in the empty text field.
  23. The "Warning Criteria" section is where you'll set the criteria that will mark an activity with a warning.
  24. Click
    Add Warning Rule
    .
  25. Step 4: Status
    A warning result (certificate(s) expiring soon) from the script will have the word "WARN" in the email Subject.
  26. Set the rule to "Subject contains WARN" by leaving the default dropdown selections and typing
    WARN
    (all caps) in the empty text field.
  27. Leave the Condense Whitespace and Combine Attachments checkboxes enabled.
    Notification Fields
    Notifications are simply how you want to be informed of Check Failures, Warnings, and some other Status changes.
    Email, push, chat and other software can be integrated as well as ticketing systems, allowing for automatic ticket creation and management.
    Further configuration is required for each to function and is done via the Notifications tab in the main menu. They can be configured before or after Check creation.
    For more understanding of Notification setup, see the CheckCentral Beginner's Guide (Notifications).
  28. Select the desired means of Notification. If in doubt of the selections here, leave the defaults.
  29. From the Save tab, click the "Save Check" button.
  30. With the Check configured in CheckCentral, you need to install the script onto a machine (where it will regularly run).
  31. Download the script: CheckWebsiteCertExpiry.zip.
  32. Extract it somewhere on the computer (e.g. C:\Scripts). There will be three files: CheckWebsiteCertificateExpiry.ps1, createScheduledTask.ps1, and websites.txt
  33. Edit the websites.txt file to contain the list of websites you want the script to check. Save it. Make sure to put one URL on each line.
  34. Open a PowerShell console and run the script to make sure it works. For example:

    Code

    .\CheckWebsiteCertExpiry.ps1 -Websites (Get-Content websites.txt) -EmailFromAddress {Email From Address} -EmailToAddress {Check Email Address}
  35. Refresh the Check page or Dashboard to see the new Activity for your Check.
  36. You're ready to set up the Windows Scheduled Task so the script will automatically run each day.
  37. First, edit the parameters at the top of the CreateScheduledTask.ps1 script and save the changes.
  38. You'll see the new Scheduled Task in the Windows Task Scheduler. Run it and verify that a second Activity shows up in the CheckCentral Check.
  39. Test
For more detail on Check creation and best practices, see our Check Creation Guide.
For other guides and support contact information, see CheckCentral Support
CheckCentral Monitoring consolidates and simplifies backup, system, and software email updates into a clean, graphical dashboard, bringing peace of mind to IT administrators of SMBs, Enterprises, and MSPs.
To learn more about CheckCentral, visit: https://www.checkcentral.cc
Binary Fortress has spent 15 years in pursuit of one goal: create software to make life easier. Our software ranges from display management and system enhancement utilities to monitoring tools and digital signage. IT administrators, professional gamers, coffee-shop owners, and MSPs all rely on Binary Fortress to make their days better, and their lives easier.
Copyright © 2007-2022 Binary Fortress Software, all rights reserved.
The Binary Fortress logo is a trademark of Binary Fortress Software.
The CheckCentral logo is a trademark of Binary Fortress Software.
Binary Fortress Software
1000 Innovation Drive, Suite 500
Kanata, Ontario, Canada
K2K3E7
https://www.binaryfortress.com