Forum Discussion
Mike_Schiltz_64
Nimbostratus
Sep 30, 2005developing monitors to start services
We have applications developed by our company (Tideworks) that are not cluster aware. The architecture is client server, and we want to use BigIp to direct traffic to the primary, and only to the sec...
Deb_Allen_18
May 24, 2006Historic F5 Account
You can build a simple shell script and apply it as an external monitor to kick off a server-side script on node failure.
Sample monitor may be found on the LTM filesystem @ /usr/bin/monitors/sample_monitor
If you build it to accept the IP address of the other server in as a variable, you can use the same monitor for both nodes.
I'd recommend using a status file written to /var/run to maintain awareness between script instances of the last known status, so we are only kicking off the startup/shutdown scripts on status change.
You'll probably also want to have only the Active unit kick off the startup/shutdown scripts. (Or you could have only the Active unit run the whole script by inserting a conditional exit near the beginning of the script.)
HTH
/deb
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
