From af14b6a73dea6936de33f7b50f5e0d40baffe9ce Mon Sep 17 00:00:00 2001 From: Adam Bishop Date: Sun, 5 Jul 2020 12:49:16 +0100 Subject: [PATCH] OS detection for Dell PowerVault MD arrays (#11509) * OS detection for Dell PowerVault MD arrays I'm not 100% sure it was worth Dell implementing SNMP - the array exposes 6 OID's outside of MIBII, and we poll both the useful ones. At least we get an icon. * Test data * Remove polling and discovery module filters --- includes/definitions/dell-powervault.yaml | 9 + includes/polling/os/dell-powervault.inc.php | 6 + mibs/dell/DellMDStorageArray-MIB | 266 ++++++++++++++++++++ mibs/dell/SanAppliance-MIB | 104 ++++++++ tests/data/dell-powervault.json | 40 +++ tests/snmpsim/dell-powervault.snmprec | 8 + 6 files changed, 433 insertions(+) create mode 100644 includes/definitions/dell-powervault.yaml create mode 100644 includes/polling/os/dell-powervault.inc.php create mode 100644 mibs/dell/DellMDStorageArray-MIB create mode 100644 mibs/dell/SanAppliance-MIB create mode 100644 tests/data/dell-powervault.json create mode 100644 tests/snmpsim/dell-powervault.snmprec diff --git a/includes/definitions/dell-powervault.yaml b/includes/definitions/dell-powervault.yaml new file mode 100644 index 0000000000..8846d2593b --- /dev/null +++ b/includes/definitions/dell-powervault.yaml @@ -0,0 +1,9 @@ +os: dell-powervault +text: 'Dell PowerVault MD' +type: storage +icon: dell +group: dell +discovery: + - + sysObjectID: .1.3.6.1.4.1.674.10893.2.31 + sysDescr_regex: '/^DELL(\s)+MD/' diff --git a/includes/polling/os/dell-powervault.inc.php b/includes/polling/os/dell-powervault.inc.php new file mode 100644 index 0000000000..06c1806b4f --- /dev/null +++ b/includes/polling/os/dell-powervault.inc.php @@ -0,0 +1,6 @@ +", + "sysObjectID": ".1.3.6.1.4.1.674.10893.2.31", + "sysDescr": "DELL MD38xxi 0123", + "sysContact": null, + "version": null, + "hardware": null, + "features": null, + "os": "dell-powervault", + "type": "storage", + "serial": null, + "icon": "dell.svg", + "location": null + } + ] + }, + "poller": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.674.10893.2.31", + "sysDescr": "DELL MD38xxi 0123", + "sysContact": "", + "version": null, + "hardware": "MD38xxi", + "features": null, + "os": "dell-powervault", + "type": "storage", + "serial": "ABCD123", + "icon": "dell.svg", + "location": "" + } + ] + } + } +} diff --git a/tests/snmpsim/dell-powervault.snmprec b/tests/snmpsim/dell-powervault.snmprec new file mode 100644 index 0000000000..7a52de5be0 --- /dev/null +++ b/tests/snmpsim/dell-powervault.snmprec @@ -0,0 +1,8 @@ +1.3.6.1.2.1.1.1.0|4|DELL MD38xxi 0123 +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.674.10893.2.31 +1.3.6.1.2.1.1.3.0|67|3507956004 +1.3.6.1.2.1.1.4.0|4| +1.3.6.1.2.1.1.5.0|4| +1.3.6.1.2.1.1.6.0|4| +1.3.6.1.4.1.674.10893.2.31.500.1.3.0|4|ABCD123 +1.3.6.1.4.1.674.10893.2.31.500.1.5.0|4|MD38xxi