I have created a Powershell script that emulates a telnet connection to an SMTP Server, the purpose of this is to check our SMTP gateway server to see if there is issue with sending mail. The script works the way I want it to and I have a good guild about using Powershell scripts in SCOM using the authoring console, what I am stuck on is how to trap the fact that when I send the helo command down and it takes longer that 10 seconds to respond and send an alert.
Any help with this would be greatly appreciated
If anyone knows of a better way of doing this then please let me know as I tend to think that how I have approached this is a bit convoluted. But I am pretty new to SCOM and still getting a feel for how things work.