From 074a7224020df96b589d54048f033272182db998 Mon Sep 17 00:00:00 2001 From: Rosiak Date: Wed, 22 Jul 2015 16:59:18 +0200 Subject: [PATCH] Basic IBM Tape Library Support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - As stated, this introduces basic support for IBM TS3500 Library’s --- includes/definitions.inc.php | 7 +++++++ includes/discovery/os/ibmtapelibrary.inc.php | 17 +++++++++++++++++ includes/polling/os/ibmtapelibrary.inc.php | 15 +++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 includes/discovery/os/ibmtapelibrary.inc.php create mode 100644 includes/polling/os/ibmtapelibrary.inc.php diff --git a/includes/definitions.inc.php b/includes/definitions.inc.php index ba0c50232..098670199 100644 --- a/includes/definitions.inc.php +++ b/includes/definitions.inc.php @@ -786,6 +786,13 @@ $config['os'][$os]['icon'] = 'ibmnos'; $config['os'][$os]['over'][0]['graph'] = 'device_bits'; $config['os'][$os]['over'][0]['text'] = 'Traffic'; +$os = 'ibmtapelibrary'; +$config['os'][$os]['text'] = 'IBM Tape Library'; +$config['os'][$os]['type'] = 'storage'; +$config['os'][$os]['icon'] = 'generic'; +$config['os'][$os]['over'][0]['graph'] = 'device_bits'; +$config['os'][$os]['over'][0]['text'] = 'Traffic'; + $os = 'comware'; $config['os'][$os]['text'] = 'HP Comware'; $config['os'][$os]['type'] = 'network'; diff --git a/includes/discovery/os/ibmtapelibrary.inc.php b/includes/discovery/os/ibmtapelibrary.inc.php new file mode 100644 index 000000000..1730c0df3 --- /dev/null +++ b/includes/discovery/os/ibmtapelibrary.inc.php @@ -0,0 +1,17 @@ + +* 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. Please see LICENSE.txt at the top level of +* the source code distribution for details. +*/ + +if (!$os) { + if (strstr($sysObjectId, '.1.3.6.1.4.1.2.6.182.1.0.401.1')) { + $os = 'ibmtapelibrary'; + } +} diff --git a/includes/polling/os/ibmtapelibrary.inc.php b/includes/polling/os/ibmtapelibrary.inc.php new file mode 100644 index 000000000..f20a56798 --- /dev/null +++ b/includes/polling/os/ibmtapelibrary.inc.php @@ -0,0 +1,15 @@ + +* 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. Please see LICENSE.txt at the top level of +* the source code distribution for details. +*/ + +$hardware = trim(snmp_get($device, ".1.3.6.1.4.1.14851.3.1.4.2.0", "-Ovq") , '" '); +$serial = trim(snmp_get($device, ".1.3.6.1.4.1.14851.3.1.3.2.0", "-Ovq") , '" '); +$version = trim(snmp_get($device, ".1.3.6.1.4.1.14851.3.1.3.4.0", "-Ovq") , '" ');