mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #4065 from adaniels21487/issue-4062
This commit is contained in:
@ -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';
|
||||
|
7
includes/discovery/os/vccodec.inc.php
Normal file
7
includes/discovery/os/vccodec.inc.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.5596.150.6.4.1')) {
|
||||
$os = 'vccodec';
|
||||
}
|
||||
}
|
8
includes/polling/os/vccodec.inc.php
Normal file
8
includes/polling/os/vccodec.inc.php
Normal 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];
|
||||
}
|
Reference in New Issue
Block a user