mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
initial sonus support (#4176)
* initial sonus support, tidy definitions.inc.php * proper copyright in files * limiting the noise * used too old definitions.inc.php
This commit is contained in:
BIN
html/images/os/sonus.png
Normal file
BIN
html/images/os/sonus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
@@ -1999,6 +1999,19 @@ $config['os'][$os]['text'] = 'Hytera Repeater';
|
||||
$config['os'][$os]['type'] = 'wireless';
|
||||
$config['os'][$os]['icon'] = 'hytera';
|
||||
|
||||
// Sonus GSX
|
||||
$os = 'sonus-gsx';
|
||||
$config['os'][$os]['text'] = 'Sonus GSX';
|
||||
$config['os'][$os]['type'] = 'appliance';
|
||||
$config['os'][$os]['icon'] = 'sonus';
|
||||
|
||||
// Sonus SBC
|
||||
$os = 'sonus-sbc';
|
||||
$config['os'][$os]['text'] = 'Sonus SBC';
|
||||
$config['os'][$os]['type'] = 'appliance';
|
||||
$config['os'][$os]['icon'] = 'sonus';
|
||||
|
||||
|
||||
// Graph Types
|
||||
require_once $config['install_dir'].'/includes/load_db_graph_types.inc.php';
|
||||
|
||||
|
17
includes/discovery/os/sonus-gsx.inc.php
Normal file
17
includes/discovery/os/sonus-gsx.inc.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* Copyright (c) 2016 Cercel Valentin <crc@nuamchefazi.ro>
|
||||
* 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.2879.1.1.2')) {
|
||||
$os = 'sonus-gsx';
|
||||
}
|
||||
}
|
17
includes/discovery/os/sonus-sbc.inc.php
Normal file
17
includes/discovery/os/sonus-sbc.inc.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* Copyright (c) 2016 Cercel Valentin <crc@nuamchefazi.ro>
|
||||
* 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.2879.1.9.2')) {
|
||||
$os = 'sonus-sbc';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user