-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic Ubiquoss PON support (#10828)
* mibs * definition * definition * logo * serial * device bits * tests * codeclimate
- Loading branch information
1 parent
245b415
commit 3d56d76
Showing
63 changed files
with
82,091 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
os: ubiquoss-pon | ||
text: 'Ubiquoss PON' | ||
type: network | ||
icon: ubiquoss | ||
over: | ||
- { graph: device_bits, text: 'Device Traffic' } | ||
- { graph: device_processor, text: 'CPU Usage' } | ||
- { graph: device_mempool, text: 'Memory Usage' } | ||
mib_dir: | ||
- ubiquoss | ||
discovery: | ||
- | ||
sysObjectID: .1.3.6.1.4.1.7800.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?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. | ||
* | ||
* Ubiquoss PON | ||
* | ||
*/ | ||
|
||
$serial = snmp_get($device, 'ENTITY-MIB::entPhysicalSerialNum.1', '-OQv'); | ||
|
||
// Let's use sysDescr as nothing else is found in the OIDs. | ||
if (empty($hardware)) { | ||
$hardware = 'Ubiquoss ' . trim($device['sysDescr']); | ||
} |
Oops, something went wrong.