aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-08 22:59:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-08 22:59:00 +0000
commit90e49b5d1125b143f29c84b0adbdb114e9d853a4 (patch)
treeaa3017da5beb9121050048544519e7413443ea98
parent132e6d8966ae9b60791b5bab16c11f473a0be137 (diff)
downloadpfsense-packages-90e49b5d1125b143f29c84b0adbdb114e9d853a4.tar.gz
pfsense-packages-90e49b5d1125b143f29c84b0adbdb114e9d853a4.tar.bz2
pfsense-packages-90e49b5d1125b143f29c84b0adbdb114e9d853a4.zip
Add millisecond ping failover threshold
-rw-r--r--packages/tinydns/tinydns.inc6
-rw-r--r--packages/tinydns/tinydns_domains.xml6
2 files changed, 11 insertions, 1 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 3dfefa28..501ba8d9 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -209,7 +209,11 @@ function tinydns_setup_ping_items() {
fwrite($fd, $ip . "|" . $domain['ipaddress'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php\n");
if($domain['row']) {
foreach($domain['row'] as $row) {
- fwrite($fd, $ip . "|" . $row['failoverip'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php\n");
+ if($row['pingthreshold'])
+ $pingthreshold = $row['pingthreshold'];
+ else
+ $row['pingthreshold'] = "";
+ fwrite($fd, $ip . "|" . $row['failoverip'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php|{$pingthreshold}\n");
}
}
}
diff --git a/packages/tinydns/tinydns_domains.xml b/packages/tinydns/tinydns_domains.xml
index c2fd37f1..907d77e8 100644
--- a/packages/tinydns/tinydns_domains.xml
+++ b/packages/tinydns/tinydns_domains.xml
@@ -90,6 +90,12 @@
<description>Adds this member to active group when host is alive.</description>
<type>checkbox</type>
</rowhelperfield>
+ <rowhelperfield>
+ <fielddescr>Ping threshold</fielddescr>
+ <fieldname>pingthreshold</fieldname>
+ <description>When the MS time is surpassed, item will failover to next host</description>
+ <type>input</type>
+ </rowhelperfield>
</rowhelper>
</field>
</fields>