Files
librenms-librenms/includes/definitions/discovery/ciscosb.yaml
Fehler12 8d863fbc83 Cisco SB/CBS environment sensors (#14154)
* Update ciscosb.yaml

Added detection for environment sensors (FAN and PSU) for cisco small business devices

* Added test data

* Update ciscosb_sg550x-8f8t.json

Korrektur Übertragungsfehler

* Update ciscosb_cbs250-24p-4x.json

* Update ciscosb_cbs250-24p-4x.json

* Update ciscosb_cbs250-24p-4x.json

* Update ciscosb_cbs250-24p-4x.json

* Update ciscosb_cbs250-24p-4x.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-08-07 20:12:07 -05:00

78 lines
3.5 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
skip_values:
-
oid: rlEnvFanDataTemp
op: '=='
value: 0