newdevice: Added support for Arris CMTS (#5143)

This commit is contained in:
Neil Lathwood
2016-12-14 21:07:57 +00:00
committed by Tony Murray
parent de87fc8a74
commit aa45630aea
6 changed files with 74 additions and 0 deletions

BIN
html/images/os/arris.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -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';

View 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';
}

View 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];

View File

@@ -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');

View 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