$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(!is_numeric($_POST['interval'])){
if(!empty($pconfig['interval'])){
if(!is_numeric($pconfig['interval'])){
$input_errors[]=gettext("The probe interval needs to be a numeric value.");
}else{
if($_POST['interval']<1){
$input_errors[]=gettext("The probe interval needs to be positive.");
}
}elseif($pconfig['interval']<1){
$input_errors[]=gettext("The probe interval needs to be positive.");
}
}
if($_POST['down']){
if(!is_numeric($_POST['down'])){
if(!empty($pconfig['down'])){
if(!is_numeric($pconfig['down'])){
$input_errors[]=gettext("The down time setting needs to be a numeric value.");
}else{
if($_POST['down']<1){
$input_errors[]=gettext("The down time setting needs to be positive.");
}
}elseif($pconfig['down']<1){
$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>
</td>
</tr>
<tr>
<tdwidth="22%"valign="top"class="vncellreq"><?=gettext("Packet Loss thresholds");?></td>
<br/><spanclass="vexpl"><?=gettext(sprintf("Low and high thresholds for packet loss in %%. Default is %d/%d.",$apinger_default['losslow'],$apinger_default['losshigh']));?></span>
<?=gettext(sprintf("How often that an ICMP probe will be sent in seconds. Default is %d.",$apinger_default['interval']));?><br/><br/>
<?=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>
</td>
</tr>
<tr>
<tdwidth="22%"valign="top"class="vncellreq"><?=gettext("Average Packet Loss Probes Qty");?></td>
<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>
<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>
</tr>
<tr>
<tdcolspan="2">
<?=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("Low and high thresholds for latency in milliseconds. Default is %d/%d.",$apinger_default['latencylow'],$apinger_default['latencyhigh']));?>
</div>
</td>
</tr>
<trclass="advanced hidden">
<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/>
<?=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.");?>
<?=gettext(sprintf("How many replies should be used to compute average delay for controlling \"delay\" alarms? Default is %d.",$apinger_default['avg_delay_samples']));?>
</div>
</td>
</tr>
<trclass="advanced hidden">
<td><aid="help_for_avg_loss_samples"href="#"class="showhelp"><iclass="fa fa-info-circle"></i></a><?=gettext("Avg Packet Loss Probes Qty");?></td>
<?=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']));?>
</div>
</td>
</tr>
<trclass="advanced hidden">
<td></td>
<td>
<small>
<?=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/>