mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #4064 from adaniels21487/issue-4061
OS Support for Acano collaboration appliances
This commit is contained in:
@ -574,6 +574,16 @@ $config['os'][$os]['over'][4]['graph'] = 'device_ciscowlc_numclients';
|
||||
$config['os'][$os]['over'][4]['text'] = 'Number of Clients';
|
||||
$config['os'][$os]['icon'] = 'cisco';
|
||||
|
||||
$os = 'acano';
|
||||
$config['os'][$os]['group'] = 'cisco';
|
||||
$config['os'][$os]['text'] = 'Acano OS';
|
||||
$config['os'][$os]['type'] = 'collaboration';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
|
||||
$config['os'][$os]['over'][1]['graph'] = 'device_processor';
|
||||
$config['os'][$os]['over'][1]['text'] = 'CPU Usage';
|
||||
$config['os'][$os]['icon'] = 'cisco';
|
||||
|
||||
$os = 'waas';
|
||||
$config['os'][$os]['group'] = 'cisco';
|
||||
$config['os'][$os]['text'] = 'Cisco WAAS';
|
||||
|
7
includes/discovery/os/acano.inc.php
Normal file
7
includes/discovery/os/acano.inc.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if ( (strstr($sysObjectId, '1.3.6.1.4.1.8072.3.2.10')) && (strstr($sysDescr, 'Acano')) ) {
|
||||
$os = 'acano';
|
||||
}
|
||||
}
|
7
includes/polling/os/acano.inc.php
Normal file
7
includes/polling/os/acano.inc.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
if (preg_match('/Acano Server ([^,]+)/', $device['sysDescr'], $regexp_result)) {
|
||||
$version = $regexp_result[1];
|
||||
} else {
|
||||
$version = '';
|
||||
}
|
Reference in New Issue
Block a user