Forum Discussion
Ken_B_50116
Jun 14, 2012Cirrostratus
Health monitor that will read the contents of a text file via SMB?
Is it possible to construct a health monitor that will either read the contents of a text file at OR just look for the existence of a file at ?
The SMB monitor appears to only deal with checking the SMB service itself, and not actually reading a file.
What I need is a way for a less technical user to take a server out of a pool by causing the health check fail/pass by editing the contents of a file to include/remove a certain keyword, or just create/remove the file itself. Assume the servers in the pool are Windows-based servers.
The LTMs are running 10.2.1
Thanks!
- mkahler_108475Historic F5 AccountI've been trying to set up samba to test this. 9.x used to have smbclient and I contructed an external monitor using that command. It appears that binary is gone. But I did find smbget on my 10.2.x. There is no man page. But simple help is "smbget --help". I have not gotten this to work as I do not have Windows servers. If you can get to your shares using smbget, you would have to create an external monitor script. DevCentral has plenty of examples of external monitors. Or the LTM manual if you search AskF5 for Extended Application Verification".
- Ken_B_50116CirrostratusYes, that's a good idea. I hadn't thought of leveraging any native SMB capatiblity on the F5, but it makes sense. Thanks!
- hooleylistCirrostratusThere's a builtin SMB monitor that checks for the existence of a file. If you have issues with that or need to check the contents you can use this external monitor example:
- Bill_Kelly_5003NimbostratusHi all,
- hooleylistCirrostratusHi Bill,
- Bill_Kelly_5003NimbostratusThanks, Aaron...I'll see what our 3rd party/reseller/whatever support vendor says...
- Birddog_17215Nimbostratus
Bill,
I have found that F5 has placed the smb utilities back into 11.4. I have also been able to get the external monitor Aaron mentions working to Samba.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects