newdevice: Added HPE iPDU detection (#6334)

This commit is contained in:
Neil Lathwood
2017-04-04 02:02:43 +01:00
committed by Tony Murray
parent a0abcbb649
commit b1c2ea2194
4 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
os: hpe-ipdu
text: 'HPE iPDU'
type: power
icon: hpe
over:
- { graph: device_bits, text: Traffic }
discovery:
- sysObjectId:
- .1.3.6.1.4.1.232.165.5

View File

@@ -0,0 +1,26 @@
<?php
/**
* hpe-ipdu.inc.php
*
* LibreNMS os poller module for HPE iPDU
*
* 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 2017 Neil Lathwood
* @author Neil Lathwood <neil@lathwood.co.uk>
*/
list(,$version) = explode('firmware version', $poll_device['sysDescr']);

View File

@@ -821,6 +821,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
$this->checkOS('hpe-ilo');
}
public function testHpeIpdu()
{
$this->checkOS('hpe-ipdu');
}
public function testHpeMsl()
{
$this->checkOS('hpe-msl');

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|HP Intelligent Modular PDU , revision W-J, firmware version 2.0.22
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.232.165.5