Skip to content

Commit

Permalink
Fix avtech12e sensors (librenms#13943)
Browse files Browse the repository at this point in the history
* Fix IPv6 in service check host (librenms#13939)

* Add hostName cleaning to Clean

* Apply RFC 5952 formatting to Clean::hostName output

* Use more liberal cleaning for hostnames

* Remove unwanted whitespace

* Apply Clean::hostName() to all relevant fields

* Fix docstring

* Use IP::isValid inline

* Update Clean.php

* Update services.inc.php

Co-authored-by: Tony Murray <[email protected]>

* Fix avtech 12E environment sensor

Updated MIB for newer internal sensor object schema in 12E models.

Updated discovery yaml file to retrieve temperature and humidity
data from internal and digital sensors.

Added test data for roomalert12e model.

Co-authored-by: Sander Steffann <[email protected]>
Co-authored-by: Tony Murray <[email protected]>
  • Loading branch information
3 people authored Apr 26, 2022
1 parent 0357d29 commit 70bae66
Show file tree
Hide file tree
Showing 4 changed files with 798 additions and 316 deletions.
36 changes: 36 additions & 0 deletions includes/definitions/discovery/avtech.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,27 @@ modules:
index: 4
descr: .1.3.6.1.4.1.20916.1.3.1.4.6.0

- # RoomAlert 12E internal
oid: .1.3.6.1.4.1.20916.1.10.1.1.1.0
num_oid: '.1.3.6.1.4.1.20916.1.10.1.1.1.{{ $index }}'
index: 0
descr: .1.3.6.1.4.1.20916.1.10.1.1.3.0
- # RoomAlert 12E sen1
oid: .1.3.6.1.4.1.20916.1.10.1.2.1.0
num_oid: '.1.3.6.1.4.1.20916.1.10.1.2.1.{{ $index }}'
index: 1
descr: .1.3.6.1.4.1.20916.1.10.1.2.8.0
- # RoomAlert 12E sen2
oid: .1.3.6.1.4.1.20916.1.10.1.3.1.0
num_oid: '.1.3.6.1.4.1.20916.1.10.1.3.1.{{ $index }}'
index: 1
descr: .1.3.6.1.4.1.20916.1.10.1.3.8.0
- # RoomAlert 12E sen3
oid: .1.3.6.1.4.1.20916.1.10.1.4.1.0
num_oid: '.1.3.6.1.4.1.20916.1.10.1.4.1.{{ $index }}'
index: 1
descr: .1.3.6.1.4.1.20916.1.10.1.4.8.0

- # RoomAlert 32E/W internal temp
oid: .1.3.6.1.4.1.20916.1.8.1.1.1.2.0
num_oid: '.1.3.6.1.4.1.20916.1.8.1.1.1.2.{{ $index }}'
Expand Down Expand Up @@ -130,6 +151,21 @@ modules:
num_oid: '.1.3.6.1.4.1.20916.1.8.1.1.2.1.{{ $index }}'
index: 0
descr: Internal Humidity
- # RoomAlert 12E sen1
oid: .1.3.6.1.4.1.20916.1.10.1.2.1.0
num_oid: '.1.3.6.1.4.1.20916.1.10.1.2.1.{{ $index }}'
index: 3
descr: .1.3.6.1.4.1.20916.1.10.1.2.8.0
- # RoomAlert 12E sen2
oid: .1.3.6.1.4.1.20916.1.10.1.3.1.0
num_oid: '.1.3.6.1.4.1.20916.1.10.1.3.1.{{ $index }}'
index: 3
descr: .1.3.6.1.4.1.20916.1.10.1.3.8.0
- # RoomAlert 12E sen3
oid: .1.3.6.1.4.1.20916.1.10.1.4.1.0
num_oid: '.1.3.6.1.4.1.20916.1.10.1.4.1.{{ $index }}'
index: 3
descr: .1.3.6.1.4.1.20916.1.10.1.4.8.0
voltage:
data:
- # RoomAlert 32E/W analog
Expand Down
Loading

0 comments on commit 70bae66

Please sign in to comment.