Added SSH tets.
Changed multiple replace with a regexp.
Removed useless istantiation of a shell for executing the checkproc
plugin.