i would like to create a monitor on F5 LB Pool which would monitor the presence of a file say test.txt on a NAS location, example path for search of file on node would be //NASServer01/ABC/test.txt. If the file test.txt would be present on NASServer01 then the monitor will keep the node status as UP otherwise will mark it as Down.
kindly help to share the steps for creating this monitor.
You can find configuration settings for an SMB (CIFS) monitor here. (This is for BIG-IP v13.1. Monitor Configuration References are available for other BIG-IP versions as well.)
Basically, you'll create a custom SMB monitor most likely using the F5-built-in SMB monitor as the parent. At a minimum, you'll need to configure the monitor with the name of the SMB server and the path/filename of the object you want to retrieve. If authentication is required, you can specify a user name and password.
You can then assign the monitor to the appropriate pool members (either individually or at the pool level). The monitor performs the health check at the specified Interval. If the check for the file is successful, the monitor will mark the assigned resource up (in other words, available for traffic processing). If the check for the file repeatedly fails (or if no response is received from the assigned resource) within the specified Timeout the monitor will mark the assigned resource down (unavailable for traffic processing).
Thank you for sharing the details, i did the setup but to access my NAS i don't have any username & password, what details should i enter in setting up a monitor with no username and password.
If authentication is not required, you can leave User Name and Password absolutely blank.
Thanks, and what should be the Service Name ?
If you use the link I provided in my original answer and use your browser to find the string "SMB monitor settings" you will find an explanation of all the parameters in an SMB/CIFS monitor. Service Name is optional and unique to your environment, if you decide it must be provided.