summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <ermal.luci@gmail.com>2012-11-18 12:35:35 -0800
committerErmal Luçi <ermal.luci@gmail.com>2012-11-18 12:35:35 -0800
commit126f3edd31c5b6dff9398d0d4a48a031025f7512 (patch)
tree3681446efff97b4915d32219e7669fb923b3f153
parent3d999ea72f7e9e3916055f4007e71349c31d29fc (diff)
parent50006cca56319a3ba5a1fafba0c9e00ded3d962b (diff)
downloadpfsense-126f3edd31c5b6dff9398d0d4a48a031025f7512.zip
pfsense-126f3edd31c5b6dff9398d0d4a48a031025f7512.tar.gz
Merge pull request #261 from PiBa-NL/gateway
gateway monitoring, notifications generated tell affected gateway/group
-rw-r--r--etc/inc/gwlb.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 1068e48..15e070a 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -747,15 +747,15 @@ function return_gateway_groups_array() {
$status = $gateways_status[$gwname];
$gwdown = false;
if (stristr($status['status'], "down")) {
- $msg = sprintf(gettext("MONITOR: %s is down, removing from routing group"), $gwname);
+ $msg = sprintf(gettext("MONITOR: %s is down, removing from routing group {$group['name']}"), $gwname);
$gwdown = true;
} else if (stristr($status['status'], "loss") && strstr($group['trigger'], "loss")) {
/* packet loss */
- $msg = sprintf(gettext("MONITOR: %s has packet loss, removing from routing group"), $gwname);
+ $msg = sprintf(gettext("MONITOR: %s has packet loss, removing from routing group {$group['name']}"), $gwname);
$gwdown = true;
} else if (stristr($status['status'], "delay") && strstr($group['trigger'] , "latency")) {
/* high latency */
- $msg = sprintf(gettext("MONITOR: %s has high latency, removing from routing group"), $gwname);
+ $msg = sprintf(gettext("MONITOR: %s has high latency, removing from routing group {$group['name']}"), $gwname);
$gwdown = true;
}
if ($gwdown == true) {
@@ -772,7 +772,7 @@ function return_gateway_groups_array() {
if($tiers_count == 0) {
/* Oh dear, we have no members! Engage Plan B */
if (!$g['booting']) {
- $msg = gettext("Gateways status could not be determined, considering all as up/active.");
+ $msg = gettext("Gateways status could not be determined, considering all as up/active. (Group: {$group['name']})");
log_error($msg);
notify_via_growl($msg);
notify_via_smtp($msg);
OpenPOWER on IntegriCloud