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

46 lines
1.8 KiB
YAML

mib: GEPON-OLT-COMMON-MIB
modules:
processors:
data:
-
oid: mgrCardInfoTable
value: mgrCardCpuUtil
num_oid: '.1.3.6.1.4.1.5875.800.3.9.8.1.1.5.{{ $index }}'
descr: 'Hswa {{ $index }} Processor'
precision: 100
skip_values:
-
oid: mgrCardWorkStatus
op: '!='
value: 1
sensors:
temperature:
data:
-
oid: sysTemperature
num_oid: '.1.3.6.1.4.1.5875.800.3.9.4.5.{{ $index }}'
descr: 'Internal Temperature {{ $index }}'
low_limit: 0
high_limit: 100
low_warn_limit: 15
warn_limit: 55
state:
data:
-
oid: fanAlarmStatus
num_oid: '.1.3.6.1.4.1.5875.800.3.60.2.1.1.{{ $index }}'
descr: "Fan slot {{ $index }} Status"
state_name: fanState
states:
- { descr: Normal, graph: 0, value: 1, generic: 0 }
- { descr: Failed, graph: 0, value: 2, generic: 2 }
-
oid: powerAlarmStatus
num_oid: '.1.3.6.1.4.1.5875.800.3.60.1.1.2.{{ $index }}'
descr: "Power slot {{ $index }} Status"
state_name: powerState
states:
- { descr: Normal, graph: 0, value: 1, generic: 0 }
- { descr: Logw Voltage, graph: 0, value: 2, generic: 1 }
- { descr: PowerFault, graph: 0, value: 3, generic: 2 }