Quantcast
Channel: THWACK: All Content - Server & Application Monitor
Viewing all articles
Browse latest Browse all 12281

PowerShell Monitor - (Uninstalled) Certificate Expiration Monitor

$
0
0

I have a scenario where I need to monitor uninstalled certificates for expiration, so the standard certificate expiration monitor in Orion won't do the trick. Instead, I'm treating the certificate like a text file, and simply parsing out the line containing the expiration date. This then compares the parsed expiration date to todays date, and then checks for warning or critical days away from expiration. This also uses SAM exit codes for monitor status (I think they work correctly this time).

 

The script could be adapted for just about any file type where you can read the contents using powershell.

 

Parameters are: [file path],[warning days],[critical days]

example parameter: \\${IP}\c$\Program Files\Directory\client.crt,30,15


Viewing all articles
Browse latest Browse all 12281

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>