summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_gateways.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-12-07 21:22:17 +0545
committerRenato Botelho <renato@netgate.com>2016-12-07 16:07:24 -0200
commitbb0a0bb2648b08ce5453208753e25fb052b16f12 (patch)
tree610464bad9b890b75411364ccf83a39060914f62 /src/usr/local/www/status_gateways.php
parentc7cecab8518d62f4cc619ffc7bbbba7ba2a0ceb8 (diff)
downloadpfsense-bb0a0bb2648b08ce5453208753e25fb052b16f12.zip
pfsense-bb0a0bb2648b08ce5453208753e25fb052b16f12.tar.gz
Feature #3151 Disable gateway monitoring actions
without disabling gateway monitoring. This allows the user to continue to monitor the gateway with dpinger, so they can see how it is performing, but for the system not to take any real action if the latency/loss exceeds the given limits. A typical use case for this would be on a single-WAN system. There is no failover option, so there is no point taking any real action when the latency/loss is high. Having stuff try to failover (and stop/start stuff...) is just disruptive. In ths case the use could have disabled monitoring completely, but then they get no feedback abut gateway performance. (cherry picked from commit f396d2b715b27312c9bc056b3423db8198f7d52a)
Diffstat (limited to 'src/usr/local/www/status_gateways.php')
-rw-r--r--src/usr/local/www/status_gateways.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/local/www/status_gateways.php b/src/usr/local/www/status_gateways.php
index cfe358d..f4f3680 100644
--- a/src/usr/local/www/status_gateways.php
+++ b/src/usr/local/www/status_gateways.php
@@ -159,9 +159,15 @@ display_top_tabs($tab_array);
} elseif (stristr($status['status'], "down")) {
$online = gettext("Offline");
$bgcolor = "bg-danger";
+ } elseif (stristr($status['status'], "highloss")) {
+ $online = gettext("Danger, Packetloss") . ': ' . $status['loss'];
+ $bgcolor = "bg-danger";
} elseif (stristr($status['status'], "loss")) {
$online = gettext("Warning, Packetloss") . ': ' . $status['loss'];
$bgcolor = "bg-warning";
+ } elseif (stristr($status['status'], "highdelay")) {
+ $online = gettext("Danger, Latency") . ': ' . $status['delay'];
+ $bgcolor = "bg-danger";
} elseif (stristr($status['status'], "delay")) {
$online = gettext("Warning, Latency") . ': ' . $status['delay'];
$bgcolor = "bg-warning";
OpenPOWER on IntegriCloud