mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* add sensor support for cefcModuleOperStatus * add tests for cefcModuleOperStatus * revert sensors/state/cisco.inc.php * add sensor support for cefcModuleOperStatus using yaml * update tests for cefcModuleOperStatus * try adding tests again for cefcModuleOperStatus * include CISCO-ENTITY-FRU-CONTROL mib for cefcModuleOperStatus sensor state discovery
73 lines
4.0 KiB
YAML
73 lines
4.0 KiB
YAML
mib: POWER-ETHERNET-MIB:CISCO-POWER-ETHERNET-EXT-MIB:CISCO-ENTITY-FRU-CONTROL-MIB
|
|
modules:
|
|
sensors:
|
|
pre-cache:
|
|
data:
|
|
-
|
|
oid:
|
|
- entPhysicalName
|
|
power:
|
|
data:
|
|
-
|
|
oid: pethMainPseTable
|
|
value: pethMainPsePower
|
|
num_oid: '.1.3.6.1.2.1.105.1.3.1.1.2.{{ $index }}'
|
|
index: 'pethMainPsePower.{{ $index }}'
|
|
group: "PoE"
|
|
descr: "PoE Budget Total - ID {{ $index }}"
|
|
-
|
|
oid: pethMainPseTable
|
|
value: pethMainPseConsumptionPower
|
|
num_oid: '.1.3.6.1.2.1.105.1.3.1.1.4.{{ $index }}'
|
|
index: 'pethMainPseConsumptionPower.{{ $index }}'
|
|
high_limit: pethMainPsePower
|
|
group: "PoE"
|
|
descr: "PoE Budget Consumed - ID {{ $index }}"
|
|
count:
|
|
data:
|
|
-
|
|
oid: cpeExtPdStatistics
|
|
value: cpeExtPdStatsTotalDevices
|
|
num_oid: '.1.3.6.1.4.1.9.9.402.1.4.1.{{ $index }}'
|
|
group: "PoE"
|
|
descr: "PoE Devices Connected"
|
|
state:
|
|
data:
|
|
-
|
|
oid: cefcModuleOperStatus
|
|
value: cefcModuleOperStatus
|
|
num_oid: '.1.3.6.1.4.1.9.9.117.1.2.1.1.2.{{ $index }}'
|
|
descr: 'Operating Status - {{ $entPhysicalName }}'
|
|
group: Module Operating Status
|
|
index: 'cefcModuleOperStatus.{{ $index }}'
|
|
entPhysicalIndex: '{{ index }}'
|
|
state_name: cefcModuleOperStatus
|
|
states:
|
|
- { value: 1, generic: 3, graph: 0, descr: 'unknown' }
|
|
- { value: 2, generic: 0, graph: 0, descr: 'ok' }
|
|
- { value: 3, generic: 0, graph: 0, descr: 'disabled' }
|
|
- { value: 4, generic: 1, graph: 0, descr: 'okButDiagFailed' }
|
|
- { value: 5, generic: 1, graph: 0, descr: 'boot' }
|
|
- { value: 6, generic: 1, graph: 0, descr: 'selfTest' }
|
|
- { value: 7, generic: 2, graph: 0, descr: 'failed' }
|
|
- { value: 8, generic: 2, graph: 0, descr: 'missing' }
|
|
- { value: 9, generic: 2, graph: 0, descr: 'mismatchWithParent' }
|
|
- { value: 10, generic: 2, graph: 0, descr: 'mismatchConfig' }
|
|
- { value: 11, generic: 2, graph: 0, descr: 'diagFailed' }
|
|
- { value: 12, generic: 2, graph: 0, descr: 'dormant' }
|
|
- { value: 13, generic: 2, graph: 0, descr: 'outOfServiceAdmin' }
|
|
- { value: 14, generic: 2, graph: 0, descr: 'outOfServiceEnvTemp' }
|
|
- { value: 15, generic: 2, graph: 0, descr: 'poweredDown' }
|
|
- { value: 16, generic: 2, graph: 0, descr: 'poweredUp' }
|
|
- { value: 17, generic: 2, graph: 0, descr: 'powerDenied' }
|
|
- { value: 18, generic: 2, graph: 0, descr: 'powerCycled' }
|
|
- { value: 19, generic: 1, graph: 0, descr: 'okButPowerOverWarning' }
|
|
- { value: 20, generic: 2, graph: 0, descr: 'okButPowerOverCritical' }
|
|
- { value: 21, generic: 1, graph: 0, descr: 'syncInProgress' }
|
|
- { value: 22, generic: 1, graph: 0, descr: 'upgrading' }
|
|
- { value: 23, generic: 2, graph: 0, descr: 'okButAuthFailed' }
|
|
- { value: 24, generic: 1, graph: 0, descr: 'mdr'}
|
|
- { value: 25, generic: 2, graph: 0, descr: 'fwMismatchFound' }
|
|
- { value: 26, generic: 1, graph: 0, descr: 'fwDownloadSuccess' }
|
|
- { value: 27, generic: 2, graph: 0, descr: 'fwDownloadFailure' }
|