$input_errors[]=gettext(sprintf("The low latency threshold needs to be less than the default high latency threshold (%d)",$apinger_default['latencyhigh']));
$input_errors[]=gettext(sprintf("The low latency threshold needs to be less than the default high latency threshold (%d)",$apinger_default['latencyhigh']));
$input_errors[]=gettext(sprintf("The high latency threshold needs to be higher than the default low latency threshold (%d)",$apinger_default['latencylow']));
$input_errors[]=gettext(sprintf("The high latency threshold needs to be higher than the default low latency threshold (%d)",$apinger_default['latencylow']));
$input_errors[]=gettext(sprintf("The low Packet Loss threshold needs to be less than the default high Packet Loss threshold (%d)",$apinger_default['losshigh']));
$input_errors[]=gettext(sprintf("The low Packet Loss threshold needs to be less than the default high Packet Loss threshold (%d)",$apinger_default['losshigh']));
$input_errors[]=gettext(sprintf("The high Packet Loss threshold needs to be higher than the default low Packet Loss threshold (%d)",$apinger_default['losslow']));
$input_errors[]=gettext(sprintf("The high Packet Loss threshold needs to be higher than the default low Packet Loss threshold (%d)",$apinger_default['losslow']));
}
}
}
}
}
}
if($_POST['interval']){
if(!empty($pconfig['interval'])){
if(!is_numeric($_POST['interval'])){
if(!is_numeric($pconfig['interval'])){
$input_errors[]=gettext("The probe interval needs to be a numeric value.");
$input_errors[]=gettext("The probe interval needs to be a numeric value.");
}else{
}elseif($pconfig['interval']<1){
if($_POST['interval']<1){
$input_errors[]=gettext("The probe interval needs to be positive.");
$input_errors[]=gettext("The probe interval needs to be positive.");
}
}
}
}
}
if($_POST['down']){
if(!empty($pconfig['down'])){
if(!is_numeric($_POST['down'])){
if(!is_numeric($pconfig['down'])){
$input_errors[]=gettext("The down time setting needs to be a numeric value.");
$input_errors[]=gettext("The down time setting needs to be a numeric value.");
}else{
}elseif($pconfig['down']<1){
if($_POST['down']<1){
$input_errors[]=gettext("The down time setting needs to be positive.");
$input_errors[]=gettext("The down time setting needs to be positive.");
<br/><spanclass="vexpl"><?=gettext(sprintf("Low and high thresholds for latency in milliseconds. Default is %d/%d.",$apinger_default['latencylow'],$apinger_default['latencyhigh']));?></span>
<?=gettext(sprintf("Low and high thresholds for latency in milliseconds. Default is %d/%d.",$apinger_default['latencylow'],$apinger_default['latencyhigh']));?>
<br/><spanclass="vexpl"><?=gettext(sprintf("Low and high thresholds for packet loss in %%. Default is %d/%d.",$apinger_default['losslow'],$apinger_default['losshigh']));?></span>
</tr>
</td>
<trclass="advanced hidden">
</tr>
<td><aid="help_for_loss"href="#"class="showhelp"><iclass="fa fa-info-circle"></i></a><?=gettext("Packet Loss thresholds");?></td>
<?=gettext(sprintf("How often that an ICMP probe will be sent in seconds. Default is %d.",$apinger_default['interval']));?><br/><br/>
</tr>
<?=gettext("NOTE: The quality graph is averaged over seconds, not intervals, so as the probe interval is increased the accuracy of the quality graph is decreased.");?>
<br/><spanclass="vexpl"><?=gettext(sprintf("The number of seconds of failed probes before the alarm will fire. Default is %d.",$apinger_default['down']));?></span>
<br/><spanclass="vexpl"><?=gettext(sprintf("How many replies should be used to compute average delay for controlling \"delay\" alarms? Default is %d.",$apinger_default['avg_delay_samples']));?><br/><br/></span>
<divclass="hidden"for="help_for_interval">
</td>
<?=gettext(sprintf("How often that an ICMP probe will be sent in seconds. Default is %d.",$apinger_default['interval']));?><br/><br/>
</tr>
<?=gettext("NOTE: The quality graph is averaged over seconds, not intervals, so as the probe interval is increased the accuracy of the quality graph is decreased.");?>
<tr>
</div>
<tdwidth="22%"valign="top"class="vncellreq"><?=gettext("Average Packet Loss Probes Qty");?></td>
<?=gettext(sprintf("The number of seconds of failed probes before the alarm will fire. Default is %d.",$apinger_default['down']));?>
<br/><spanclass="vexpl"><?=gettext(sprintf("How many probes should be useds to compute average packet loss? Default is %d.",$apinger_default['avg_loss_samples']));?><br/><br/></span>
<?=gettext(sprintf("How many replies should be used to compute average delay for controlling \"delay\" alarms? Default is %d.",$apinger_default['avg_delay_samples']));?>
<?=gettext("Use calculated value.");?>
</div>
<br/><spanclass="vexpl"><?=gettext(sprintf("The delay (in qty of probe samples) after which loss is computed. Without this, delays longer than the probe interval would be treated as packet loss. Default is %d.",$apinger_default['avg_loss_delay_samples']));?><br/><br/></span>
</td>
</td>
</tr>
</tr>
<trclass="advanced hidden">
<tr>
<td><aid="help_for_avg_loss_samples"href="#"class="showhelp"><iclass="fa fa-info-circle"></i></a><?=gettext("Avg Packet Loss Probes Qty");?></td>
<tdcolspan="2">
<td>
<?=gettext("The probe interval must be less than the down time, otherwise the gateway will seem to go down then come up again at the next probe.");?><br/><br/>
<?=gettext("The down time defines the length of time before the gateway is marked as down, but the accuracy is controlled by the probe interval. For example, if your down time is 40 seconds but on a 30 second probe interval, only one probe would have to fail before the gateway is marked down at the 40 second mark. By default, the gateway is considered down after 10 seconds, and the probe interval is 1 second, so 10 probes would have to fail before the gateway is marked down.");?><br/>
<?=gettext(sprintf("The delay (in qty of probe samples) after which loss is computed. Without this, delays longer than the probe interval would be treated as packet loss. Default is %d.",$apinger_default['avg_loss_delay_samples']));?>
<?=gettext("The probe interval must be less than the down time, otherwise the gateway will seem to go down then come up again at the next probe.");?><br/><br/>
</td>
<?=gettext("The down time defines the length of time before the gateway is marked as down, but the accuracy is controlled by the probe interval. For example, if your down time is 40 seconds but on a 30 second probe interval, only one probe would have to fail before the gateway is marked down at the 40 second mark. By default, the gateway is considered down after 10 seconds, and the probe interval is 1 second, so 10 probes would have to fail before the gateway is marked down.");?><br/>