Unfortunately, I can't give you the exact answer for this, but I would think this could be done via a powershell script monitor in SAM. I would think that the script could perform the following:
- Run a netstat type command and record results in a .csv(or similar) file.
- Read the .csv file and find particular values(socket connections you want monitored)
- If required values aren't found, mark component as down(thus triggering the SAM component down Alert)
This link has powershell commands that may help you accomplish this:
Hopefully, someone else with more powershell knowledge can chime in here.