diff --git a/html/pages/device/slas.inc.php b/html/pages/device/slas.inc.php index 587c7d743..a84a8833d 100644 --- a/html/pages/device/slas.inc.php +++ b/html/pages/device/slas.inc.php @@ -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)) { diff --git a/includes/discovery/cisco-sla.inc.php b/includes/discovery/cisco-sla.inc.php index 0a2efb2a8..d0e45107d 100644 --- a/includes/discovery/cisco-sla.inc.php +++ b/includes/discovery/cisco-sla.inc.php @@ -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