newdevice: Added support for Dell Remote consoles #4881

This commit is contained in:
Neil Lathwood
2016-11-01 16:29:59 +00:00
committed by GitHub
5 changed files with 68 additions and 0 deletions

View File

@@ -1090,6 +1090,13 @@ $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 = 'dell-rcs';
$config['os'][$os]['text'] = 'Dell Remote Console';
$config['os'][$os]['type'] = 'appliance';
$config['os'][$os]['icon'] = 'dell';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
$os = 'avaya-ers';
$config['os'][$os]['text'] = 'ERS Firmware';
$config['os'][$os]['type'] = 'network';

View File

@@ -0,0 +1,28 @@
<?php
/**
* dell-rcs.inc.php
*
* LibreNMS os discovery module for Dell Remote Console
*
* 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.10418.18.21.17')) {
$os = 'dell-rcs';
}

View File

@@ -0,0 +1,26 @@
<?php
/**
* dell-rcs.inc.php
*
* LibreNMS os poller module for Dell Remote Console
*
* 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>
*/
list($hardware, $version) = preg_split('/ /', preg_replace('/([\\\"]+)/', '', $poll_device['sysDescr']));

View File

@@ -386,6 +386,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
$this->checkOS('deliberant');
}
public function testDellrcs()
{
$this->checkOS('dell-rcs');
}
public function testDelllaser()
{
$this->checkOS('dell-laser');

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|\"1082DS *46\"
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.10418.18.21.17