Tony Murray 1d48cf7db2 Discovery YAML. Do not implicitly append $index (#9315)
Require it explicitly. Makes it easier to understand and matches the style of other values

Questionable YAML changes (either broken before or now broken):
secureplatform: haStatCode
ptp600: receiveModulationMode

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2018-11-10 23:45:24 +00:00

56 lines
2.7 KiB
YAML

mib: LENOVO-ENV-MIB
modules:
sensors:
state:
data:
-
oid: lenovoEnvMibPowerSupplyEntry
value: lenovoEnvMibPowerSupplyState
num_oid: '.1.3.6.1.4.1.19046.2.3.11.1.1.1.5.{{ $index }}'
descr: 'PS{{ $lenovoEnvMibPowerSupplyID }}'
index: 'lenovoEnvMibPowerSupplyState.{{ $index }}'
states:
- { value: 0, descr: off, graph: 1, generic: 1 }
- { value: 1, descr: on, graph: 1, generic: 0 }
- { value: 2, descr: absent, graph: 1, generic: 1 }
- { value: 3, descr: outputFault, graph: 1, generic: 2 }
- { value: -1, descr: unknown, graph: 1, generic: 3 }
-
oid: lenovoEnvMibFanEntry
value: lenovoEnvMibFanState
num_oid: '.1.3.6.1.4.1.19046.2.3.11.1.2.1.1.5.{{ $index }}'
descr: lenovoEnvMibFanName
index: 'lenovoEnvMibFanState.{{ $index }}'
states:
- { value: 0, descr: ok, graph: 1, generic: 0 }
- { value: 1, descr: absent, graph: 1, generic: 1 }
- { value: 2, descr: fault, graph: 1, generic: 2 }
- { value: -1, descr: unknown, graph: 1, generic: 3 }
-
oid: lenovoEnvMibTempSensorEntry
value: lenovoEnvMibTempSensorState
num_oid: '.1.3.6.1.4.1.19046.2.3.11.1.3.1.1.5.{{ $index }}'
descr: lenovoEnvMibTempSensorDesc
index: 'lenovoEnvMibTempSensorState.{{ $index }}'
states:
- { value: 0, descr: ok, graph: 1, generic: 0 }
- { value: 1, descr: fault, graph: 1, generic: 2 }
- { value: -1, descr: unknown, graph: 1, generic: 3 }
fanspeed:
data:
-
oid: lenovoEnvMibFanEntry
value: lenovoEnvMibFanSpeedRPM
num_oid: '.1.3.6.1.4.1.19046.2.3.11.1.2.1.8.{{ $index }}'
index: 'lenovoEnvMibFanSpeedRPM.{{ $index }}'
descr: lenovoEnvMibFanName
temperature:
data:
-
oid: lenovoEnvMibTempSensorEntry
value: lenovoEnvMibTempSensorTemperature
num_oid: '.1.3.6.1.4.1.19046.2.3.11.1.3.1.6.{{ $index }}'
index: 'lenovoEnvTempSensorTemperature.{{ $index }}'
descr: lenovoEnvMibTempSensorName