mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Cisco SLA jitter tag (#11983)
* Update cisco-sla.inc.php * Update cisco-sla.inc.php
This commit is contained in:
@@ -65,7 +65,12 @@ if (Config::get('enable_sla') && $device['os_group'] == 'cisco') {
|
||||
break;
|
||||
|
||||
case 'jitter':
|
||||
$data['tag'] = $sla_config['rttMonEchoAdminCodecType'] ." (". preg_replace('/milliseconds/', 'ms', $sla_config['rttMonEchoAdminCodecInterval']) .")";
|
||||
if ($sla_config['rttMonEchoAdminCodecType'] != 'notApplicable') {
|
||||
$codec_info = " (" . $sla_config['rttMonEchoAdminCodecType'] . " @ " . preg_replace('/milliseconds/', 'ms', $sla_config['rttMonEchoAdminCodecInterval']) . ")";
|
||||
} else {
|
||||
$codec_info = '';
|
||||
}
|
||||
$data['tag'] = IP::fromHexString($sla_config['rttMonEchoAdminTargetAddress'], true) . ":" . $sla_config['rttMonEchoAdminTargetPort'] . $codec_info;
|
||||
break;
|
||||
}//end switch
|
||||
}//end if
|
||||
|
Reference in New Issue
Block a user