Basic HWGroup Poseidon Discovery

Initial PR
This commit is contained in:
Rosiak 2016-01-10 14:58:56 +01:00
parent feb524f0da
commit a265f9a8dc
3 changed files with 40 additions and 0 deletions

View File

@ -1415,6 +1415,14 @@ $config['os'][$os]['icon'] = 'ligowave';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Traffic';
+// HWGroup Poseidon
+$os = 'Poseidon';
+$config['os'][$os]['text'] = 'Poseidon';
+$config['os'][$os]['type'] = 'environment';
+$config['os'][$os]['icon'] = 'generic';
+$config['os'][$os]['over'][0]['graph'] = 'device_bits';
+$config['os'][$os]['over'][0]['text'] = 'Traffic';
// Appliances
$os = 'fortios';
$config['os'][$os]['text'] = 'FortiOS';

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 (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.21796.3.3')) {
$os = 'poseidon';
}
}

View File

@ -0,0 +1,15 @@
<?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.
*/
preg_match_all('/Poseidon [0-9]+|[0-9]+.[0-9]+.[0-9]/', $poll_device['sysDescr'], $matches);
$hardware = $matches[0][0];
$version = $matches[0][1];