summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-12-29 14:20:45 -0500
committerjim-p <jimp@pfsense.org>2011-12-29 14:22:00 -0500
commit6c1e3a0caa9013e8395cc632d3d6c057b4312a4a (patch)
treeb178d69103f338d43f7726c4238dbe379297b512
parentaad163a9338995609363cdac0e97c606eeb58e9c (diff)
downloadpfsense-6c1e3a0caa9013e8395cc632d3d6c057b4312a4a.zip
pfsense-6c1e3a0caa9013e8395cc632d3d6c057b4312a4a.tar.gz
Clarify the potential pitfalls when setting the Frequency Probe and Down parameters.
-rwxr-xr-xusr/local/www/system_gateways_edit.php42
1 files changed, 28 insertions, 14 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index 0128ef2..e53f860 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -416,21 +416,35 @@ function monitor_change() {
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncellreq"><?=gettext("Down");?></td>
- <td width="78%" class="vtable">
- <input name="down" type="text" class="formfld unknown" id="down" size="2"
- value="<?=htmlspecialchars($pconfig['down']);?>">
- <br> <span class="vexpl"><?=gettext("This defines the down time for the alarm to fire, in seconds.");?></span></td>
- </td>
- </tr>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("Frequency Probe");?></td>
+ <td width="78%" class="vtable">
+ <input name="interval" type="text" class="formfld unknown" id="interval" size="2"
+ value="<?=htmlspecialchars($pconfig['interval']);?>">
+ <br><span class="vexpl">
+ <?=gettext("This defines how often that an icmp probe will be sent in seconds. Default is 1.");?><br/><br/>
+ <?=gettext("NOTE: The quality graph is averaged over seconds, not intervals, so as the frequency probe is increased the accuracy of the quality graph is decreased.");?>
+ </span></td>
+ </td>
+ </tr>
<tr>
- <td width="22%" valign="top" class="vncellreq"><?=gettext("Frequency Probe");?></td>
- <td width="78%" class="vtable">
- <input name="interval" type="text" class="formfld unknown" id="interval" size="2"
- value="<?=htmlspecialchars($pconfig['interval']);?>">
- <br> <span class="vexpl"><?=gettext("This defines the frequency in seconds that an icmp probe will be sent. Default is 1 second.");?></span></td>
- </td>
- </tr>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("Down");?></td>
+ <td width="78%" class="vtable">
+ <input name="down" type="text" class="formfld unknown" id="down" size="2"
+ value="<?=htmlspecialchars($pconfig['down']);?>">
+ <br> <span class="vexpl"><?=gettext("This defines the number of bad probes before the alarm will fire. Default is 10.");?></span></td>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <?= gettext("NOTE: The total time before a gateway is down is the product of the Frequency Probe and the Down fields. By default this is 1*10=10 seconds."); ?><br/>
+ <?php if (is_numeric($pconfig['interval']) || is_numeric($pconfig['down'])) {
+ echo "<br/>";
+ $interval = is_numeric($pconfig['interval']) ? $pconfig['interval'] : 1;
+ $down = is_numeric($pconfig['down']) ? $pconfig['down'] : 10;
+ echo gettext(sprintf("With the current configuration, the total time before this gateway would be considered down would be: %d*%d=%d seconds.", $interval, $down, $interval*$down));
+ } ?>
+ </td>
+ </tr>
</table>
</div>
</td>
OpenPOWER on IntegriCloud