mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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.
40 lines
1.8 KiB
YAML
40 lines
1.8 KiB
YAML
mib: MSERIES-ENVMON-MIB:MSERIES-PORT-MIB
|
|
modules:
|
|
sensors:
|
|
state:
|
|
data:
|
|
-
|
|
oid: smartPortTable
|
|
num_oid: '.1.3.6.1.4.1.30826.1.3.1.2.1.1.6.{{ $index }}'
|
|
value: smartPortStatus
|
|
descr: '{{ $smartPortAlias }} - {{ $smartPortName }}'
|
|
index: 'smartPortStatus.{{ $index }}'
|
|
state_name: smartPortStatus
|
|
states:
|
|
- { value: 1, generic: 0, graph: 1, descr: idle }
|
|
- { value: 2, generic: 2, graph: 1, descr: down }
|
|
- { value: 3, generic: 0, graph: 1, descr: up }
|
|
- { value: 4, generic: 1, graph: 1, descr: high }
|
|
- { value: 5, generic: 1, graph: 1, descr: low }
|
|
- { value: 6, generic: 1, graph: 1, descr: eyeSafety }
|
|
- { value: 7, generic: 3, graph: 1, descr: cd }
|
|
- { value: 8, generic: 3, graph: 1, descr: ncd }
|
|
temperature:
|
|
data:
|
|
-
|
|
oid: smartEnvMonTemperatureTable
|
|
value: smartEnvMonTemperatureValue
|
|
num_oid: '.1.3.6.1.4.1.30826.1.4.1.1.1.3.{{ $index }}'
|
|
descr: smartEnvMonTemperatureDescr
|
|
power:
|
|
data:
|
|
-
|
|
oid: smartPortTable
|
|
value: smartPortPower
|
|
num_oid: '.1.3.6.1.4.1.30826.1.3.1.2.1.1.5.{{ $index }}'
|
|
divisor: 10
|
|
descr: '{{ $smartPortAlias }} - {{ $smartPortName }}'
|
|
low_limit: smartPortLowPowerAlarmThreshold
|
|
high_limit: smartPortHighPowerAlarmThreshold
|
|
skip_values: -400
|