summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/gwlb.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index e8d6ba0..d8056c5 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -375,7 +375,8 @@ function return_gateway_groups_array() {
$backupplan[$tier][] = $gwname;
/* check if the gateway is available before adding it to the array */
- if (!empty($gateway_status[$gwname])) {
+ if (!empty($gateways_status[$gwname])) {
+ $status = $gateways_status[$gwname];
$gwdown = false;
if (stristr($status['status'], "down")) {
$msg = "MONITOR: {$gwname} has high latency, removing from routing group";
OpenPOWER on IntegriCloud