mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Merge pull request #1586 from adaniels21487/issue-1571
Discover UDP Jitter types for Cisco IPSLAs
This commit is contained in:
@@ -9,6 +9,9 @@ $slas = dbFetchRows('SELECT * FROM `slas` WHERE `device_id` = ? AND `deleted` =
|
||||
// Collect types
|
||||
$sla_types = array('all' => 'All');
|
||||
foreach ($slas as $sla) {
|
||||
// Set a default type, if we know about it, it will be overwritten below.
|
||||
$text = 'Unknown';
|
||||
|
||||
$sla_type = $sla['rtt_type'];
|
||||
|
||||
if (!in_array($sla_type, $sla_types)) {
|
||||
|
||||
@@ -70,6 +70,10 @@ if ($config['enable_sla'] && $device['os_group'] == 'cisco') {
|
||||
$data['tag'] = preg_replace('/:0*([0-9])/', ':$1', $data['tag']);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'jitter':
|
||||
$data['tag'] = $sla_config['rttMonEchoAdminCodecType'] ." (". preg_replace('/milliseconds/', 'ms', $sla_config['rttMonEchoAdminCodecInterval']) .")";
|
||||
break;
|
||||
}//end switch
|
||||
}//end if
|
||||
|
||||
|
||||
Reference in New Issue
Block a user