Create Custom Monitor for monitoring VIDM Service from Load Balancer
We can create custom monitor and response that can be configured at Network Load balancer Level to determine if VIDM service is up or not.
We can create our custome string that Load balancer will monitor and if unable to get response conclude that service is not available hence stop passing the traffic to the node where service is down.
Follow below steps to configure custom monitors:
Login to VIDM connector/ UI appliance which needs to be monitored for service availability.
navigate to /opt/vmware/horizon/workspace/webapps
Create A directory using command mkdir monitor and change permissions with command
chmod 755 monitor
Go inside newly created directory and create new Index.html file using commands
cd monitor
vi index.html >>>>>>>> and type "service is up" in index.html file, Press Esc and type :wq! to save file
type cat index.html to verify the string inside index.html file.
change permission on this file using command chmod 755 index.html
This is how you can create custom monitor string at vidm appliance level . String will not send proper response if service is down.
Open https://hostname/monitor to get string response as "service is running"
Ask your Network Load balancer administrator to configure This string as response from VIDM while setting up the monitor.
This is how you can configure custom monitors to track your service from NLB end and pass traffic accordingly.