From 44c3f1f00c9abdb089f773b2bf9ac0122ef7acc3 Mon Sep 17 00:00:00 2001 From: FTBZ Date: Thu, 16 Feb 2017 09:14:28 +0100 Subject: [PATCH] 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 --- includes/definitions/hpe-msa.yaml | 11 + includes/polling/os/hpe-msa.inc.php | 8 + mibs/hp/CPQSINFO-MIB | 3867 +++++++++++++++++++++++++++ tests/OSDiscoveryTest.php | 5 + tests/snmpsim/hpe-msa.snmprec | 4 + 5 files changed, 3895 insertions(+) create mode 100644 includes/definitions/hpe-msa.yaml create mode 100644 includes/polling/os/hpe-msa.inc.php create mode 100644 mibs/hp/CPQSINFO-MIB create mode 100644 tests/snmpsim/hpe-msa.snmprec diff --git a/includes/definitions/hpe-msa.yaml b/includes/definitions/hpe-msa.yaml new file mode 100644 index 0000000000..0780a0b1c4 --- /dev/null +++ b/includes/definitions/hpe-msa.yaml @@ -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 diff --git a/includes/polling/os/hpe-msa.inc.php b/includes/polling/os/hpe-msa.inc.php new file mode 100644 index 0000000000..43b1dafa5b --- /dev/null +++ b/includes/polling/os/hpe-msa.inc.php @@ -0,0 +1,8 @@ +checkOS('hpe-msl'); } + public function testHpeMsa() + { + $this->checkOS('hpe-msa'); + } + public function testHpmsm() { $this->checkOS('hpmsm'); diff --git a/tests/snmpsim/hpe-msa.snmprec b/tests/snmpsim/hpe-msa.snmprec new file mode 100644 index 0000000000..3eea592db9 --- /dev/null +++ b/tests/snmpsim/hpe-msa.snmprec @@ -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" \ No newline at end of file