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

103 lines
No EOL
4.7 KiB
YAML

mib: CISCOSB-rndMng:CISCOSB-HWENVIROMENT:CISCOSB-POE-MIB
modules:
os:
sysDescr_regex:
- '/(?<hardware>S.+-\d+) \d/'
- '/(?<hardware>CBS[^\s]+) /'
hardware: CISCOSB-Physicaldescription-MIB::rlPhdUnitGenParamModelName.1
serial: CISCOSB-Physicaldescription-MIB::rlPhdUnitGenParamSerialNum.1
features: CISCOSB-Physicaldescription-MIB::rlPhdUnitGenParamServiceTag.1
processors:
data:
-
oid: rlCpuUtilDuringLastMinute
num_oid: '.1.3.6.1.4.1.9.6.1.101.1.8.{{ $index }}'
descr: CPU
sensors:
state:
data:
-
oid: rlEnvMonFanState
value: rlEnvMonFanState
num_oid: '.1.3.6.1.4.1.9.6.1.101.83.1.1.1.3.{{ $index }}'
descr: 'FAN {{ $index }} Status'
index: '{{ $index }}'
states:
- { value: 1, descr: normal, graph: 1, generic: 0 }
- { value: 2, descr: wrning, graph: 1, generic: 1 }
- { value: 3, descr: critical, graph: 1, generic: 2 }
- { value: 4, descr: shutdown, graph: 1, generic: 2 }
- { value: 5, descr: notPresent, graph: 1, generic: 3 }
- { value: 6, descr: notFunctioning, graph: 1, generic: 2 }
skip_values:
-
oid: rlEnvMonFanState
op: '=='
value: 5
-
oid: rlEnvMonSupplyState
value: rlEnvMonSupplyState
num_oid: '.1.3.6.1.4.1.9.6.1.101.83.1.2.1.3.{{ $index }}'
descr: 'PSU {{ $index }} Status'
index: '{{ $index }}'
states:
- { value: 1, descr: normal, graph: 1, generic: 0 }
- { value: 2, descr: wrning, graph: 1, generic: 1 }
- { value: 3, descr: critical, graph: 1, generic: 2 }
- { value: 4, descr: shutdown, graph: 1, generic: 2 }
- { value: 5, descr: notPresent, graph: 1, generic: 3 }
- { value: 6, descr: notFunctioning, graph: 1, generic: 2 }
skip_values:
-
oid: rlEnvMonSupplyState
op: '=='
value: 5
# power:
# data:
# -
# oid: rlPethPsePortOutputPower
# value: rlPethPsePortOutputPower
# num_oid: '.1.3.6.1.4.1.9.6.1.101.108.1.1.5.{{ $index }}'
# index: '{{ $index }}'
# descr: 'POE Usage Port {{ $index }}'
# divisor: 1000
# high_limit: rlPethPsePortOperPowerLimit
temperature:
data:
-
oid: rlEnvFanDataTemp
value: rlEnvFanDataTemp
num_oid: '.1.3.6.1.4.1.9.6.1.101.83.5.1.1.2.{{ $index }}'
index: '{{ $index }}'
descr: 'FAN {{ $index }} Temperature'
# user_func: fahrenheit_to_celsius
warn_limit: 91
high_limit: 95
# true for all switches, got data from cli output "show system sensors" on a SG350-8F8T,
# temperature seems to be the cpu/processing unit temperature, not the fan-in temperature.
# See CLI-output. All other temperatures are not accessable via SNMP (to my research). SG350X-24P and CBS250-4X have higher values
low_limit: 0 # true for CBS250-8T-D and CBS250-8PP-D, all other tolerate -5
skip_values:
-
oid: rlEnvFanDataTemp
op: '=='
value: 0
# -
# oid: rlEnvFanDataTemp
# op: '=='
# value: -17.78 # Fahrenheit = 0
fanspeed:
data:
-
oid: rlEnvFanDataSpeed
value: rlEnvFanDataSpeed
num_oid: '.1.3.6.1.4.1.9.6.1.101.83.5.1.1.3.{{ $index }}'
index: '{{ $index }}'
descr: 'FAN {{ $index }} Speed'
high_limit: 10000
low_limit: 500
skip_values:
-
oid: rlEnvFanDataSpeed
op: '=='
value: 0