summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-07-28 20:52:08 +0000
committerErmal <eri@pfsense.org>2011-07-28 20:56:38 +0000
commitf720398561237cf0032d41f83c35e443d2acaf66 (patch)
tree4d11deb0e03443fa53277eefd3c7edc6b1b8c1bc /etc/inc/gwlb.inc
parent6d1ae23c9e8966f55205a2522e079e9f392d56c2 (diff)
downloadpfsense-f720398561237cf0032d41f83c35e443d2acaf66.zip
pfsense-f720398561237cf0032d41f83c35e443d2acaf66.tar.gz
Add an override for default interval to send icmp
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 6b54c07..e26adb1 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -160,6 +160,8 @@ EOD;
$apingercfg = "target \"{$gateway['monitor']}\" {\n";
$apingercfg .= " description \"{$name}\"\n";
$apingercfg .= " srcip \"{$gwifip}\"\n";
+ if (!empty($gateway['interval']) && intval($gateway['interval']) > 1)
+ $apingercfg .= " interval " . intval($gateway['interval']) . "s\n";
$alarms = "";
$alarmscfg = "";
$override = false;
OpenPOWER on IntegriCloud