mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added support for Dell Remote consoles #4881
This commit is contained in:
@@ -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';
|
||||
|
28
includes/discovery/os/dell-rcs.inc.php
Normal file
28
includes/discovery/os/dell-rcs.inc.php
Normal 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';
|
||||
}
|
26
includes/polling/os/dell-rcs.inc.php
Normal file
26
includes/polling/os/dell-rcs.inc.php
Normal 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']));
|
@@ -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');
|
||||
|
2
tests/snmpsim/dell-rcs.snmprec
Normal file
2
tests/snmpsim/dell-rcs.snmprec
Normal 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
|
Reference in New Issue
Block a user