mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add Calix E7 (EXA) PON port sensors (#15145)
* Add Calix E7 (EXA) PON port sensors * oops * remove space * skip sensors on down ports * fix state generic values * 10 oid was breaking... change to 8 max * Add initial divisors... need to double check * change power to dbm as it is more useful * Add bias and limits * Test data * change skip value
This commit is contained in:
98
includes/definitions/discovery/exa.yaml
Normal file
98
includes/definitions/discovery/exa.yaml
Normal file
@@ -0,0 +1,98 @@
|
||||
modules:
|
||||
sensors:
|
||||
state:
|
||||
data:
|
||||
- oid: E7-Calix-MIB::e7OltPonPortTable
|
||||
value: E7-Calix-MIB::e7OltPonPortStatus
|
||||
num_oid: '.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.4.{{ $index }}'
|
||||
descr: '{{ $subindex0 }}/{{ $subindex1 }}/{{ $subindex2 }} Status'
|
||||
index: 'ponStatus.{{ $index }}'
|
||||
state_name: E7-Calix-MIB::e7OltPonPortStatus
|
||||
states:
|
||||
- { value: 0, descr: invalid, graph: 1, generic: 3 }
|
||||
- { value: 1, descr: linkUp, graph: 1, generic: 0 }
|
||||
- { value: 2, descr: linkDown, graph: 1, generic: 2 }
|
||||
temperature:
|
||||
data:
|
||||
- oid: E7-Calix-MIB::e7OltPonPortTable
|
||||
value: E7-Calix-MIB::e7OltPonPortTemperature
|
||||
num_oid: '.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.5.{{ $index }}'
|
||||
descr: '{{ $subindex0 }}/{{ $subindex1 }}/{{ $subindex2 }} Tempurature'
|
||||
group: PON
|
||||
low_limit: -40
|
||||
low_warn_limit: -25
|
||||
warn_limit: 70
|
||||
high_limit: 85
|
||||
skip_values:
|
||||
-
|
||||
oid: E7-Calix-MIB::e7OltPonPortStatus
|
||||
op: '!='
|
||||
value: 1
|
||||
dbm:
|
||||
data:
|
||||
- oid: E7-Calix-MIB::e7OltPonPortTable
|
||||
value: E7-Calix-MIB::e7OltPonPortTxPower
|
||||
num_oid: '.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.7.{{ $index }}'
|
||||
descr: '{{ $subindex0 }}/{{ $subindex1 }}/{{ $subindex2 }} TX Power'
|
||||
group: PON
|
||||
divisor: 10000
|
||||
user_func: mw_to_dbm
|
||||
low_limit: 0
|
||||
low_warn_limit: 0.2
|
||||
warn_limit: 5.8
|
||||
high_limit: 6
|
||||
index: 'tx.{{ $index }}'
|
||||
skip_values:
|
||||
- oid: E7-Calix-MIB::e7OltPonPortStatus
|
||||
op: '!='
|
||||
value: 1
|
||||
|
||||
- oid: E7-Calix-MIB::e7OltPonPortTable
|
||||
value: E7-Calix-MIB::e7OltPonPortRxPower
|
||||
num_oid: '.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.8.{{ $index }}'
|
||||
descr: '{{ $subindex0 }}/{{ $subindex1 }}/{{ $subindex2 }} RX Power'
|
||||
group: PON
|
||||
divisor: 10000
|
||||
user_func: mw_to_dbm
|
||||
low_limit: -28
|
||||
low_warn_limit: -27
|
||||
warn_limit: -7
|
||||
high_limit: -8
|
||||
index: 'rx.{{ $index }}'
|
||||
skip_values:
|
||||
-
|
||||
oid: E7-Calix-MIB::e7OltPonPortStatus
|
||||
op: '!='
|
||||
value: 1
|
||||
voltage:
|
||||
data:
|
||||
- oid: E7-Calix-MIB::e7OltPonPortTable
|
||||
value: E7-Calix-MIB::e7OltPonPortVoltage
|
||||
num_oid: '.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.9.{{ $index }}'
|
||||
descr: '{{ $subindex0 }}/{{ $subindex1 }}/{{ $subindex2 }} Voltage'
|
||||
group: PON
|
||||
divisor: 1000
|
||||
low_limit: 3
|
||||
low_warn_limit: 3.1
|
||||
warn_limit: 3.5
|
||||
high_limit: 3.6
|
||||
skip_values:
|
||||
-
|
||||
oid: E7-Calix-MIB::e7OltPonPortStatus
|
||||
op: '!='
|
||||
value: 1
|
||||
current:
|
||||
data:
|
||||
- oid: E7-Calix-MIB::e7OltPonPortTable
|
||||
value: E7-Calix-MIB::e7OltPonPortTxBias
|
||||
num_oid: '.1.3.6.1.4.1.6321.1.2.2.2.1.6.2.1.6.{{ $index }}'
|
||||
descr: '{{ $subindex0 }}/{{ $subindex1 }}/{{ $subindex2 }} TX Bias'
|
||||
group: PON
|
||||
divisor: 1000000
|
||||
warn_limit: 80
|
||||
high_limit: 100
|
||||
skip_values:
|
||||
-
|
||||
oid: E7-Calix-MIB::e7OltPonPortStatus
|
||||
op: '!='
|
||||
value: 1
|
@@ -7,6 +7,7 @@ icon: calix
|
||||
mib_dir: calix
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
snmp_max_oid: 8
|
||||
discovery:
|
||||
-
|
||||
sysObjectID:
|
||||
|
183054
tests/data/exa_pon.json
Normal file
183054
tests/data/exa_pon.json
Normal file
File diff suppressed because it is too large
Load Diff
4016
tests/snmpsim/exa_pon.snmprec
Normal file
4016
tests/snmpsim/exa_pon.snmprec
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user