From 38448e7c3cabdf7441762f96ec884ec1eded1b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rosiak?= Date: Tue, 31 May 2016 21:59:54 +0200 Subject: [PATCH] Basic HPE 3PAR Support #3521 --- includes/definitions.inc.php | 7 +++++++ includes/discovery/os/hp3par.inc.php | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 includes/discovery/os/hp3par.inc.php diff --git a/includes/definitions.inc.php b/includes/definitions.inc.php index f87bdfc0a0..1ca6fef345 100644 --- a/includes/definitions.inc.php +++ b/includes/definitions.inc.php @@ -1052,6 +1052,13 @@ $config['os'][$os]['icon'] = 'generic'; $config['os'][$os]['over'][0]['graph'] = 'device_bits'; $config['os'][$os]['over'][0]['text'] = 'Traffic'; +$os = 'informos'; +$config['os'][$os]['text'] = 'HPE 3PAR'; +$config['os'][$os]['type'] = 'storage'; +$config['os'][$os]['icon'] = 'hp'; +$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/hp3par.inc.php b/includes/discovery/os/hp3par.inc.php new file mode 100644 index 0000000000..e0325b19f8 --- /dev/null +++ b/includes/discovery/os/hp3par.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.12925.1')) { + $os = 'informos'; + } +}