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

65 lines
2.5 KiB
YAML

mib: SAF-INTEGRAW-MIB
modules:
processors:
data:
-
oid: integraWsysCPUidle
num_oid: '.1.3.6.1.4.1.7571.100.1.1.7.2.4.10.{{ $index }}'
precision: -10
type: saf-integra
sensors:
temperature:
options:
divisor: 10
data:
-
oid: integraWsysCPUtemperature
num_oid: '.1.3.6.1.4.1.7571.100.1.1.7.2.4.2.{{ $index }}'
descr: System CPU
index: 'integraWsysCPUtemperature.{{ $index }}'
-
oid: integraWsysBoardTemperature
num_oid: '.1.3.6.1.4.1.7571.100.1.1.7.2.4.8.{{ $index }}'
descr: System Board
index: 'integraWsysBoardTemperature.{{ $index }}'
voltage:
options:
divisor: 1000
data:
-
oid: integraWsysPSUvoltage
num_oid: '.1.3.6.1.4.1.7571.100.1.1.7.2.4.5.{{ $index }}'
descr: PSU Voltage
index: 'integraWsysPSUvoltage.{{ $index }}'
current:
options:
divisor: 1000
data:
-
oid: integraWsysPSUcurrent
num_oid: '.1.3.6.1.4.1.7571.100.1.1.7.2.4.6.{{ $index }}'
descr: PSU Current
index: 'integraWsysPSUcurrent.{{ $index }}'
power:
options:
divisor: 1000
data:
-
oid: integraWsysPSUpower
num_oid: '.1.3.6.1.4.1.7571.100.1.1.7.2.4.7.{{ $index }}'
descr: PSU Power
index: 'integraWsysPSUpower.{{ $index }}'
state:
data:
-
oid: integraWsysLicenseGenStatus
num_oid: '.1.3.6.1.4.1.7571.100.1.1.7.2.4.4.{{ $index }}'
descr: License Status
index: 'integraWsysLicenseGenStatus.{{ $index }}'
state_name: integraWsysLicenseGenStatus
states:
- { value: 1, generic: 0, graph: 1, descr: ok }
- { value: 2, generic: 2, graph: 1, descr: expired }
- { value: 3, generic: 3, graph: 1, descr: unknown }
- { value: 4, generic: 0, graph: 1, descr: unlimitedTime }