mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 19:08:15 +00:00
Basic HWGroup Poseidon Discovery
Initial PR
This commit is contained in:
parent
feb524f0da
commit
a265f9a8dc
@ -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';
|
||||
|
17
includes/discovery/os/poseidon.inc.php
Normal file
17
includes/discovery/os/poseidon.inc.php
Normal 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';
|
||||
}
|
||||
}
|
15
includes/polling/os/poseidon.inc.php
Normal file
15
includes/polling/os/poseidon.inc.php
Normal 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];
|
Loading…
Reference in New Issue
Block a user