mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Basic support for HPE MSA storage (#5907)
* Basic support for HPE MSA * Basic support for HPE MSA * Padawan needs to follow master Murrant to become a Jedi. * Trying to correct snmpsim
This commit is contained in:
11
includes/definitions/hpe-msa.yaml
Normal file
11
includes/definitions/hpe-msa.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
os: hpe-msa
|
||||
text: 'HPE MSA'
|
||||
type: storage
|
||||
icon: hpe
|
||||
over:
|
||||
- { graph: device_bits, text: Traffic }
|
||||
discovery:
|
||||
- sysObjectId:
|
||||
- .1.3.6.1.4.1.11.2.51
|
||||
mib_dir:
|
||||
- hp
|
8
includes/polling/os/hpe-msa.inc.php
Normal file
8
includes/polling/os/hpe-msa.inc.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
$oids = 'cpqSiProductName.0 cpqSiSysSerialNum.0';
|
||||
|
||||
$data = snmp_get_multi($device, $oids, '-OQUs', 'CPQSINFO-MIB');
|
||||
|
||||
$hardware = str_replace("\"", "", $data[0]['cpqSiProductName']);
|
||||
$serial = str_replace("\"", "", $data[0]['cpqSiSysSerialNum']);
|
3867
mibs/hp/CPQSINFO-MIB
Normal file
3867
mibs/hp/CPQSINFO-MIB
Normal file
File diff suppressed because it is too large
Load Diff
@@ -794,6 +794,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
$this->checkOS('hpe-msl');
|
||||
}
|
||||
|
||||
public function testHpeMsa()
|
||||
{
|
||||
$this->checkOS('hpe-msa');
|
||||
}
|
||||
|
||||
public function testHpmsm()
|
||||
{
|
||||
$this->checkOS('hpmsm');
|
||||
|
4
tests/snmpsim/hpe-msa.snmprec
Normal file
4
tests/snmpsim/hpe-msa.snmprec
Normal file
@@ -0,0 +1,4 @@
|
||||
1.3.6.1.2.1.1.1.0|4|HP MSA 2040 SAN
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.11.2.51
|
||||
1.3.6.1.4.1.232.2.2.4.2.0|4|"HP MSA 2040 SAN"
|
||||
1.3.6.1.4.1.232.2.2.2.1.0|4|"DRSAKZR-123456789"
|
Reference in New Issue
Block a user