mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added support for Arris CMTS (#5143)
This commit is contained in:
committed by
Tony Murray
parent
de87fc8a74
commit
aa45630aea
BIN
html/images/os/arris.png
Normal file
BIN
html/images/os/arris.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@@ -1384,6 +1384,17 @@ $config['os'][$os]['poller_modules']['wifi'] = 0;
|
|||||||
$config['os'][$os]['poller_modules']['toner'] = 0;
|
$config['os'][$os]['poller_modules']['toner'] = 0;
|
||||||
$config['os'][$os]['discovery_modules']['toner'] = 0;
|
$config['os'][$os]['discovery_modules']['toner'] = 0;
|
||||||
|
|
||||||
|
$os = 'cmts';
|
||||||
|
$config['os'][$os]['text'] = 'Arris CMTS';
|
||||||
|
$config['os'][$os]['type'] = 'network';
|
||||||
|
$config['os'][$os]['icon'] = 'arris';
|
||||||
|
$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]['over'][2]['graph'] = 'device_mempool';
|
||||||
|
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
|
||||||
|
|
||||||
$os = 'screenos';
|
$os = 'screenos';
|
||||||
$config['os'][$os]['text'] = 'Juniper ScreenOS';
|
$config['os'][$os]['text'] = 'Juniper ScreenOS';
|
||||||
$config['os'][$os]['type'] = 'firewall';
|
$config['os'][$os]['type'] = 'firewall';
|
||||||
|
28
includes/discovery/os/cmts.inc.php
Normal file
28
includes/discovery/os/cmts.inc.php
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* cmts.inc.php
|
||||||
|
*
|
||||||
|
* LibreNMS os discovery module for Arris CMTS
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
* @package LibreNMS
|
||||||
|
* @link http://librenms.org
|
||||||
|
* @copyright 2016 Neil Lathwood
|
||||||
|
* @author Neil Lathwood <neil@lathwood.co.uk>
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (starts_with($sysObjectId, '.1.3.6.1.4.1.4998.2.1')) {
|
||||||
|
$os = 'cmts';
|
||||||
|
}
|
28
includes/polling/os/cmts.inc.php
Normal file
28
includes/polling/os/cmts.inc.php
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* cmts.inc.php
|
||||||
|
*
|
||||||
|
* LibreNMS os poller module for Arris CMTS
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
* @package LibreNMS
|
||||||
|
* @link http://librenms.org
|
||||||
|
* @copyright 2016 Neil Lathwood
|
||||||
|
* @author Neil Lathwood <neil@lathwood.co.uk>
|
||||||
|
*/
|
||||||
|
|
||||||
|
preg_match("/CMTS_V([0-9\.]+),/", $poll_device['sysDescr'], $match);
|
||||||
|
|
||||||
|
$version = $match[1];
|
@@ -351,6 +351,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->checkOS('ciscowlc');
|
$this->checkOS('ciscowlc');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testCmts()
|
||||||
|
{
|
||||||
|
$this->checkOS('cmts');
|
||||||
|
}
|
||||||
|
|
||||||
public function testCometsystemp85xx()
|
public function testCometsystemp85xx()
|
||||||
{
|
{
|
||||||
$this->checkOS('cometsystem-p85xx');
|
$this->checkOS('cometsystem-p85xx');
|
||||||
|
2
tests/snmpsim/cmts.snmprec
Normal file
2
tests/snmpsim/cmts.snmprec
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
1.3.6.1.2.1.1.1.0|4|CMTS_V08.02.00.97, <<HW_REV: 3.0; VENDOR: ARRIS; BOOTR: V00.01.00>>
|
||||||
|
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.4998.2.1
|
Reference in New Issue
Block a user