In NetScaler MAS, you need to manually add the details of the host on which you have provisioned the HAProxy instance. After you add those details, NetScaler MAS automatically discovers the HAProxy instances provisioned on the host and adds them to NetScaler MAS Inventory. It also discovers all the frontends, backends, and servers configured on the HAProxy instances, and treats the frontends as discovered applications.
1. In a web browser, type the IP address of the NetScaler Management and Analytics System (for example, http://192.168.100.1).
2. In the User Name and Password fields, enter the administrator credentials. The default administrator credentials are nsroot and nsroot.
3. Navigate to Networks > Instances. Under Instances, select HAProxy and click Add.
4. In the Add HAProxy Host dialog box, do the following:
a. In the IP Address field, enter the IP address of the host on which you have provisioned the HAProxy instances.
b. In the HAProxy Profile drop-down list, select an existing HAProxy profile or create and select a new HAProxy profile. To create an HAProxy profile, click the + icon.
c. In the Add HAProxy Profile dialog box, do the following:
i. In the Profile Name field, enter the profile name.
ii. In the User Name field, enter the user name of the host.
iii. In the SSL Authentication section, if you want the NetScaler MAS to use SSH key based authentication to access the host, do the following:
a. In the Private Key field, enter the generated SSH private key.
b. In the Passphrase field, enter the passphrase of the SSH private key.
If you want NetScaler MAS to use the host password to access the host, enter the host password in the Password field.
iv. Click Create.
d. Click OK.
NetScaler MAS discovers the HAProxy instances provisioned on the host, and you can view all the HAProxy instances on the Instances tab.
To view the configuration of an HAProxy instance in NetScaler MAS, navigate to Networks > Instances > HAProxy and, on the, Instances tab, select the HAProxy instance and click View Configuration.