Merge pull request #1586 from adaniels21487/issue-1571

Discover UDP Jitter types for Cisco IPSLAs
This commit is contained in:
Daniel Preussker
2015-08-02 13:21:44 +00:00
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -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)) {
+4
View File
@@ -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