librenms/includes/definitions/discovery/packetlight.yaml
Tony Murray 941037e44e
Convert OS discovery to new style (#12099)
* terra

* airos

* port cisco os polling
old wwan polling was broken and deprecated anyway

* enterasys

* Brother, a few changes

* AW Plus

* Fabos

* set expected test data

* 3com

* Adva FSP150

* advantech

* airos-af

* aix

* akcp

* allied

* allworx and missed mibs

* anyos

* fixup some zyxel shared stuffs
zywall graph polling

* aos

* apc

* apex

* apsoluteos

* fix copyrights

* arris

* arris

* aruba-instant

* ArubaOS

* Ascom

* asuswrt-merlin, ats

* audiocodes

* avocent

* avtech

* barracuda

* binox

* boss

* canonprinter

* cdata

* ceraos

* ciena-waveserver

* fix 3com

* fix airos

* fix brother yaml?

* fix aos more

* fix and improve apc

* fix arista test data

* yaml discovery (basic)

* cimc

* mib not used

* remove old discovery file

* ciscosat

* ciscosb fixes + improvements

* comware

* ctm

* cumulus

* cxr-ts

* cyberoam-utm

* cyberpower

* dahua-nvr

* dasan-nos

* datadomain

* dcn-software and fallback oids

* dd-wrt

* dell-laser

* d*

* e* and location

* forti, post processing, oid coalescing

* Freebsd array of sysDescr regex

* finish f*

* g*

* h*

* i* WIP

* i*

* Junos

* j*

* k*

* unix refactor previous to yaml more
inject $device

* fixes

* fixes

* l*

* m*

* n* ability to set other fields in regex
tnmsne polling to eloquent

* o*

* p*

* q* + bonus calix

* r*

* s* WIP

* s*

* t*

* u*

* v*
rework vrp to yaml (hybrid)

* w*

* x*

* z*

* a* easy no-data

* fixes

* style fixes

* missed ApexPlus

* fix signature

* Add missing location data

* rename getDevice functions

* add new cisco ftd data

* update docs

* revert sill snmp format

* fix snmp options

* update for new smartax test data

* rebase dsm

* fix voss
2020-09-18 15:12:07 +02:00

200 lines
9.0 KiB
YAML

mib: SL-EDFA-MIB:SL-MAIN-MIB:SL-SFP-MIB:IF-MIB
modules:
os:
hardware:
- .1.3.6.1.4.1.4515.1.3.6.1.1.1.2.0 # SL-ENTITY-MIB::slEntPhysicalDescr.0
- .1.3.6.1.4.1.4515.1.3.6.1.1.1.4.0 # SL-ENTITY-MIB::slEntPhysicalHardwareRev.0
hardware_template: '{{ .1.3.6.1.4.1.4515.1.3.6.1.1.1.2.0 }} rev {{ .1.3.6.1.4.1.4515.1.3.6.1.1.1.4.0 }}'
serial: .1.3.6.1.4.1.4515.1.3.6.1.1.1.7.0 # SL-ENTITY-MIB::slEntPhysicalSerialNum.0
version: .1.3.6.1.4.1.4515.1.3.6.1.1.1.5.0 # SL-ENTITY-MIB::slEntPhysicalFirmwareRev.0
processors:
data:
-
oid: hwEntityStateEntry
value: hwEntityCpuUsage
num_oid: '.1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.{{ $index }}'
descr: '{{ $entPhysicalName }} Processor'
skip_values:
-
oid: hwEntityOperStatus
op: '!='
value: 3
sensors:
pre-cache:
data:
-
oid:
- ifDescr
- ifAlias
- ifAdminStatus
- sfpConfigVendorPN
- sfpConfigVendorSN
temperature:
data:
-
oid: slmSysTemperature
value: slmSysTemperature
num_oid: '.1.3.6.1.4.1.4515.1.3.1.43.{{ $index }}'
descr: 'Temperature'
index: 'sys-temp-{{ $index }}'
group: 'System'
-
oid: sfpDiagTable
value: sfpDiagModuleTemperature
num_oid: '.1.3.6.1.4.1.4515.1.10.2.1.1.34.{{ $index }}'
descr: '{{ $ifDescr }} {{ $ifAlias }} Temperature'
index: 'opt-temp-{{ $index }}'
group: 'Optic {{ $sfpConfigVendorPN }}, {{ $sfpConfigVendorSN }}'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
user_func: '\LibreNMS\OS\Packetlight::offsetSfpTemperature'
divisor: 256
skip_values:
-
oid: sfpDiagModuleTemperature
op: '='
value: 0
-
oid: sfpDiagModuleTemperature
op: '='
value: 32768
-
oid: sfpDiagModuleTemperature
op: '='
value: -32768
count:
data:
-
oid: edfaConfigTable
value: edfaOscChannel
num_oid: '.1.3.6.1.4.1.4515.1.9.1.1.1.31.{{ $index }}'
descr: '{{ $ifDescr }} WaveLength'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
group: '{{ $edfaFreeDescription }}'
dbm:
data:
-
oid: edfaConfigTable
value: edfaRxPower
num_oid: '.1.3.6.1.4.1.4515.1.9.1.1.1.3.{{ $index }}'
descr: '{{ $ifDescr }} Rx Power'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
user_func: '\LibreNMS\OS\Packetlight::offsetSfpDbm'
divisor: 10
group: '{{ $edfaFreeDescription }}'
-
oid: edfaConfigTable
value: edfaAdminOutputPower
num_oid: '.1.3.6.1.4.1.4515.1.9.1.1.1.13.{{ $index }}'
descr: '{{ $ifDescr }} Admin Output Power'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
index: 'edfaAdminOutputPower-{{ $index }}'
user_func: '\LibreNMS\OS\Packetlight::offsetSfpDbm'
divisor: 10
group: '{{ $edfaFreeDescription }}'
-
oid: edfaConfigTable
value: edfaOperOutputPower
num_oid: '.1.3.6.1.4.1.4515.1.9.1.1.1.14.{{ $index }}'
descr: '{{ $ifDescr }} Oper Output Power'
entPhysicalIndex: '{{ $index }}'
divisor: 10
entPhysicalIndex_measured: ports
index: 'edfaOperOutputPower-{{ $index }}'
group: '{{ $edfaFreeDescription }}'
-
oid: sfpDiagTable
value: sfpDiagTxOutputPower
num_oid: '.1.3.6.1.4.1.4515.1.10.2.1.1.37.{{ $index }}'
descr: '{{ $ifDescr }} Tx'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
index: 'txout-{{ $index }}'
group: 'Optic {{ $sfpConfigVendorPN }}, {{ $sfpConfigVendorSN }}'
high_limit: sfpDiagHighTxPowerAlmThreshold
low_limit: sfpDiagLowTxPowerAlmThreshold
user_func: '\LibreNMS\OS\Packetlight::convertWattToDbm'
skip_values:
-
oid: ifAdminStatus
op: '!='
value: 1
-
oid: sfpDiagHighTxPowerAlmThreshold
op: '='
value: 0
-
oid: sfpDiagTable
value: sfpDiagRxInputPower
num_oid: '.1.3.6.1.4.1.4515.1.10.2.1.1.38.{{ $index }}'
descr: '{{ $ifDescr }} Rx'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
index: 'Rxin-{{ $index }}'
group: 'Optic {{ $sfpConfigVendorPN }}, {{ $sfpConfigVendorSN }}'
high_limit: sfpDiagHighRxPowerAlmThreshold
low_limit: sfpDiagLowRxPowerAlmThreshold
user_func: '\LibreNMS\OS\Packetlight::convertWattToDbm'
skip_values:
-
oid: ifAdminStatus
op: '!='
value: 1
-
oid: sfpDiagHighRxPowerAlmThreshold
op: '='
value: 0
quality_factor:
data:
-
oid: edfaConfigTable
value: edfaAdminGain
num_oid: '.1.3.6.1.4.1.4515.1.9.1.1.1.11.{{ $index }}'
descr: '{{ $ifDescr }} Admin Gain (dB)'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
divisor: 10
index: 'edfaAdmGain-{{ $index }}'
group: '{{ $edfaFreeDescription }}'
-
oid: edfaConfigTable
value: edfaOperGain
num_oid: '.1.3.6.1.4.1.4515.1.9.1.1.1.12.{{ $index }}'
descr: '{{ $ifDescr }} Oper Gain (dB)'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
divisor: 10
index: 'edfaOpGain-{{ $index }}'
group: '{{ $edfaFreeDescription }}'
state:
data:
-
oid: edfaConfigTable
value: edfaRedBlueType
num_oid: '.1.3.6.1.4.1.4515.1.9.1.1.1.32.{{ $index }}'
descr: '{{ $ifDescr }} Red Blue Type'
group: edfaFreeDescription
state_name: edfaRedBlueType
states:
- { descr: Red, graph: 1, value: 1, generic: 0 }
- { descr: Blue, graph: 1, value: 2, generic: 0 }
- { descr: None, graph: 1, value: 3, generic: 0 }
-
oid: edfaConfigTable
value: edfaRole
num_oid: '.1.3.6.1.4.1.4515.1.9.1.1.1.33.{{ $index }}'
descr: '{{ $ifDescr }} Role'
group: edfaFreeDescription
state_name: edfaRole
states:
- { descr: booster, graph: 1, value: 1, generic: 0 }
- { descr: boosterInline, graph: 1, value: 2, generic: 0 }
- { descr: preamp, graph: 1, value: 3, generic: 0 }
- { descr: inline, graph: 1, value: 4, generic: 0 }
- { descr: raman, graph: 1, value: 5, generic: 0 }
- { descr: other, graph: 1, value: 6, generic: 0 }