Forum Discussion
artl2377_166103
Nov 26, 2014Nimbostratus
iRule to monitor dependant servers
Hi iRule noob ... Is it possible to construct a cunning iRule which monitors servers that are not in a pool, but the servers IN the pool are dependent on these downstream servers [I think Oracle db] ...
Andreas_Lampre1
Nov 26, 2014Nimbostratus
Another possibility is to write a healthcheck in whatever language on the web/application server, which also checks the backend database and use this healthcheck on the pool. Then, your backend server will be active only when also the database is OK.
So, for example:
- F5 does a HTTP healthcheck and requests /health_check.php every 5 seconds.
- On the backend server, the PHP-script health_check.php performs a simple DB request. If it's ok, the script returns "ALL OK", if it fails, the script writes "NOT OK".
- F5 healthcheck looks for "ALL OK" in server's response. If it's there, then the pool member is active, if not, then member is disabled.
- artl2377_166103Dec 07, 2014NimbostratusThanks but I need to keep the monitoring local to the F5 - the servers and how they operate are controlled by another company.
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