Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newdevice: Added support for Arris CMTS #5143

Merged
merged 1 commit into from Dec 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added html/images/os/arris.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions includes/definitions.inc.php
Expand Up @@ -888,6 +888,17 @@
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'junos';

$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';
$config['os'][$os]['text'] = 'Juniper ScreenOS';
$config['os'][$os]['type'] = 'firewall';
Expand Down
28 changes: 28 additions & 0 deletions includes/discovery/os/cmts.inc.php
@@ -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 changes: 28 additions & 0 deletions includes/polling/os/cmts.inc.php
@@ -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];
5 changes: 5 additions & 0 deletions tests/OSDiscoveryTest.php
Expand Up @@ -351,6 +351,11 @@ public function testCiscowlc()
$this->checkOS('ciscowlc');
}

public function testCmts()
{
$this->checkOS('cmts');
}

public function testCometsystemp85xx()
{
$this->checkOS('cometsystem-p85xx');
Expand Down
2 changes: 2 additions & 0 deletions tests/snmpsim/cmts.snmprec
@@ -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