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

62 lines
2.3 KiB
YAML

mib: WRI-CPU-MIB:WRI-TEMPERATURE-MIB:WRI-VOLTAGE-MIB:FAN-MIB:WRI-POWER-MIB:WRI-DEVICE-MIB
modules:
processors:
data:
-
oid: cpuTable
value: cpuUsage
num_oid: '.1.3.6.1.4.1.3807.1.8012.1.4.1.1.2.{{ $index }}'
descr: cpuIndexDescr
precision: 100
sensors:
temperature:
data:
-
oid: temperatureTable
value: temperatureValue
num_oid: '.1.3.6.1.4.1.3807.1.8012.1.6.2.1.5.{{ $index }}'
descr: temperatureIndexDescr
low_limit: temperatureLThreshold
high_limit: temperatureHThreshold
divisor: 1
voltage:
data:
-
oid: voltageTable
value: voltageValue
num_oid: '.1.3.6.1.4.1.3807.1.8012.1.7.2.1.5.{{ $index }}'
descr: 'Int. {{ $voltageIndexDescr }}'
low_limit: voltageLThreshold
high_limit: voltageHThreshold
divisor: 1000
fanspeed:
data:
-
oid: fanCtrlTable
value: fanCtrlSpeed
num_oid: '.1.3.6.1.4.1.3807.1.8012.1.11.4.1.2.{{ $index }}'
descr: fanCtrlIndexDescr
divisor: 1
state:
data:
-
oid: powerTable
num_oid: '.1.3.6.1.4.1.3807.1.8012.1.2.1.1.3.{{ $index }}'
value: powerState
descr: 'Supply {{ $powerIndexDescr }}'
state_name: powerState
states:
- { value: 0, generic: 0, graph: 0, descr: Normal }
- { value: 1, generic: 2, graph: 0, descr: Insufficient }
- { value: 2, generic: 2, graph: 0, descr: Overload }
-
oid: cpuTable
value: cpuStatus
num_oid: '.1.3.6.1.4.1.3807.1.8012.1.4.1.1.7.{{ $index }}'
descr: CPU Status
state_name: cpuStatus
states:
- { value: 0, generic: 0, graph: 0, descr: Normal }
- { value: 1, generic: 2, graph: 0, descr: Overflow }