I appears from searching the boards, that their have been requests dating back to 2009 for SFTP experience monitoring. Is anybody doing this in their environment now with a work around?
SAM does not as yet have an SFTP/FTPS User Experience Monitor but it should be possible to create your own using something like Putty through a SAM script monitor.
http://stackoverflow.com/questions/8556241/call-multiple-commands-from-powershell-e-g-psftp
Adding a SFTP/FTPS User Experience Monitor in SAM is a feature request I've logged under FB87976
How would you recommend I return a statistic?
The statistic returned could be the time taken to complete the transfer, or how long it took the script to run. Maybe even how large the file is. The choice is up to you. The script exit code is was determines if the script completed successfully or not, so you'll need to ensure you map the failure/success of your script to the appropriate exit codes listed below.
Exit Code
Meaning
0
Up
1
Down
2
Warning
3
Critical
Any other value
Unknown
The script statistic and optional message return format must be structured in the following format (example below). You can return a maximum of 10 statistic and message pairs as the result of a single script, but the minimum requirement is at least one statistic in the "statistic.1:X" format.
If you need assistance getting the sample script I provided above working with SAM, I recommend asking community members in the Thwack forum.