From 0c5d4e8d3e4dc81a9c7eb883a40296493e9faa2b Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 5 Jan 2017 13:42:22 +0545 Subject: Correctly report unmonitored gateway status If an alternate monitor IP has been entered and saved, then the user checks "Disable Gateway Monitoring" and saves, the alternate monitor IP is retained in the config - that is handy for when unchecking "Disable Gateway Monitoring" later on. But the Gateways widget and Status Gateways do not correctly understand this combination. The gateway status shows as "Online" when it is intended to show "Online (unmonitored)". This PR corrects this. --- src/etc/inc/gwlb.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/etc/inc/gwlb.inc') diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index b240c12..fdb0151 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -466,6 +466,8 @@ function return_gateways_status($byname = false) { $status[$target]['loss'] = ""; $status[$target]['status'] = "none"; } + + $status[$target]['monitor_disable'] = true; } return($status); } -- cgit v1.1