Forum Discussion
riverj30_77570
Nimbostratus
Jun 13, 2012Health Monitor for UNIX
Hi All,
How would I go about creating a health monitor based on the contents of a file on a unix server
thank you
4 Replies
- hoolio
Cirrostratus
Hi,
Which protocol(s) are you load balancing for the Unix servers?
The most efficient option from an LTM perspective would be to make the file available via HTTP and then use a stock HTTP monitor to check the file contents.
Or you could create a script which accesses the file via SSH or NFS and then call that script from an external monitor. Here's a template you could start with:
http://devcentral.f5.com/wiki/AdvDesignConfig.TemplateForExternalLtmMonitors.ashx
Aaron - riverj30_77570
Nimbostratus
Thanks for the link...I will take a look at it.
I think the external script option is the way to go... below is the syntax of the script I would like to use
ssh -password "passwordhere" user@serverip cat file.txt - riverj30_77570
Nimbostratus
i noticed the the F5 does not support the use of -password... i will need to use sshpass to provide the password on my script.
has anyone install the sshpass rpm on an F5? - smp_86112
Cirrostratus
You can do this without using a password by using public/private keys. Create a SSH keypair, put the public key on the target system, then use ssh -i on the LTM.
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
