Merge pull request #4065 from adaniels21487/issue-4062

This commit is contained in:
Søren Rosiak 2016-08-18 22:51:28 +03:00 committed by GitHub
commit aabc0eb7ab
3 changed files with 20 additions and 0 deletions

View File

@ -613,6 +613,11 @@ $config['os'][$os]['over'][2]['graph'] = 'device_mempool';
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
$config['os'][$os]['icon'] = 'cisco';
$os = 'vccodec';
$config['os'][$os]['text'] = 'TelePresence Codec';
$config['os'][$os]['type'] = 'collaboration';
$config['os'][$os]['icon'] = 'cisco';
$os = 'ise';
$config['os'][$os]['text'] = 'Cisco Identity Services Engine';
$config['os'][$os]['type'] = 'server';

View File

@ -0,0 +1,7 @@
<?php
if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.5596.150.6.4.1')) {
$os = 'vccodec';
}
}

View File

@ -0,0 +1,8 @@
<?php
// Cisco CodecSoftW: ce8.1.0.b8c0ca3MCU: Cisco TelePresence SX20Date: 2016-04-05S/N: 0101010101
if (preg_match('/^Cisco Codec\s?SoftW: ([^,]+)\s?MCU: Cisco TelePresence ([^,]+)\s?Date: [^,]+\s?S\/N: ([^,]+)$/', $device['sysDescr'], $regexp_result)) {
$version = $regexp_result[1];
$hardware = $regexp_result[2];
$serial = $regexp_result[3];
}