Fixed Avtech discovery (#10163)

* Fix Avtech discovery
pre-cache stored the data incorrectly

* Fix RA-4E external sensors
sen1 had incorrect oids (duplicate of sen2)
Description oid from data doesn't match the mib, perhaps outdated MIB?

* add test data

* Updated 4E MIB
This commit is contained in:
Tony Murray
2019-05-02 15:37:00 -05:00
committed by Neil Lathwood
parent 308145d2da
commit 3e7970b814
5 changed files with 506 additions and 33 deletions

View File

@@ -23,17 +23,17 @@ modules:
index: 0
descr: .1.3.6.1.4.1.20916.1.6.1.1.2.1.0
- # RoomAlert 4E sen1
oid: .1.3.6.1.4.1.20916.1.6.1.2.2.1.0
num_oid: '.1.3.6.1.4.1.20916.1.6.1.2.2.1.{{ $index }}'
oid: .1.3.6.1.4.1.20916.1.6.1.2.1.1.0
num_oid: '.1.3.6.1.4.1.20916.1.6.1.2.1.1.{{ $index }}'
divisor: 1
index: 1
descr: .1.3.6.1.4.1.20916.1.6.1.2.1.6.0
descr: .1.3.6.1.4.1.20916.1.6.1.2.1.8.0
- # RoomAlert 4E sen2
oid: .1.3.6.1.4.1.20916.1.6.1.2.2.1.0
num_oid: '.1.3.6.1.4.1.20916.1.6.1.2.2.1.{{ $index }}'
divisor: 1
index: 2
descr: .1.3.6.1.4.1.20916.1.6.1.2.2.6.0
descr: .1.3.6.1.4.1.20916.1.6.1.2.2.8.0
- # RoomAlert 11E sensor 2
oid: .1.3.6.1.4.1.20916.1.3.1.2.1.0

View File

@@ -51,7 +51,7 @@ foreach (explode(PHP_EOL, $data) as $line) {
}
if (!$processed) {
$pre_cache[$oid] = [$value];
$pre_cache[$oid] = [[$oid => $value]];
}
}