This will find all X.509 certificates from a specified issuer (wildcards allowed).
There are 3 arguments that need to be set.
- Issuer Name: I entered a 'SolarWinds' to find all X.509 certificates issued by SolarWinds. No need for wildcards as that is built into the script itself.
- Days until Warning: This should match the warning thresholds set on the component monitor itself. It only is needed here so the certificates that are expiring are entered into the script message output.
- Days until Critical:This should match the critical thresholds set on the component monitor itself. It only is needed here so the certificates that are expiring are entered into the script message output.
**Note: The Orion Agent is required unless you update the 'Execution Mode' in the component monitor to leverage WinRM/PowerShell Remoting**
The script argument line outlined in red below is what needs to be updated. **Remember, there needs to be a comma between each of the 3 entries.**
Depending on how permissions on setup, you will probably need to set the credentials for monitoring too.
Thanks to dcrh for the assist with DateTime globalization!
Top Comments