summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 33b20cd..c5121fe 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -44,7 +44,7 @@ function return_apinger_defaults() {
"avg_delay_samples" => "10",
"avg_loss_samples" => "50",
"avg_loss_delay_samples" => "20");
- }
+}
/*
* Creates monitoring configuration file and
@@ -61,11 +61,17 @@ function setup_gateways_monitor() {
return;
}
+ $apinger_debug = "";
+ if (isset($config['system']['apinger_debug']))
+ $apinger_debug = "debug on";
+
$apinger_default = return_apinger_defaults();
$apingerconfig = <<<EOD
# pfSense apinger configuration file. Automatically Generated!
+{$apinger_debug}
+
## User and group the pinger should run as
user "root"
group "wheel"
OpenPOWER on IntegriCloud