2016-06-06 19:31:46 +02:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* LibreNMS
|
|
|
|
*
|
2016-06-06 19:34:12 +02:00
|
|
|
* Copyright (c) 2016 Neil Lathwood <neil@lathwood.co.uk>
|
2016-06-06 19:31:46 +02:00
|
|
|
* 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];
|
|
|
|
}
|