towerops/priv/profiles/os_discovery/fs-switch.yaml
2026-01-21 14:30:04 -06:00

181 lines
10 KiB
YAML

# FS-MIB entries are for the S3900 (non -R) series
# They are most likely manufactured by Accton.
# The MIB FS-MIB file is very simmilar to the edgecos MIB files (with fiberstore using their own enterprise ID)
#
# SWITCH MIB entries are for centec based switches where Fiberstore forgot to change the enterprise IDs
# e.g. the S5800-8TF12S before version 5.3.11.r3
modules:
mempools:
data:
-
total: SWITCH::memTotalReal
free: SWITCH::memTotalFree
used: SWITCH::memTotalUsed
precision: 1024
descr: 'Chassis Memory'
-
total: FS-MIB::memoryTotal
free: FS-MIB::memoryFreed
used: FS-MIB::memoryAllocated
precision: 1024
descr: 'Memory'
os:
hardware:
- SWITCH::lswSlotCurrentType.1.1
- FS-MIB::swProdName.0
version:
- SWITCH::version.0
- FS-MIB::swOpCodeVer.1
serial:
- SWITCH::lswSlotSerialNo.1.1
- FS-MIB::swSerialNumber.1
processors:
data:
-
oid: FS-MIB::cpuCurrentUti
value: FS-MIB::cpuCurrentUti
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.39.2.1.{{ $index }}'
descr: 'Processor'
sensors:
additional_oids:
data:
-
oid:
- IF-MIB::ifName
- FS-MIB::portMediaInfoTable
- FS-MIB::portTransceiverThresholdInfoTable
temperature:
data:
-
oid: FS-MIB::switchThermalTempValue
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.1.11.1.3.{{ $index }}'
index: 'temp1.{{ $index }}'
descr: 'Temperature Unit {{ $subindex0 }} sensor {{ $subindex1 }}'
-
oid: FS-MIB::portOpticalMonitoringInfoTable
value: FS-MIB::portOpticalMonitoringInfoTemperature
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.2.11.1.2.{{ $index }}'
descr: '{{ IF-MIB::ifName }} temperature'
index: 'portOpticalMonitoringInfoTemperature.{{ $index }}'
group: 'Transceiver: {{ IF-MIB::ifName }} (Vendor: {{ FS-MIB::portMediaInfoVendorName }} PN: {{ FS-MIB::portMediaInfoPartNumber }} S/N: {{ FS-MIB::portMediaInfoSerialNumber }})'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
low_limit: FS-MIB::portTransceiverThresholdInfoTemperatureLowAlarm
low_warn_limit: FS-MIB::portTransceiverThresholdInfoTemperatureLowWarn
warn_limit: FS-MIB::portTransceiverThresholdInfoTemperatureHighWarn
high_limit: FS-MIB::portTransceiverThresholdInfoTemperatureHighAlarm
user_func: \LibreNMS\OS\FsSwitch::normalizeTransceiverValues
voltage:
data:
-
oid: FS-MIB::portOpticalMonitoringInfoTable
value: FS-MIB::portOpticalMonitoringInfoVcc
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.2.11.1.3.{{ $index }}'
descr: '{{ IF-MIB::ifName }} voltage'
index: 'portOpticalMonitoringInfoVcc.{{ $index }}'
group: 'Transceiver: {{ IF-MIB::ifName }} (Vendor: {{ FS-MIB::portMediaInfoVendorName }} PN: {{ FS-MIB::portMediaInfoPartNumber }} S/N: {{ FS-MIB::portMediaInfoSerialNumber }})'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
low_limit: FS-MIB::portTransceiverThresholdInfoVccLowAlarm
low_warn_limit: FS-MIB::portTransceiverThresholdInfoVccLowWarn
warn_limit: FS-MIB::portTransceiverThresholdInfoVccHighWarn
high_limit: FS-MIB::portTransceiverThresholdInfoVccHighAlarm
user_func: \LibreNMS\OS\FsSwitch::normalizeTransceiverValues
current:
data:
-
oid: FS-MIB::portOpticalMonitoringInfoTable
value: FS-MIB::portOpticalMonitoringInfoTxBiasCurrent
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.2.11.1.4.{{ $index }}'
descr: '{{ IF-MIB::ifName }} current'
index: 'portOpticalMonitoringInfoTxBiasCurrent.{{ $index }}'
group: 'Transceiver: {{ IF-MIB::ifName }} (Vendor: {{ FS-MIB::portMediaInfoVendorName }} PN: {{ FS-MIB::portMediaInfoPartNumber }} S/N: {{ FS-MIB::portMediaInfoSerialNumber }})'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
low_limit: FS-MIB::portTransceiverThresholdInfoTxBiasCurrentLowAlarm
low_warn_limit: FS-MIB::portTransceiverThresholdInfoTxBiasCurrentLowWarn
warn_limit: FS-MIB::portTransceiverThresholdInfoTxBiasCurrentHighWarn
high_limit: FS-MIB::portTransceiverThresholdInfoTxBiasCurrentHighAlarm
user_func: \LibreNMS\OS\FsSwitch::normalizeTransceiverValuesCurrent
dbm:
data:
-
oid: FS-MIB::portOpticalMonitoringInfoTable
value: FS-MIB::portOpticalMonitoringInfoTxPower
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.2.11.1.5.{{ $index }}'
descr: '{{ IF-MIB::ifName }} TxPower'
index: 'portOpticalMonitoringInfoTxPower.{{ $index }}'
group: 'Transceiver: {{ IF-MIB::ifName }} (Vendor: {{ FS-MIB::portMediaInfoVendorName }} PN: {{ FS-MIB::portMediaInfoPartNumber }} S/N: {{ FS-MIB::portMediaInfoSerialNumber }})'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
low_limit: FS-MIB::portTransceiverThresholdInfoTxPowerLowAlarm
low_warn_limit: FS-MIB::portTransceiverThresholdInfoTxPowerLowWarn
warn_limit: FS-MIB::portTransceiverThresholdInfoTxPowerHighWarn
high_limit: FS-MIB::portTransceiverThresholdInfoTxPowerHighAlarm
user_func: \LibreNMS\OS\FsSwitch::normalizeTransceiverValues
-
oid: FS-MIB::portOpticalMonitoringInfoTable
value: FS-MIB::portOpticalMonitoringInfoRxPower
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.2.11.1.6.{{ $index }}'
descr: '{{ IF-MIB::ifName }} RxPower'
index: 'portOpticalMonitoringInfoRxPower.{{ $index }}'
group: 'Transceiver: {{ IF-MIB::ifName }} (Vendor: {{ FS-MIB::portMediaInfoVendorName }} PN: {{ FS-MIB::portMediaInfoPartNumber }} S/N: {{ FS-MIB::portMediaInfoSerialNumber }})'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
low_limit: FS-MIB::portTransceiverThresholdInfoRxPowerLowAlarm
low_warn_limit: FS-MIB::portTransceiverThresholdInfoRxPowerLowWarn
warn_limit: FS-MIB::portTransceiverThresholdInfoRxPowerHighWarn
high_limit: FS-MIB::portTransceiverThresholdInfoRxPowerHighAlarm
user_func: \LibreNMS\OS\FsSwitch::normalizeTransceiverValues
state:
data:
-
oid: FS-MIB::switchOperState
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.1.4.{{ $index }}'
descr: 'Oper State'
state_name: FS-MIB::switchOperState
states:
- { value: 1, generic: 3, descr: other, graph: 0 }
- { value: 2, generic: 3, descr: unknown, graph: 0 }
- { value: 3, generic: 0, descr: ok, graph: 0 }
- { value: 4, generic: 1, descr: noncritical, graph: 0 }
- { value: 5, generic: 2, descr: critical, graph: 0 }
- { value: 6, generic: 2, descr: unrecoverable, graph: 0 }
-
oid: FS-MIB::swPowerStatus
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.1.3.1.8.{{ $index }}'
descr: 'Power status'
state_name: FS-MIB::swPowerStatus
states:
- { value: 1, generic: 0, graph: 1, descr: internalPower }
- { value: 2, generic: 0, graph: 1, descr: redundantPower }
- { value: 3, generic: 0, graph: 1, descr: internalAndRedundantPower }
-
oid: FS-MIB::swIndivPowerStatus
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.1.6.1.3.{{ $index }}'
descr: 'Power Unit {{ $subindex0 }} (Internal) status'
state_name: FS-MIB::swIndivPowerStatus
states:
- { value: 1, generic: 1, graph: 1, descr: notPresent }
- { value: 2, generic: 0, graph: 1, descr: green }
- { value: 3, generic: 2, graph: 1, descr: red }
skip_values:
-
oid: index
op: not_ends
value: '.1'
-
oid: FS-MIB::swIndivPowerStatus
num_oid: '.1.3.6.1.4.1.52642.2.1.45.1.1.6.1.3.{{ $index }}'
descr: 'Power Unit {{ $subindex0 }} (External) status'
state_name: FS-MIB::swIndivPowerStatus
states:
- { value: 1, generic: 1, graph: 1, descr: notPresent }
- { value: 2, generic: 0, graph: 1, descr: green }
- { value: 3, generic: 2, graph: 1, descr: red }
skip_values:
-
oid: index
op: not_ends
value: '.2'