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

104 lines
4.9 KiB
YAML

mib: ARRIS-C3-FPD-MIB
modules:
sensors:
temperature:
data:
-
oid: dcxFPDTemp1Status
divisor: 100
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.4.{{ $index }}'
descr: 'CPU card closest to the CPU'
index: 'dcxFPDTemp1Status.{{ $index }}'
-
oid: dcxFPDTemp2Status
divisor: 100
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.5.{{ $index }}'
descr: 'CPU card, on the right hand side.'
index: 'dcxFPDTemp2Status.{{ $index }}'
-
oid: dcxFPDTemp3Status
divisor: 100
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.6.{{ $index }}'
descr: 'Kanga, under Roo cards between RX4 and RX5.'
index: 'dcxFPDTemp3Status.{{ $index }}'
-
oid: dcxFPDTemp4Status
divisor: 100
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.7.{{ $index }}'
descr: 'Kanga, under Roo cards between RX2 and RX3.'
index: 'dcxFPDTemp4Status.{{ $index }}'
state:
data:
-
oid: dcxFPDFan1Status
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.8.{{ $index }}'
descr: 'Fan 1'
index: 'dcxFPDFan1Status.{{ $index }}'
state_name: dcxFPDFan1Status
states:
- { descr: rotating, graph: 0, value: 1, generic: 0 }
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
-
oid: dcxFPDFan2Status
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.9.{{ $index }}'
descr: 'Fan 2'
index: 'dcxFPDFan2Status.{{ $index }}'
state_name: dcxFPDFan2Status
states:
- { descr: rotating, graph: 0, value: 1, generic: 0 }
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
-
oid: dcxFPDFan3Status
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.10.{{ $index }}'
descr: 'Fan 3'
index: 'dcxFPDFan3Status.{{ $index }}'
state_name: dcxFPDFan3Status
states:
- { descr: rotating, graph: 0, value: 1, generic: 0 }
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
-
oid: dcxFPDFan4Status
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.11.{{ $index }}'
descr: 'Fan 4'
index: 'dcxFPDFan4Status.{{ $index }}'
state_name: dcxFPDFan4Status
states:
- { descr: rotating, graph: 0, value: 1, generic: 0 }
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
-
oid: dcxFPDFan5Status
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.12.{{ $index }}'
descr: 'Fan 5'
index: 'dcxFPDFan5Status.{{ $index }}'
state_name: dcxFPDFan5Status
states:
- { descr: rotating, graph: 0, value: 1, generic: 0 }
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
-
oid: dcxFPDFan6Status
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.13.{{ $index }}'
descr: 'Fan 6'
index: 'dcxFPDFan6Status.{{ $index }}'
state_name: dcxFPDFan6Status
states:
- { descr: rotating, graph: 0, value: 1, generic: 0 }
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
-
oid: dcxFPDPowerStatus2
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.3.{{ $index }}'
descr: 'Power status'
index: 'dcxFPDPowerStatus2.{{ $index }}'
state_name: dcxFPDPowerStatus2
states:
- { descr: on, graph: 0, value: 1, generic: 0 }
- { descr: off, graph: 0, value: 2, generic: 2 }
-
oid: dcxFPDAttachedStatus
num_oid: '.1.3.6.1.4.1.4115.1.4.3.3.1.2.1.{{ $index }}'
descr: 'Front panel'
index: 'dcxFPDAttachedStatus.{{ $index }}'
state_name: dcxFPDAttachedStatus
states:
- { descr: attached, graph: 0, value: 1, generic: 0 }
- { descr: detached, graph: 0, value: 2, generic: 2 }