mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added Support for cambium PTP 300, 500, 600 and 800 (#7998)
* Add Support for cambium-ptp500 Added mibs for ptp500, ptp300 * ptp500 - Switch modulation to a state * Update label on 500 to 500/300 300 and 500 use the same mibs * Request changes Added overhead graph's to all current ptp devices * wrap text in quotes * Fix discovery bug * Ptp600 support * PTP800 Support * Fix ptp600 issues * Remove meh copy and pasta * Remove modulation from OS file * Update value modifiers / typos * +x rename-mibs.php * Modify cambium mibs
This commit is contained in:
committed by
Neil Lathwood
parent
afc6137146
commit
d4bd566d36
47
includes/definitions/discovery/ptp500.yaml
Normal file
47
includes/definitions/discovery/ptp500.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
mib: CAMBIUM-PTP500-V2-MIB
|
||||
modules:
|
||||
sensors:
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: transmitModulationMode
|
||||
num_oid: .1.3.6.1.4.1.17713.5.12.9.
|
||||
index: 'transmitModulationMode.{{ $index }}'
|
||||
descr: Transmit Modulation Mode
|
||||
states:
|
||||
- { value: 1, generic: 0, graph: 1, descr: modBpsk50percent }
|
||||
- { value: 2, generic: 0, graph: 1, descr: modQpsk50percentSingle }
|
||||
- { value: 3, generic: 0, graph: 1, descr: modQpsk75percentSingle }
|
||||
- { value: 4, generic: 0, graph: 1, descr: mod16qam50percentSingle }
|
||||
- { value: 5, generic: 0, graph: 1, descr: mod16qam75percentSingle }
|
||||
- { value: 6, generic: 0, graph: 1, descr: mod64qam67percentSingle }
|
||||
- { value: 7, generic: 0, graph: 1, descr: mod64qam83percentSingle }
|
||||
- { value: 8, generic: 0, graph: 1, descr: modReserved1 }
|
||||
- { value: 9, generic: 0, graph: 1, descr: modQpsk50percentDual }
|
||||
- { value: 10, generic: 0, graph: 1, descr: modQpsk75percentDual }
|
||||
- { value: 11, generic: 0, graph: 1, descr: mod16qam50percentDual }
|
||||
- { value: 12, generic: 0, graph: 1, descr: mod16qam75percentDual }
|
||||
- { value: 13, generic: 0, graph: 1, descr: mod64qam67percentDual }
|
||||
- { value: 14, generic: 0, graph: 1, descr: mod64qam83percentDual }
|
||||
- { value: 15, generic: 0, graph: 1, descr: modReserved2 }
|
||||
-
|
||||
oid: receiveModulationMode
|
||||
num_oid: .1.3.6.1.4.1.17713.5.12.8.
|
||||
index: 'receiveModulationMode.{{ $index }}'
|
||||
descr: Receive Modulation Mode
|
||||
states:
|
||||
- { value: 1, generic: 0, graph: 1, descr: modBpsk50percent }
|
||||
- { value: 2, generic: 0, graph: 1, descr: modQpsk50percentSingle }
|
||||
- { value: 3, generic: 0, graph: 1, descr: modQpsk75percentSingle }
|
||||
- { value: 4, generic: 0, graph: 1, descr: mod16qam50percentSingle }
|
||||
- { value: 5, generic: 0, graph: 1, descr: mod16qam75percentSingle }
|
||||
- { value: 6, generic: 0, graph: 1, descr: mod64qam67percentSingle }
|
||||
- { value: 7, generic: 0, graph: 1, descr: mod64qam83percentSingle }
|
||||
- { value: 8, generic: 0, graph: 1, descr: modReserved1 }
|
||||
- { value: 9, generic: 0, graph: 1, descr: modQpsk50percentDual }
|
||||
- { value: 10, generic: 0, graph: 1, descr: modQpsk75percentDual }
|
||||
- { value: 11, generic: 0, graph: 1, descr: mod16qam50percentDual }
|
||||
- { value: 12, generic: 0, graph: 1, descr: mod16qam75percentDual }
|
||||
- { value: 13, generic: 0, graph: 1, descr: mod64qam67percentDual }
|
||||
- { value: 14, generic: 0, graph: 1, descr: mod64qam83percentDual }
|
||||
- { value: 15, generic: 0, graph: 1, descr: modReserved2 }
|
68
includes/definitions/discovery/ptp600.yaml
Normal file
68
includes/definitions/discovery/ptp600.yaml
Normal file
@@ -0,0 +1,68 @@
|
||||
mib: CAMBIUM-PTP600-MIB
|
||||
modules:
|
||||
sensors:
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: transmitModulationMode
|
||||
num_oid: .1.3.6.1.4.1.17713.6.12.9.
|
||||
index: 'transmitModulationMode.{{ $index }}'
|
||||
descr: Transmit Modulation Mode
|
||||
states:
|
||||
- { value: 0, generic: 0, graph: 1, descr: modAcquisition }
|
||||
- { value: 1, generic: 0, graph: 1, descr: modBpsk63percent }
|
||||
- { value: 2, generic: 0, graph: 1, descr: modQpsk63percentSingle }
|
||||
- { value: 3, generic: 0, graph: 1, descr: modTransient1 }
|
||||
- { value: 4, generic: 0, graph: 1, descr: modQpsk87percentSingle }
|
||||
- { value: 5, generic: 0, graph: 1, descr: modTransient2 }
|
||||
- { value: 6, generic: 0, graph: 1, descr: mod16qam63percentSingleA }
|
||||
- { value: 7, generic: 0, graph: 1, descr: modTransient3 }
|
||||
- { value: 8, generic: 0, graph: 1, descr: mod16qam87percentSingle }
|
||||
- { value: 9, generic: 0, graph: 1, descr: modTransient4 }
|
||||
- { value: 10, generic: 0, graph: 1, descr: mod64qam75percentSingle }
|
||||
- { value: 11, generic: 0, graph: 1, descr: modTransient5 }
|
||||
- { value: 12, generic: 0, graph: 1, descr: mod64qam92percentSingle }
|
||||
- { value: 13, generic: 0, graph: 1, descr: modTransient6 }
|
||||
- { value: 14, generic: 0, graph: 1, descr: mod256qam81percentSingle }
|
||||
- { value: 15, generic: 0, graph: 1, descr: mod16qam63percentSingleB }
|
||||
- { value: 16, generic: 0, graph: 1, descr: mod16qam63percentDual }
|
||||
- { value: 17, generic: 0, graph: 1, descr: modTransient7 }
|
||||
- { value: 18, generic: 0, graph: 1, descr: mod16qam87percentDual }
|
||||
- { value: 19, generic: 0, graph: 1, descr: modTransient8 }
|
||||
- { value: 20, generic: 0, graph: 1, descr: mod64qam75percentDual }
|
||||
- { value: 21, generic: 0, graph: 1, descr: modTransient9 }
|
||||
- { value: 22, generic: 0, graph: 1, descr: mod64qam92percentDual }
|
||||
- { value: 23, generic: 0, graph: 1, descr: modTransient10 }
|
||||
- { value: 24, generic: 0, graph: 1, descr: mod256qam81percentDual }
|
||||
-
|
||||
oid: receiveModulationMode
|
||||
num_oid: .1.3.6.1.4.1.17713.6.12.8
|
||||
index: 'receiveModulationMode.{{ $index }}'
|
||||
descr: Receive Modulation Mode
|
||||
states:
|
||||
- { value: 0, generic: 0, graph: 1, descr: modAcquisition }
|
||||
- { value: 1, generic: 0, graph: 1, descr: modBpsk63percent }
|
||||
- { value: 2, generic: 0, graph: 1, descr: modQpsk63percentSingle }
|
||||
- { value: 3, generic: 0, graph: 1, descr: modTransient1 }
|
||||
- { value: 4, generic: 0, graph: 1, descr: modQpsk87percentSingle }
|
||||
- { value: 5, generic: 0, graph: 1, descr: modTransient2 }
|
||||
- { value: 6, generic: 0, graph: 1, descr: mod16qam63percentSingleA }
|
||||
- { value: 7, generic: 0, graph: 1, descr: modTransient3 }
|
||||
- { value: 8, generic: 0, graph: 1, descr: mod16qam87percentSingle }
|
||||
- { value: 9, generic: 0, graph: 1, descr: modTransient4 }
|
||||
- { value: 10, generic: 0, graph: 1, descr: mod64qam75percentSingle }
|
||||
- { value: 11, generic: 0, graph: 1, descr: modTransient5 }
|
||||
- { value: 12, generic: 0, graph: 1, descr: mod64qam92percentSingle }
|
||||
- { value: 13, generic: 0, graph: 1, descr: modTransient6 }
|
||||
- { value: 14, generic: 0, graph: 1, descr: mod256qam81percentSingle }
|
||||
- { value: 15, generic: 0, graph: 1, descr: mod16qam63percentSingleB }
|
||||
- { value: 16, generic: 0, graph: 1, descr: mod16qam63percentDual }
|
||||
- { value: 17, generic: 0, graph: 1, descr: modTransient7 }
|
||||
- { value: 18, generic: 0, graph: 1, descr: mod16qam87percentDual }
|
||||
- { value: 19, generic: 0, graph: 1, descr: modTransient8 }
|
||||
- { value: 20, generic: 0, graph: 1, descr: mod64qam75percentDual }
|
||||
- { value: 21, generic: 0, graph: 1, descr: modTransient9 }
|
||||
- { value: 22, generic: 0, graph: 1, descr: mod64qam92percentDual }
|
||||
- { value: 23, generic: 0, graph: 1, descr: modTransient10 }
|
||||
- { value: 24, generic: 0, graph: 1, descr: mod256qam81percentDual }
|
||||
|
31
includes/definitions/discovery/ptp800.yaml
Normal file
31
includes/definitions/discovery/ptp800.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
mib: CAMBIUM-PTP800-MIB
|
||||
modules:
|
||||
sensors:
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: transmitModulation
|
||||
num_oid: .1.3.6.1.4.1.17713.8.12.9.
|
||||
index: 'transmitModulation.{{ $index }}'
|
||||
descr: Transmit Modulation Mode
|
||||
states:
|
||||
- { value: 0, generic: 0, graph: 1, descr: modQPSK }
|
||||
- { value: 1, generic: 0, graph: 1, descr: mod8PSK }
|
||||
- { value: 2, generic: 0, graph: 1, descr: mod16QAM }
|
||||
- { value: 3, generic: 0, graph: 1, descr: mod32QAM }
|
||||
- { value: 4, generic: 0, graph: 1, descr: mod64QAM }
|
||||
- { value: 5, generic: 0, graph: 1, descr: mod128QAM }
|
||||
- { value: 6, generic: 0, graph: 1, descr: mod256QAM }
|
||||
-
|
||||
oid: receiveModulation
|
||||
num_oid: .1.3.6.1.4.1.17713.8.12.8.
|
||||
index: 'receiveModulation.{{ $index }}'
|
||||
descr: Receive Modulation Mode
|
||||
states:
|
||||
- { value: 0, generic: 0, graph: 1, descr: modQPSK }
|
||||
- { value: 1, generic: 0, graph: 1, descr: mod8PSK }
|
||||
- { value: 2, generic: 0, graph: 1, descr: mod16QAM }
|
||||
- { value: 3, generic: 0, graph: 1, descr: mod32QAM }
|
||||
- { value: 4, generic: 0, graph: 1, descr: mod64QAM }
|
||||
- { value: 5, generic: 0, graph: 1, descr: mod128QAM }
|
||||
- { value: 6, generic: 0, graph: 1, descr: mod256QAM }
|
@@ -5,6 +5,8 @@ icon: cambium
|
||||
mib_dir: cambium
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_wireless_ssr, text: 'Device SSR' }
|
||||
- { graph: device_wireless_rate, text: 'Device Rate' }
|
||||
group: cambium
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
|
13
includes/definitions/ptp500.yaml
Normal file
13
includes/definitions/ptp500.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
os: ptp500
|
||||
text: 'Cambium PTP 300/500'
|
||||
type: wireless
|
||||
icon: cambium
|
||||
mib_dir: cambium/500
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_wireless_ssr, text: 'Device SSR' }
|
||||
- { graph: device_wireless_rate, text: 'Device Rate' }
|
||||
group: cambium
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.17713.5
|
13
includes/definitions/ptp600.yaml
Normal file
13
includes/definitions/ptp600.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
os: ptp600
|
||||
text: 'Cambium PTP 600'
|
||||
type: wireless
|
||||
icon: cambium
|
||||
mib_dir: cambium/600
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_wireless_ssr, text: 'Device SSR' }
|
||||
- { graph: device_wireless_rate, text: 'Device Rate' }
|
||||
group: cambium
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.17713.6
|
@@ -5,6 +5,8 @@ icon: cambium
|
||||
mib_dir: cambium
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_wireless_ssr, text: 'Device SSR' }
|
||||
- { graph: device_wireless_rate, text: 'Device Rate' }
|
||||
group: cambium
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
|
12
includes/definitions/ptp800.yaml
Normal file
12
includes/definitions/ptp800.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
os: ptp800
|
||||
text: 'Cambium PTP 800'
|
||||
type: wireless
|
||||
icon: cambium
|
||||
mib_dir: cambium
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_wireless_rate, text: 'Device Rate' }
|
||||
group: cambium
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.17713.8
|
7
includes/polling/os/ptp500.inc.php
Normal file
7
includes/polling/os/ptp500.inc.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
use LibreNMS\RRD\RrdDefinition;
|
||||
|
||||
$version = $poll_device['sysDescr'];
|
||||
$masterSlaveMode = ucfirst(snmp_get($device, 'masterSlaveMode.0', '-Oqv', "CAMBIUM-PTP500-V2-MIB"));
|
||||
$hardware = 'PTP 500 '. $masterSlaveMode;
|
29
includes/polling/os/ptp600.inc.php
Normal file
29
includes/polling/os/ptp600.inc.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* ptp600.inc.php
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @package LibreNMS
|
||||
* @link http://librenms.org
|
||||
* @copyright 2017 Paul Heinrichs
|
||||
* @author Paul Heinrichs<pdheinrichs@gmail.com>
|
||||
*/
|
||||
use LibreNMS\RRD\RrdDefinition;
|
||||
|
||||
$version = $poll_device['sysDescr'];
|
||||
$masterSlaveMode = ucfirst(snmp_get($device, 'masterSlaveMode.0', '-Oqv', "CANOPY-SYS-MIB"));
|
||||
$hardware = 'PTP 600 '.$masterSlaveMode;
|
28
includes/polling/os/ptp800.inc.php
Normal file
28
includes/polling/os/ptp800.inc.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS
|
||||
*
|
||||
* ptp800.inc.php
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @package LibreNMS
|
||||
* @link http://librenms.org
|
||||
* @copyright 2018 Paul Heinrichs
|
||||
* @author Paul Heinrichs<pdheinrichs@gmail.com>
|
||||
*/
|
||||
use LibreNMS\RRD\RrdDefinition;
|
||||
|
||||
$version = $poll_device['sysDescr'];
|
||||
$hardware = 'PTP 800';
|
Reference in New Issue
Block a user