Skip to content

Commit

Permalink
Added basic Ubiquoss PON support (#10828)
Browse files Browse the repository at this point in the history
* mibs

* definition

* definition

* logo

* serial

* device bits

* tests

* codeclimate
  • Loading branch information
PipoCanaja authored and murrant committed Nov 25, 2019
1 parent 245b415 commit 3d56d76
Show file tree
Hide file tree
Showing 63 changed files with 82,091 additions and 0 deletions.
Binary file added html/images/logos/ubiquoss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions includes/definitions/ubiquoss-pon.yaml
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
22 changes: 22 additions & 0 deletions includes/polling/os/ubiquoss-pon.inc.php
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']);
}
Loading

0 comments on commit 3d56d76

Please sign in to comment.