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.
45 lines
2.0 KiB
YAML
45 lines
2.0 KiB
YAML
mib: SFA-INFO
|
|
modules:
|
|
sensors:
|
|
state:
|
|
data:
|
|
-
|
|
oid: tempTable
|
|
value: tempStatus
|
|
num_oid: '.1.3.6.1.4.1.6894.2.2.1.4.{{ $index }}'
|
|
descr: 'Temperature Sensor {{ $index }}'
|
|
index: '{{ $index }}'
|
|
states:
|
|
- { value: 1, descr: normal, graph: 1, generic: 0 }
|
|
- { value: 2, descr: warning, graph: 1, generic: 1 }
|
|
- { value: 3, descr: critical, graph: 1, generic: 2 }
|
|
-
|
|
oid: fanTable
|
|
value: fanStatus
|
|
num_oid: '.1.3.6.1.4.1.6894.2.4.1.4.{{ $index }}'
|
|
descr: 'Fan Sensor {{ $index }}'
|
|
index: '{{ $index }}'
|
|
states:
|
|
- { value: 1, descr: healthy, graph: 1, generic: 0 }
|
|
- { value: 2, descr: failure, graph: 1, generic: 2 }
|
|
-
|
|
oid: powerTable
|
|
value: powerStatus
|
|
num_oid: '.1.3.6.1.4.1.6894.2.6.1.4.{{ $index }}'
|
|
descr: 'Power Supply Sensor {{ $index }}'
|
|
index: '{{ $index }}'
|
|
states:
|
|
- { value: 1, descr: healthy, graph: 1, generic: 0 }
|
|
- { value: 2, descr: failure, graph: 1, generic: 2 }
|
|
-
|
|
oid: physicalDiskTable
|
|
value: physDiskState
|
|
num_oid: '.1.3.6.1.4.1.6894.2.9.1.7.{{ $index }}'
|
|
descr: 'Disk Sensor {{ $index }}'
|
|
index: '{{ $index }}'
|
|
states:
|
|
- { value: 1, descr: normal, graph: 1, generic: 0 }
|
|
- { value: 2, descr: failed, graph: 1, generic: 2 }
|
|
- { value: 3, descr: predictedfailure, graph: 1, generic: 1 }
|
|
- { value: 4, descr: unknown, graph: 1, generic: 3 }
|