FTP/FTPS Health Monitor

Overview

The FTP/FTPS health monitor is used to monitor the health of the FTP servers configured as pool members. A file will be downloaded from the server. On successful download, the server is marked as Up. If the file transfer fails, the server is marked down.

This article explains about the options available to configure the FTP/ FTPS health monitor.

Configuring the FTP/FTPS Health Monitor

To configure the FTP/ FTPS health monitor define the following fields:

Field Description Optional/ Mandatory
Filename Enter the filename of the file that has to be downloaded, including the full path. For example, ftp/testfile.txt Mandatory
Mode Select the data transfer modes (active/ passive). By default, passive mode is selected.
  • Port mode (Active mode): The client sends port to the server on which the data connection can be established. It tells the server the same using the PORT <port-num> command on the control connection.
  • In the passive mode, the client sends PASV command to server on the control connection. In response, the server sends IP and port where the data connection can be established
Optional
Username Enter the username if the FTP server requires authentication Optional
Password Enter the password for the user account if the FTP server requires authentication Optional
SSL Attributes Enter SSL Attributes in case of FTPS health monitor Mandatory for FTPS Health Monitor

Note: Currently FTP/FTPS health monitor can be configured only using the CLI.

A sample configuration of the FTP health monitor is as shown below:

 
[admin:avi-controller]: > configure healthmonitor ftp-hm
[admin:avi-controller]: healthmonitor> type health_monitor_ftp
[admin:avi-controller]: healthmonitor> authentication username aviuser
[admin:avi-controller]: healthmonitor:authentication> password xyz123
[admin:avi-controller]: healthmonitor:authentication> save
[admin:avi-controller]: healthmonitor> ftp_monitor filename ftp/ftptest
[admin:avi-controller]: healthmonitor:ftp_monitor> save
[admin:avi-controller]: healthmonitor> save


Note: Ensure that an SSL Profile exists prior to configuring the FTPS health monitor.
An FTPS health monitor can be configured as shown below:


[admin:avi-controller]: > configure healthmonitor ftps-hm
[admin:avi-controller]: healthmonitor> type health_monitor_ftps
[admin:avi-controller]: healthmonitor> authentication username aviuser
[admin:avi-controller]: healthmonitor:authentication> password xyz123
[admin:avi-controller]: healthmonitor:authentication> save
[admin:avi-controller]: healthmonitor> ftps_monitor filename ftp/ftptest
[admin:avi-controller]: healthmonitor:ftps_monitor> ssl_attributes ssl_profile_ref System-Standard
[admin:avi-controller]: healthmonitor:ftps_monitor:ssl_attributes> save
[admin:avi-controller]: healthmonitor:ftps_monitor> save
[admin:avi-controller]: healthmonitor> save

The following are the SSL configurations that can be used for FTPS health monitor:

  • SSL Profile — Select an existing SSL Profile or create a new one, as required. This defines the ciphers and SSL versions to be used for the health monitor traffic to the backend servers.

  • PKI profile — Select an existing PKI profile or create a new one, as required. This will be used as to validate the SSL certificate presented by the server.

  • SSL key and certificate — Select an existing SSL Key and Certificate or create a new one, as required.