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.
68 lines
2.6 KiB
YAML
68 lines
2.6 KiB
YAML
mib: POSEIDON-MIB
|
|
modules:
|
|
sensors:
|
|
temperature:
|
|
data:
|
|
-
|
|
oid: sensTable
|
|
value: sensValue
|
|
num_oid: '.1.3.6.1.4.1.21796.3.3.3.1.6.{{ $index }}'
|
|
divisor: 10
|
|
descr: sensName
|
|
index: 'sensTable.{{ $index }}'
|
|
skip_values:
|
|
-
|
|
oid: sensUnit
|
|
op: '!='
|
|
value: 0
|
|
humidity:
|
|
data:
|
|
-
|
|
oid: sensTable
|
|
value: sensValue
|
|
num_oid: '.1.3.6.1.4.1.21796.3.3.3.1.6.{{ $index }}'
|
|
divisor: 10
|
|
descr: sensName
|
|
index: 'sensTable.{{ $index }}'
|
|
skip_values:
|
|
-
|
|
oid: sensUnit
|
|
op: '!='
|
|
value: 3
|
|
state:
|
|
data:
|
|
-
|
|
oid: inpTable
|
|
value: inpValue
|
|
num_oid: '.1.3.6.1.4.1.21796.4.1.1.1.2.{{ $index }}'
|
|
descr: inpName
|
|
index: 'inpValue.{{ $index }}'
|
|
state_name: inpValue
|
|
states:
|
|
- { descr: open, graph: 0, value: 0, generic: 0 }
|
|
- { descr: closed, graph: 0, value: 1, generic: 2 }
|
|
-
|
|
oid: inpTable
|
|
value: inpAlarmState
|
|
num_oid: '.1.3.6.1.4.1.21796.4.1.1.1.4.{{ $index }}'
|
|
descr: 'alarm : {{ $inpName }}'
|
|
index: 'inpAlarmState.{{ $index }}'
|
|
state_name: inpAlarmState
|
|
states:
|
|
- { descr: normal, graph: 0, value: 0, generic: 0 }
|
|
- { descr: alarm, graph: 0, value: 1, generic: 2 }
|
|
-
|
|
oid: sensTable
|
|
value: sensState
|
|
num_oid: '.1.3.6.1.4.1.21796.4.1.3.1.3.{{ $index }}'
|
|
descr: sensName
|
|
index: 'sensState.{{ $index }}'
|
|
state_name: sensName
|
|
states:
|
|
- { descr: invalid, graph: 0, value: 0, generic: 2 }
|
|
- { descr: normal, graph: 0, value: 1, generic: 0 }
|
|
- { descr: alarmstate, graph: 0, value: 2, generic: 2 }
|
|
- { descr: alarm, graph: 0, value: 3, generic: 2 }
|
|
|
|
|