Add polling

This commit is contained in:
Søren Rosiak
2016-06-06 19:31:46 +02:00
parent 38448e7c3c
commit 93f93aa660

View File

@@ -0,0 +1,17 @@
<?php
/*
* LibreNMS
*
* Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
* 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];
}