summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-09-24 11:53:56 +0200
committerErmal <eri@pfsense.org>2014-09-24 11:53:56 +0200
commita99547e47e2db663f611fa564350275f86615d80 (patch)
tree378bb07508d00b55f48714627a142e3f7a83b2aa /etc/inc/gwlb.inc
parent73b8c1623bfada61551e8d8cb996f2e611b10240 (diff)
downloadpfsense-a99547e47e2db663f611fa564350275f86615d80.zip
pfsense-a99547e47e2db663f611fa564350275f86615d80.tar.gz
Provide a toggle for apinger debug messages to be logged to syslog. To help with roubleshooting issues
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