Files
Tony MurrayandGitHub 63fd62ca12 Yaml value filling improvements (#15116)
* Yaml value filling improvements
search all data for fully qualified oids (to prevent incorrect matches)
Reduce searches when not needed
subindex code optimization

* fix aos7

* fix e3meterdc

* Cleanups

* fix hpe-mapdu

* fix timos add note to dev:check

* remove inconsistent Str::contains usage
2023-06-23 13:57:44 -05:00

454 lines
23 KiB
YAML

mib: TIMETRA-SYSTEM-MIB:TIMETRA-CHASSIS-MIB:TIMETRA-SUBSCRIBER-MGMT-MIB:TIMETRA-CELLULAR-MIB:IF-MIB:ALU-MICROWAVE-MIB
modules:
mempools:
data:
-
used: TIMETRA-SYSTEM-MIB::sgiKbMemoryPoolAllocated
free: TIMETRA-SYSTEM-MIB::sgiKbMemoryAvailable
precision: 1000
os:
version:
- TIMETRA-SYSTEM-MIB::sgiSwMajorVersion.0
- TIMETRA-SYSTEM-MIB::sgiSwMinorVersion.0
- TIMETRA-SYSTEM-MIB::sgiSwVersionModifier.0
version_template: '{{ TIMETRA-SYSTEM-MIB::sgiSwMajorVersion.0 }}.{{ TIMETRA-SYSTEM-MIB::sgiSwMinorVersion.0 }}.{{ TIMETRA-SYSTEM-MIB::sgiSwVersionModifier.0 }}'
processors:
data:
-
oid: sgiCpuUsage
num_oid: '.1.3.6.1.4.1.6527.3.1.2.1.1.1.{{ $index }}'
sensors:
pre-cache:
data:
-
oid:
- ifName
- tmnxCellPdnApn
- tmnxPortAdminStatus
- tmnxPortSFPNumLanes
snmp_flags: ['-OtbeQUs']
state:
data:
-
oid: tmnxHwTable
value: tmnxHwAlarmState
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.1.8.1.24.{{ $index }}'
descr: '{{ $tmnxHwName }} {{ $tmnxHwSerialNumber }} {{ $tmnxHwFailureReason }}'
index: 'tmnxHwID.{{ $index }}'
state_name: tmnxHwAlarmState
states:
- { value: 0, generic: 3, graph: 0, descr: unknown }
- { value: 1, generic: 2, graph: 0, descr: alarmActive }
- { value: 2, generic: 0, graph: 0, descr: alarmCleared }
-
oid: tmnxChassisTable
value: tmnxChassisCriticalLEDState
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.1.3.1.12.{{ $index }}'
descr: 'Critical LED'
state_name: tmnxChassisCriticalLEDState
index: 'tmnxChassisCriticalLEDState.1'
states:
- { value: 0, generic: 3, graph: 0, descr: NotApplicable }
- { value: 1, generic: 0, graph: 0, descr: Off }
- { value: 2, generic: 2, graph: 0, descr: Red }
- { value: 3, generic: 1, graph: 0, descr: Amber }
- { value: 4, generic: 1, graph: 0, descr: Yellow }
- { value: 5, generic: 0, graph: 0, descr: Green }
- { value: 6, generic: 1, graph: 0, descr: AmberBlink }
- { value: 7, generic: 1, graph: 0, descr: YellowBlink }
- { value: 8, generic: 0, graph: 0, descr: GreenBlink }
- { value: 9, generic: 2, graph: 0, descr: RedBlink }
-
oid: tmnxChassisTable
value: tmnxChassisMajorLEDState
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.1.3.1.13.{{ $index }}'
descr: 'Major LED'
state_name: tmnxChassisMajorLEDState
index: 'tmnxChassisMajorLEDState.1'
states:
- { value: 0, generic: 3, graph: 0, descr: NotApplicable }
- { value: 1, generic: 0, graph: 0, descr: Off }
- { value: 2, generic: 2, graph: 0, descr: Red }
- { value: 3, generic: 1, graph: 0, descr: Amber }
- { value: 4, generic: 1, graph: 0, descr: Yellow }
- { value: 5, generic: 0, graph: 0, descr: Green }
- { value: 6, generic: 1, graph: 0, descr: AmberBlink }
- { value: 7, generic: 1, graph: 0, descr: YellowBlink }
- { value: 8, generic: 0, graph: 0, descr: GreenBlink }
- { value: 9, generic: 2, graph: 0, descr: RedBlink }
-
oid: tmnxChassisTable
value: tmnxChassisMinorLEDState
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.1.3.1.14.{{ $index }}'
state_name: tmnxChassisMinorLEDState
descr: 'Minor LED'
index: 'tmnxChassisMinorLEDState.1'
states:
- { value: 0, generic: 3, graph: 0, descr: NotApplicable }
- { value: 1, generic: 0, graph: 0, descr: Off }
- { value: 2, generic: 2, graph: 0, descr: Red }
- { value: 3, generic: 1, graph: 0, descr: Amber }
- { value: 4, generic: 1, graph: 0, descr: Yellow }
- { value: 5, generic: 0, graph: 0, descr: Green }
- { value: 6, generic: 1, graph: 0, descr: AmberBlink }
- { value: 7, generic: 1, graph: 0, descr: YellowBlink }
- { value: 8, generic: 0, graph: 0, descr: GreenBlink }
- { value: 9, generic: 2, graph: 0, descr: RedBlink }
-
oid: tmnxChassisTable
value: tmnxChassisOverTempState
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.1.3.1.24.{{ $index }}'
descr: 'Chassis Over Temp'
index: 'tmnxChassisOverTempState.1'
state_name: tmnxChassisOverTempState
states:
- { value: 1, generic: 0, graph: 0, descr: Ok }
- { value: 2, generic: 2, graph: 0, descr: OverTemp }
-
oid: tmnxCellPortRegistrationStatus
num_oid: '.1.3.6.1.4.1.6527.3.1.2.109.3.1.1.1.2.{{ $index }}'
descr: 'Registration state {{ ifName }}'
index: 'tmnxCellPortRegistrationStatus.{{ $index }}'
state_name: tmnxCellPortRegistrationStatus
states:
- { value: 0, generic: 0, graph: 0, descr: Not-registered }
- { value: 1, generic: 0, graph: 0, descr: Registered-home }
- { value: 2, generic: 0, graph: 0, descr: Searching }
- { value: 3, generic: 0, graph: 0, descr: Denied }
- { value: 4, generic: 0, graph: 0, descr: No-network }
- { value: 5, generic: 0, graph: 0, descr: Registered-roaming }
- { value: 6, generic: 0, graph: 0, descr: Sms-only-home }
- { value: 7, generic: 0, graph: 0, descr: Sms-only-roaming }
- { value: 8, generic: 0, graph: 0, descr: Emergency-only }
- { value: 9, generic: 0, graph: 0, descr: Csfb-not-preferred-home }
- { value: 10, generic: 0, graph: 0, descr: Csfb-not-preferred-roaming }
group: 'Cellular status'
-
oid: tmnxCellPortWirelessTechnology
num_oid: '.1.3.6.1.4.1.6527.3.1.2.109.3.1.1.1.3.{{ $index }}'
descr: 'Wireless technology {{ ifName }}'
index: 'tmnxCellPortWirelessTechnology.{{ $index }}'
state_name: tmnxCellPortWirelessTechnology
states:
- { value: 0, generic: 0, graph: 0, descr: None }
- { value: 1, generic: 0, graph: 0, descr: Lte }
- { value: 2, generic: 0, graph: 0, descr: Wcdma }
- { value: 3, generic: 0, graph: 0, descr: Gsm }
group: 'Cellular status'
-
oid: tmnxCellSimCardEquipped
num_oid: '.1.3.6.1.4.1.6527.3.1.2.109.3.1.3.1.1.{{ $index }}'
descr: 'Simcard {{ ifName:0 }}'
index: 'tmnxCellSimCardEquipped.{{ $index }}'
state_name: tmnxCellSimCardEquipped
states:
- { value: 1, generic: 0, graph: 0, descr: Installed }
- { value: 2, generic: 0, graph: 0, descr: Not installed }
group: 'Cellular status'
-
oid: tmnxCellPdnConnectionState
num_oid: '.1.3.6.1.4.1.6527.3.1.2.109.3.1.4.1.1.{{ $index }}'
descr: 'Pdn state {{ ifName:0 }} {{ $tmnxCellPdnApn }}'
index: 'tmnxCellPdnConnectionState.{{ $index }}'
state_name: tmnxCellPdnConnectionState
states:
- { value: 0, generic: 0, graph: 0, descr: Not connected }
- { value: 1, generic: 0, graph: 0, descr: Connected }
group: 'Cellular status'
-
oid: tmnxPhysChassisFanEntry
value: tmnxPhysChassisFanOperStatus
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.1.24.1.1.2.{{ $index }}'
descr: 'Fan {{ $subindex2 }}'
index: 'tmnxPhysChassisFanOperStatus.{{ $index }}'
state_name: tmnxPhysChassisFanOperStatus
group: 'Fan State'
states:
- { value: 1, generic: 3, graph: 0, descr: Unknown }
- { value: 2, generic: 3, graph: 0, descr: NotEquipped }
- { value: 3, generic: 0, graph: 0, descr: OK }
- { value: 4, generic: 2, graph: 0, descr: Failed }
- { value: 5, generic: 1, graph: 0, descr: OOS }
- { value: 6, generic: 1, graph: 0, descr: NotProvisioned }
- { value: 7, generic: 3, graph: 0, descr: NotApplicable }
-
oid: aluMwRadioTable
value: aluMwRadioAlarmState
num_oid: '.1.3.6.1.4.1.6527.6.1.2.2.7.1.2.1.12.{{ $index }}'
descr: 'Current Alarm Severity {{ $aluMwRadioName }}'
index: 'aluMwRadioPortID.{{ $index }}'
state_name: 'aluMwRadioAlarmState'
states:
- { value: 0, generic: 0, graph: 0, descr: alarmCleared }
- { value: 1, generic: 2, graph: 0, descr: Critical }
- { value: 2, generic: 2, graph: 0, descr: Major }
- { value: 3, generic: 1, graph: 0, descr: Minor }
- { value: 4, generic: 1, graph: 0, descr: Warning }
- { value: 5, generic: 3, graph: 0, descr: Indeterminate }
- { value: 6, generic: 0, graph: 0, descr: Unsupported }
- { value: 7, generic: 3, graph: 0, descr: Unknown }
-
oid: aluMwRadioTable
value: aluMwRadioTxMuted
num_oid: '.1.3.6.1.4.1.6527.6.1.2.2.7.1.2.1.20.{{ $index }}'
descr: 'Tx Mute {{ $aluMwRadioName }}'
index: 'aluMwRadioPortID.{{ $index }}'
state_name: 'aluMwRadioTxMuted'
states:
- { value: 0, generic: 3, graph: 0, descr: Unknown }
- { value: 1, generic: 0, graph: 0, descr: None }
- { value: 2, generic: 1, graph: 0, descr: Manual }
- { value: 3, generic: 0, graph: 0, descr: Auto }
temperature:
data:
-
oid: tmnxHwTable
value: tmnxHwTemperature
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.1.8.1.18.{{ $index }}'
descr: '{{ $tmnxHwName }}'
index: 'tmnxHwID.{{ $index }}'
high_limit: tmnxHwTempThreshold
skip_values:
-
oid: tmnxHwTempSensor
op: '='
value: 2
-
oid: tmnxDigitalDiagMonitorEntry
value: tmnxDDMTemperature
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.4.31.1.1.{{ $index }}'
descr: '{{ ifName:1 }}'
index: '{{ $index }}'
high_limit: tmnxDDMTempHiAlarm
warn_limit: tmnxDDMTempHiWarning
low_limit: tmnxDDMTempLowAlarm
low_warn_limit: tmnxDDMTempLowWarning
divisor: 256
-
oid: aluMwRadioInfoTable
value: aluMwRadioTemperature
num_oid: '.1.3.6.1.4.1.6527.6.1.2.2.7.1.6.1.12.{{ $index }}'
descr: 'RFU Temp {{ $aluMwRadioSerialNumber }}'
index: 'aluMwRadioPortID.{{ $index }}'
high_limit: '50'
low_limit: '-20'
current:
data:
-
oid: tmnxDigitalDiagMonitorEntry
value: tmnxDDMTxBiasCurrent
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.4.31.1.11.{{ $index }}'
descr: '{{ ifName:1 }} Tx Bias'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
index: 'tx-bias-{{ $index }}'
divisor: 500000
high_limit: tmnxDDMTxBiasCurrentHiAlarm
warn_limit: tmnxDDMTxBiasCurrentHiWarning
low_limit: tmnxDDMTxBiasCurrentLowAlarm
low_warn_limit: tmnxDDMTxBiasCurrentLowWarning
skip_values:
-
oid: tmnxDDMRxOpticalPower
op: '<='
value: 0
-
oid: tmnxPortAdminStatus
op: '='
value: 3
-
oid: tmnxDDMLaneTable
value: tmnxDDMLaneTxBiasCurrent
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.4.66.1.7.{{ $index }}'
descr: '{{ ifName:1 }} Lane {{ $subindex2 }} Tx Bias'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
index: 'tx-bias-{{ $index }}'
divisor: 500000
high_limit: tmnxDDMLaneTxBiasCurrentHiAlarm
warn_limit: tmnxDDMLaneTxBiasCurrentHiWarning
low_limit: tmnxDDMLaneTxBiasCurrentLowAlarm
low_warn_limit: tmnxDDMLaneTxBiasCurrentLowWarning
group: '{{ ifName:1 }}'
skip_values:
-
oid: tmnxDDMLaneTxBiasCurrent
op: '<='
value: 0
-
oid: tmnxPortAdminStatus
op: '='
value: 3
dbm:
data:
-
oid: tmnxDigitalDiagMonitorEntry
value: tmnxDDMRxOpticalPower
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.4.31.1.21.{{ $index }}'
descr: '{{ ifName:1 }} Rx'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
index: 'rx-{{ $index }}'
divisor: 10
high_limit: tmnxDDMRxOpticalPowerHiAlarm
warn_limit: tmnxDDMRxOpticalPowerHiWarning
low_limit: tmnxDDMRxOpticalPowerLowAlarm
low_warn_limit: tmnxDDMRxOpticalPowerLowWarning
user_func: 'uw_to_dbm'
group: '{{ ifName:1 }}'
skip_values:
-
oid: tmnxPortAdminStatus
op: '='
value: 3
-
oid: tmnxPortSFPNumLanes
op: '>'
value: 0
-
oid: tmnxDigitalDiagMonitorEntry
value: tmnxDDMTxOutputPower
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.4.31.1.16.{{ $index }}'
descr: '{{ ifName:1 }} Tx'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
index: 'tx-{{ $index }}'
divisor: 10
high_limit: tmnxDDMTxOutputPowerHiAlarm
warn_limit: tmnxDDMTxOutputPowerHiWarning
low_limit: tmnxDDMTxOutputPowerLowAlarm
low_warn_limit: tmnxDDMTxOutputPowerLowWarning
user_func: 'uw_to_dbm'
group: '{{ ifName:1 }}'
skip_values:
-
oid: tmnxPortAdminStatus
op: '='
value: 3
-
oid: tmnxPortSFPNumLanes
op: '>'
value: 0
-
oid: tmnxDDMLaneTable
value: tmnxDDMLaneRxOpticalPower
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.4.66.1.17.{{ $index }}'
descr: '{{ ifName:1 }} Lane {{ $subindex2 }} Rx'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
index: 'lane-rx-{{ $index }}'
user_func: 'uw_to_dbm'
divisor: 10
group: '{{ ifName:1 }}'
high_limit: tmnxDDMLaneRxOpticalPwrHiAlarm
warn_limit: tmnxDDMLaneRxOpticalPwrHiWarn
low_limit: tmnxDDMLaneRxOpticalPwrLowAlarm
low_warn_limit: tmnxDDMLaneRxOpticalPwrLowWarn
skip_values:
-
oid: tmnxPortAdminStatus
op: '='
value: 3
-
oid: tmnxDDMLaneTable
value: tmnxDDMLaneTxOutputPower
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.4.66.1.12.{{ $index }}'
descr: '{{ ifName:1 }} Lane {{ $subindex2 }} Tx'
entPhysicalIndex: '{{ $index }}'
entPhysicalIndex_measured: ports
index: 'lane-tx-{{ $index }}'
user_func: 'uw_to_dbm'
divisor: 10
group: '{{ ifName:1 }}'
high_limit: tmnxDDMLaneTxOutputPowerHiAlarm
warn_limit: tmnxDDMLaneTxOutputPowerHiWarn
low_limit: tmnxDDMLaneTxOutputPowerLowAlarm
low_warn_limit: tmnxDDMLaneTxOutputPowerLowWarn
skip_values:
-
oid: tmnxPortAdminStatus
op: '='
value: 3
voltage:
data:
-
oid: tmnxDigitalDiagMonitorEntry
value: tmnxDDMSupplyVoltage
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.4.31.1.6.{{ $index }}'
descr: '{{ ifName:1 }}'
index: '{{ $index }}'
high_limit: tmnxDDMSupplyVoltageHiAlarm
warn_limit: tmnxDDMSupplyVoltageHiWarning
low_limit: tmnxDDMSupplyVoltageLowAlarm
low_warn_limit: tmnxDDMSupplyVoltageLowWarning
divisor: 10000
percent:
data:
-
oid: tmnxPhysChassisFanTable
value: tmnxPhysChassisFanSpeedPercent
num_oid: '.1.3.6.1.4.1.6527.3.1.2.2.1.24.1.1.5.{{ $index }}'
descr: 'Fan {{ $subindex2 }}'
group: 'Chassis {{ $subindex0 }}-{{ $subindex1 }}'
warn_limit: 90
high_limit: 95
low_limit: 0
index: '{{ $index }}'
snmp_flags: ['-OtbeQUs']
count:
data:
-
oid: tmnxSubMgmtSystStatsTable
value: tmnxSubMgmtSystSSubscribers
num_oid: '.1.3.6.1.4.1.6527.3.1.2.33.1.107.1.65.{{ $index }}'
descr: 'Active subscribers on this system'
index: 'tmnxSubMgmtSystSSubscribers.{{ $index }}'
group: 'Subscribers'
-
oid: tmnxSubMgmtSystStatsTable
value: tmnxSubMgmtSystSV4
num_oid: '.1.3.6.1.4.1.6527.3.1.2.33.1.107.1.25.{{ $index }}'
descr: 'V4 hosts on this system'
index: 'tmnxSubMgmtSystSV4.{{ $index }}'
group: 'Subscribers'
-
oid: tmnxSubMgmtSystStatsTable
value: tmnxSubMgmtSystSV6
num_oid: '.1.3.6.1.4.1.6527.3.1.2.33.1.107.1.27.{{ $index }}'
descr: 'V6 hosts on this system'
index: 'tmnxSubMgmtSystSV6.{{ $index }}'
group: 'Subscribers'
-
oid: tmnxSubMgmtSystStatsTable
value: tmnxSubMgmtSystSTotal
num_oid: '.1.3.6.1.4.1.6527.3.1.2.33.1.107.1.33.{{ $index }}'
descr: 'Total hosts on this system'
index: 'tmnxSubMgmtSystSTotal.{{ $index }}'
group: 'Subscribers'
-
oid: tmnxCellPortFrequencyBand
num_oid: '.1.3.6.1.4.1.6527.3.1.2.109.3.1.1.1.4.{{ $index }}'
descr: 'Interface {{ ifName }}'
index: 'tmnxCellPortFrequencyBand.{{ $index }}'
group: 'Frequency band'
-
oid: tmnxCellularPortBearerTable
value: tmnxCellPortBearerQci
num_oid: '.1.3.6.1.4.1.6527.3.1.2.109.3.1.5.1.3.{{ $index }}'
descr: 'Interface {{ ifName:0 }}'
index: 'tmnxCellularPortBearerTable.{{ $index }}'
group: 'QoS Class Identifier'
frequency:
data:
-
oid: aluMwRadioTable
value: aluMwRadioFrequency
num_oid: '.1.3.6.1.4.1.6527.6.1.2.2.7.1.2.1.11.{{ $index }}'
descr: 'RFU Frequency Band {{ $aluMwRadioName }}'
multiplier: 1000000
index: 'aluMwRadioPortID.{{ $index }}'