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

111 lines
5.5 KiB
YAML

mib: HUAWEI-SERVER-IBMC-MIB
modules:
sensors:
fanspeed:
options:
skip_values_lt: 0
data:
-
oid: fanDescriptionEntry
value: fanSpeed
num_oid: '.1.3.6.1.4.1.2011.2.235.1.1.8.50.1.2.{{ $index }}'
descr: 'fanDevicename'
index: 'fanSpeed.{{ $index }}'
power:
options:
skip_values_lt: 0
data:
-
oid: powerSupplyDescriptionEntry
value: powerSupplyInputPower
num_oid: '.1.3.6.1.4.1.2011.2.235.1.1.6.50.1.8.{{ $index }}'
descr: 'Power Supply {{ $index }} Input'
index: 'powerSupplyIndex.{{ $index }}'
temperature:
data:
-
oid: TemperatureDescriptionEntry
value: temperatureReading
divisor: 10
num_oid: '.1.3.6.1.4.1.2011.2.235.1.1.26.50.1.3.{{ $index }}'
descr: 'temperatureObject'
index: 'temperatureIndex.{{ $index }}'
state:
data:
-
oid: cpuDescriptionEntry
value: cpuStatus
num_oid: '.1.3.6.1.4.1.2011.2.235.1.1.15.50.1.6.{{ $index }}'
descr: 'Processor {{ $cpuFamily }} @{{ $cpuClockRate }} #{{ $cpuIndex }}'
index: 'cpuStatus.{{ $index }}'
state_name: cpuStatus
states:
- { descr: ok, graph: 0, value: 1, generic: 0 }
- { descr: minor, graph: 0, value: 2, generic: 1 }
- { descr: major, graph: 0, value: 3, generic: 2 }
- { descr: critical, graph: 0, value: 4, generic: 2 }
- { descr: absent, graph: 0, value: 5, generic: 0 }
- { descr: unknown, graph: 0, value: 6, generic: 3 }
-
oid: hardDiskDescriptionEntry
value: hardDiskStatus
num_oid: '.1.3.6.1.4.1.2011.2.235.1.1.18.50.1.3.{{ $index }}'
descr: 'Drive Bay {{ $index }} {{ $hardDiskDevicename }}'
index: 'hardDiskStatus.{{ $index }}'
state_name: hardDiskStatus
states:
- { descr: ok, graph: 0, value: 1, generic: 0 }
- { descr: minor, graph: 0, value: 2, generic: 1 }
- { descr: major, graph: 0, value: 3, generic: 2 }
- { descr: critical, graph: 0, value: 4, generic: 2 }
- { descr: absent, graph: 0, value: 5, generic: 0 }
- { descr: unknown, graph: 0, value: 6, generic: 3 }
-
oid: fanDescriptionEntry
value: fanStatus
num_oid: '.1.3.6.1.4.1.2011.2.235.1.1.8.50.1.4.{{ $index }}'
descr: 'fanDevicename'
index: 'fanSpeed.{{ $index }}'
state_name: fanStatus
states:
- { descr: ok, graph: 0, value: 1, generic: 0 }
- { descr: minor, graph: 0, value: 2, generic: 1 }
- { descr: major, graph: 0, value: 3, generic: 2 }
- { descr: critical, graph: 0, value: 4, generic: 2 }
- { descr: absent, graph: 0, value: 5, generic: 0 }
- { descr: unknown, graph: 0, value: 6, generic: 3 }
-
oid: memoryEntireStatus
value: memoryEntireStatus
num_oid: '.1.3.6.1.4.1.2011.2.235.1.1.16.1.{{ $index }}'
descr: 'Memory Status'
index: 'memoryEntireStatus.{{ $index }}'
state_name: memoryEntireStatus
states:
- { descr: ok, graph: 0, value: 1, generic: 0 }
- { descr: minor, graph: 0, value: 2, generic: 1 }
- { descr: major, graph: 0, value: 3, generic: 2 }
- { descr: critical, graph: 0, value: 4, generic: 2 }
- { descr: absent, graph: 0, value: 5, generic: 0 }
- { descr: unknown, graph: 0, value: 6, generic: 3 }
-
oid: memoryDescriptionEntry
value: memoryStatus
num_oid: '.1.3.6.1.4.1.2011.2.235.1.1.16.50.1.6.{{ $index }}'
descr: '{{ $memoryLogic }} {{ $memoryManufacturer }} {{ $memorySize }} {{ $memoryClockRate }}'
index: 'memoryStatus.{{ $index }}'
state_name: memoryStatus
states:
- { descr: ok, graph: 0, value: 1, generic: 0 }
- { descr: minor, graph: 0, value: 2, generic: 1 }
- { descr: major, graph: 0, value: 3, generic: 2 }
- { descr: critical, graph: 0, value: 4, generic: 2 }
- { descr: absent, graph: 0, value: 5, generic: 0 }
- { descr: unknown, graph: 0, value: 6, generic: 3 }
skip_values:
-
oid: memoryStatus
op: '='
value: 5