Check Certificate Expiration by PowerShell (Service Check)
  • 15 Jan 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Check Certificate Expiration by PowerShell (Service Check)

  • Dark
    Light
  • PDF

Article Summary

Service Check Category: Web Checks

Passive: No

Description: Connects to the host to which it is applied using PowerShell (using the credentials configured for the device) and searches the certificate repository for all certificates that expire within the user-configured number of days. Root and intermediate certificates are also checked.

This service check examines all certificates in the repository. Individual certificates cannot be specified.

Check-specific Fields:
(See Service Check for configuration parameters common to all service checks.)

  • EXPIRES WITHIN (DAYS)
    The check enters the CRITICAL state when there are any certificates which expire within this number of days.
  • CERTIFICATE PATH
    The path to the local certificate repository using the format cert:\LocalMachine\\'.$path.'
  • DESCRIPTION
    (Required) This field specifies a name for this check. The name entered must be unique among service check names on the host it is added to (the name may used again only on a different host). It is used to identify this specific check from among other service checks added to the same host.

Was this article helpful?