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