diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2012-11-18 00:32:50 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2012-11-18 14:20:04 +0100 |
commit | 50006cca56319a3ba5a1fafba0c9e00ded3d962b (patch) | |
tree | f22243eca8dec194a936ccc71eb6c820cb1b3393 /etc/inc | |
parent | b4227df690fb7a989ead9b3928ebaaaa34b495eb (diff) | |
download | pfsense-50006cca56319a3ba5a1fafba0c9e00ded3d962b.zip pfsense-50006cca56319a3ba5a1fafba0c9e00ded3d962b.tar.gz |
gateway monitoring, make the notifications generated clear to tell which gateway/group they are about
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/gwlb.inc | 8 |
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); |