Skip to content

SFTP

SFTP Monitor in MCT is a type of synthetic check that assesses the health and performance of SFTP servers. This monitor simulates connections to SFTP servers using sshpass, downloads a file if it does not exist locally, and deletes it after checking. It will call out a failure if the download was unsuccessful.

label: language:python; os:alma8

Configuration

Required

  • serverIP: the IP address of the SFTP server
  • port: the port to use for the SFTP connection
  • username: the username to use for authentication
  • password: the password to use for authentication
  • remoteFilePath: the path of the file on the SFTP server
  • logpath: the path to the log file on the local server

Optional

  • Command: the SFTP command to execute for health check, default is ls
  • Expected Response: the expected response from the SFTP command, default is .

Source Code