From d64a083141d78dfbaba2c2e7d9aea1a84a752e96 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Sat, 15 Apr 2017 03:50:43 +0100 Subject: [PATCH] newdevice: Added basic detection for Tandberg Magnum tape units (#6421) * newdevice: Added basic detection for Tandberg Magnum tape units * Tandberg icon to svg --- html/images/logos/tandberg.svg | 1 + html/images/os/tandberg.svg | 1 + includes/definitions/magnum.yaml | 9 +++++++++ tests/OSDiscoveryTest.php | 5 +++++ tests/snmpsim/magnum.snmprec | 2 ++ 5 files changed, 18 insertions(+) create mode 100644 html/images/logos/tandberg.svg create mode 100644 html/images/os/tandberg.svg create mode 100644 includes/definitions/magnum.yaml create mode 100644 tests/snmpsim/magnum.snmprec diff --git a/html/images/logos/tandberg.svg b/html/images/logos/tandberg.svg new file mode 100644 index 0000000000..d7f7b116c3 --- /dev/null +++ b/html/images/logos/tandberg.svg @@ -0,0 +1 @@ + diff --git a/html/images/os/tandberg.svg b/html/images/os/tandberg.svg new file mode 100644 index 0000000000..3c553230b7 --- /dev/null +++ b/html/images/os/tandberg.svg @@ -0,0 +1 @@ + diff --git a/includes/definitions/magnum.yaml b/includes/definitions/magnum.yaml new file mode 100644 index 0000000000..77d5786e00 --- /dev/null +++ b/includes/definitions/magnum.yaml @@ -0,0 +1,9 @@ +os: magnum +text: 'Tandberg Magnum' +type: storage +icon: tandberg +over: + - { graph: device_ping_perf, text: ICMP Response } +discovery: + - sysObjectId: + - .1.3.6.1.4.1.3073.2. diff --git a/tests/OSDiscoveryTest.php b/tests/OSDiscoveryTest.php index 145fe09d93..694629e4dc 100644 --- a/tests/OSDiscoveryTest.php +++ b/tests/OSDiscoveryTest.php @@ -1087,6 +1087,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase $this->checkOS('macosx', 'macosx-sierra'); } + public function testMagnum() + { + $this->checkOS('magnum'); + } + public function testMaipu() { $this->checkOS('mypoweros'); diff --git a/tests/snmpsim/magnum.snmprec b/tests/snmpsim/magnum.snmprec new file mode 100644 index 0000000000..c39c2da1d7 --- /dev/null +++ b/tests/snmpsim/magnum.snmprec @@ -0,0 +1,2 @@ +1.3.6.1.2.1.1.1.0|4|MAGNUM 224 +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.3073.2.3 \ No newline at end of file