From 93f93aa660f783b59602b11c06693bbd2a051bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Rosiak?= Date: Mon, 6 Jun 2016 19:31:46 +0200 Subject: [PATCH] Add polling --- includes/polling/os/hp3par.inc.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 includes/polling/os/hp3par.inc.php diff --git a/includes/polling/os/hp3par.inc.php b/includes/polling/os/hp3par.inc.php new file mode 100644 index 0000000000..1c8a9101dc --- /dev/null +++ b/includes/polling/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 (preg_match('/^HP_3PAR (.*), ID: (.*), Serial number: (.*), InForm OS version: (.*)/', $poll_device['sysDescr'], $regexp_result)) { + $hardware = 'HP 3Par '.$regexp_result[1]; + $serial = $regexp_result[3]; + $version = $regexp_result[4]; +}