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

30 lines
1.4 KiB
YAML

mib: CERENT-ENVMON-MIB:ENTITY-MIB
modules:
sensors:
pre-cache:
data:
- oid:
- entPhysicalDescr
voltage:
data:
-
oid: cerentEnvMonVoltageStatsTable
num_oid: '.1.3.6.1.4.1.3607.2.80.10.1.30.{{ $index }}'
value: cerentEnvMonVoltageStatsCurrentValue
index: 'cerentEnvMonVoltageStats.{{ $index }}'
descr: '{{ $entPhysicalDescr }} - {{ $cerentEnvMonVoltageStatsDescr }}'
divisor: 1000
warn_limit: cerentEnvMonVoltageStatsThresholdHigh
high_limit: cerentEnvMonVoltageStatsThresholdVeryHigh
low_warn_limit: cerentEnvMonVoltageStatsThresholdLow
low_limit: cerentEnvMonVoltageStatsThresholdVeryLow
temperature:
data:
-
oid: cerentEnvMonTemperatureStatsTable
num_oid: '.1.3.6.1.4.1.3607.2.80.20.1.30.{{ $index }}'
value: cerentEnvMonTemperatureStatsCurrentValue
index: 'cerentEnvMonTemperatureStats.{{ $index }}'
descr: '{{ $entPhysicalDescr }} - {{ $cerentEnvMonTemperatureStatsDescr }}'
high_limit: cerentEnvMonTemperatureStatsThresholdHigh