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

41 lines
1.8 KiB
YAML

mib: EATON-ATS2-MIB
modules:
sensors:
voltage:
data:
-
oid: ats2OutputVoltage
value: ats2OutputVoltage
num_oid: '.1.3.6.1.4.1.534.10.2.2.3.1.{{ $index }}'
divisor: 10
descr: 'Output'
index: 'ats2OutputVoltage.{{ $index }}'
state:
data:
-
oid: ats2OperationMode
value: ats2OperationMode
num_oid: '.1.3.6.1.4.1.534.10.2.2.4.{{ $index }}'
descr: 'ats2OperationMode'
index: 'ats2OperationMode.{{ $index }}'
state_name: ats2OperationMode
states:
- { descr: initialization, graph: 0, value: 1, generic: 1 }
- { descr: diagnosis, graph: 0, value: 2, generic: 1 }
- { descr: off, graph: 0, value: 3, generic: 2 }
- { descr: source1, graph: 0, value: 4, generic: 0 }
- { descr: source2, graph: 0, value: 5, generic: 0 }
- { descr: safe, graph: 0, value: 6, generic: 1 }
- { descr: fault, graph: 0, value: 7, generic: 2 }
-
oid: ats2InputStatusDephasing
value: ats2InputStatusDephasing
num_oid: '.1.3.6.1.4.1.534.10.2.3.1.1.{{ $index }}'
descr: 'ats2InputStatusDephasing'
index: 'ats2InputStatusDephasing.{{ $index }}'
state_name: ats2InputStatusDephasing
states:
- { descr: normal, graph: 0, value: 1, generic: 0 }
- { descr: outOfRange, graph: 0, value: 2, generic: 1 }