Révision b22f436a
Ajouté par Chris Buechler il y a plus de 9 ans
etc/inc/gwlb.inc | ||
---|---|---|
822 | 822 |
$status = $gateways_status[$gwname]; |
823 | 823 |
$gwdown = false; |
824 | 824 |
if (stristr($status['status'], "down")) { |
825 |
$msg = sprintf(gettext("MONITOR: %s is down, removing from routing group {$group['name']}"), $gwname);
|
|
825 |
$msg = sprintf(gettext("MONITOR: %s is down, omitting from routing group {$group['name']}"), $gwname);
|
|
826 | 826 |
$gwdown = true; |
827 | 827 |
} else if (stristr($status['status'], "loss") && strstr($group['trigger'], "loss")) { |
828 | 828 |
/* packet loss */ |
829 |
$msg = sprintf(gettext("MONITOR: %s has packet loss, removing from routing group {$group['name']}"), $gwname);
|
|
829 |
$msg = sprintf(gettext("MONITOR: %s has packet loss, omitting from routing group {$group['name']}"), $gwname);
|
|
830 | 830 |
$gwdown = true; |
831 | 831 |
} else if (stristr($status['status'], "delay") && strstr($group['trigger'] , "latency")) { |
832 | 832 |
/* high latency */ |
833 |
$msg = sprintf(gettext("MONITOR: %s has high latency, removing from routing group {$group['name']}"), $gwname);
|
|
833 |
$msg = sprintf(gettext("MONITOR: %s has high latency, omitting from routing group {$group['name']}"), $gwname);
|
|
834 | 834 |
$gwdown = true; |
835 | 835 |
} |
836 | 836 |
if ($gwdown == true) { |
Formats disponibles : Unified diff
s/removing/omitting/g for gateway monitor log entires. "Removing" is not necessarily correct, there are many circumstances where this runs where it wasn't there to begin with, and is potentially misleading.