Forum Discussion
Brandon_TN
Nimbostratus
Jul 17, 2025failover issue between datacenters with GSLB
Ok I have been looking for the best solution for an application requirement. I have an app that will be living in two datacenters. Each location has 4 servers running. What they want is the appl...
Injeyan_Kostas
Nacreous
Jul 18, 2025here is an example
#!/bin/bash
POOL="Your_Pool_name"
THRESHOLD=2
UP_COUNT=$(tmsh show ltm pool $POOL members | grep "Available Members" | awk '{print $4}')
echo "[$(date)] Pool $POOL has $UP_COUNT members up" >> /var/log/pool_monitor.log
if [ "$UP_COUNT" -lt "$THRESHOLD" ]; then
echo "[$(date)] Pool DOWN: Only $UP_COUNT members up" >> /var/log/pool_monitor.log
exit 1
else
echo "[$(date)] Pool UP: $UP_COUNT members up" >> /var/log/pool_monitor.log
echo "Pool is healthy"
exit 0
fi
Injeyan_Kostas
Nacreous
Aug 12, 2025Hello Brandon_TN
Did you managed to test it?
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