mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add Sensatronic E4-16 support (#12083)
* Update sensatronics-em1.yaml sysObjectID wasn't specific enough. * Create sensatronics-ittm.yaml Add support for 4/16 channel units * Create sensatronics-ittm.yaml Add support for 4/16 channel units * Change name to be specific to ITTM * Create sensatronics-ittm.snmprec * Create sensatronics-ittm.json
This commit is contained in:
117
includes/definitions/discovery/sensatronics-ittm.yaml
Normal file
117
includes/definitions/discovery/sensatronics-ittm.yaml
Normal file
@@ -0,0 +1,117 @@
|
||||
mib: SENSATRONICS-ITTM:SENSATRONICS-SMI
|
||||
modules:
|
||||
sensors:
|
||||
temperature:
|
||||
data:
|
||||
-
|
||||
oid: sensor1
|
||||
value: sensor1DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.1.2.{{ $index }}'
|
||||
index: 'sensor1Name.{{ $index }}'
|
||||
descr: '{{ $sensor1Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor2
|
||||
value: sensor2DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.2.2.{{ $index }}'
|
||||
index: 'sensor2Name.{{ $index }}'
|
||||
descr: '{{ $sensor2Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor3
|
||||
value: sensor3DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.3.2.{{ $index }}'
|
||||
index: 'sensor3Name.{{ $index }}'
|
||||
descr: '{{ $sensor3Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor4
|
||||
value: sensor4DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.4.2.{{ $index }}'
|
||||
index: 'sensor4Name.{{ $index }}'
|
||||
descr: '{{ $sensor4Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor5
|
||||
value: sensor5DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.5.2.{{ $index }}'
|
||||
index: 'sensor5Name.{{ $index }}'
|
||||
descr: '{{ $sensor5Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor6
|
||||
value: sensor6DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.6.2.{{ $index }}'
|
||||
index: 'sensor6Name.{{ $index }}'
|
||||
descr: '{{ $sensor6Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor7
|
||||
value: sensor7DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.7.2.{{ $index }}'
|
||||
index: 'sensor7Name.{{ $index }}'
|
||||
descr: '{{ $sensor7Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor8
|
||||
value: sensor8DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.8.2.{{ $index }}'
|
||||
index: 'sensor8Name.{{ $index }}'
|
||||
descr: '{{ $sensor8Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor9
|
||||
value: sensor9DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.9.2.{{ $index }}'
|
||||
index: 'sensor9Name.{{ $index }}'
|
||||
descr: '{{ $sensor9Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor10
|
||||
value: sensor10DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.10.2.{{ $index }}'
|
||||
index: 'sensor10Name.{{ $index }}'
|
||||
descr: '{{ $sensor10Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor11
|
||||
value: sensor11DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.11.2.{{ $index }}'
|
||||
index: 'sensor11Name.{{ $index }}'
|
||||
descr: '{{ $sensor11Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor12
|
||||
value: sensor12DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.12.2.{{ $index }}'
|
||||
index: 'sensor12Name.{{ $index }}'
|
||||
descr: '{{ $sensor12Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor13
|
||||
value: sensor13DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.13.2.{{ $index }}'
|
||||
index: 'sensor13Name.{{ $index }}'
|
||||
descr: '{{ $sensor13Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor14
|
||||
value: sensor14DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.14.2.{{ $index }}'
|
||||
index: 'sensor14Name.{{ $index }}'
|
||||
descr: '{{ $sensor14Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor15
|
||||
value: sensor15DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.15.2.{{ $index }}'
|
||||
index: 'sensor15Name.{{ $index }}'
|
||||
descr: '{{ $sensor15Name }}'
|
||||
skip_values: -99.9
|
||||
-
|
||||
oid: sensor16
|
||||
value: sensor16DataStr
|
||||
num_oid: '.1.3.6.1.4.1.16174.1.1.1.3.16.2.{{ $index }}'
|
||||
index: 'sensor16Name.{{ $index }}'
|
||||
descr: '{{ $sensor16Name }}'
|
||||
skip_values: -99.9
|
@@ -8,4 +8,4 @@ mib_dir: sensatronics
|
||||
discovery:
|
||||
-
|
||||
sysObjectID:
|
||||
- .1.3.6.1.4.1.16174.1.1
|
||||
- .1.3.6.1.4.1.16174.1.1.3
|
||||
|
11
includes/definitions/sensatronics-ittm.yaml
Normal file
11
includes/definitions/sensatronics-ittm.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
os: sensatronics-ittm
|
||||
text: 'Sensatronics ITTM'
|
||||
type: environment
|
||||
icon: sensatronics
|
||||
over:
|
||||
- { graph: device_temperature, text: 'Temperature' }
|
||||
mib_dir: sensatronics
|
||||
discovery:
|
||||
-
|
||||
sysObjectID:
|
||||
- .1.3.6.1.4.1.16174.1.1.1
|
120
tests/data/sensatronics-ittm.json
Normal file
120
tests/data/sensatronics-ittm.json
Normal file
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.16174.1.1.1",
|
||||
"sysDescr": "IT",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "sensatronics-ittm",
|
||||
"type": "environment",
|
||||
"serial": null,
|
||||
"icon": "sensatronics.png",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.16174.1.1.1",
|
||||
"sysDescr": "IT",
|
||||
"sysContact": "<private>",
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "sensatronics-ittm",
|
||||
"type": "environment",
|
||||
"serial": null,
|
||||
"icon": "sensatronics.png",
|
||||
"location": "<private>"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sensors": {
|
||||
"discovery": {
|
||||
"sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "temperature",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.16174.1.1.1.3.1.2.0",
|
||||
"sensor_index": "sensor1Name.0",
|
||||
"sensor_type": "sensatronics-ittm",
|
||||
"sensor_descr": "Sec Colo",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 20.4,
|
||||
"sensor_limit": 40.4,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 10.4,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "temperature",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.16174.1.1.1.3.2.2.0",
|
||||
"sensor_index": "sensor2Name.0",
|
||||
"sensor_type": "sensatronics-ittm",
|
||||
"sensor_descr": "Core",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 22.8,
|
||||
"sensor_limit": 42.8,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 12.8,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "temperature",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.16174.1.1.1.3.3.2.0",
|
||||
"sensor_index": "sensor3Name.0",
|
||||
"sensor_type": "sensatronics-ittm",
|
||||
"sensor_descr": "Sec Colo 2",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 23.2,
|
||||
"sensor_limit": 43.2,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 13.2,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": null
|
||||
}
|
||||
],
|
||||
"state_indexes": []
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
87
tests/snmpsim/sensatronics-ittm.snmprec
Normal file
87
tests/snmpsim/sensatronics-ittm.snmprec
Normal file
@@ -0,0 +1,87 @@
|
||||
1.3.6.1.2.1.1.1.0|4|IT
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.16174.1.1.1
|
||||
1.3.6.1.2.1.1.3.0|67|1493138250
|
||||
1.3.6.1.2.1.1.4.0|4|<private>
|
||||
1.3.6.1.2.1.1.5.0|4|<private>
|
||||
1.3.6.1.2.1.1.6.0|4|<private>
|
||||
1.3.6.1.4.1.16174.1.1.1.1.1.0|4|sensor
|
||||
1.3.6.1.4.1.16174.1.1.1.3.1.1.0|4|Sec Colo
|
||||
1.3.6.1.4.1.16174.1.1.1.3.1.2.0|4|20.4
|
||||
1.3.6.1.4.1.16174.1.1.1.3.1.3.0|2|20
|
||||
1.3.6.1.4.1.16174.1.1.1.3.1.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.1.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.2.1.0|4|Core
|
||||
1.3.6.1.4.1.16174.1.1.1.3.2.2.0|4|22.8
|
||||
1.3.6.1.4.1.16174.1.1.1.3.2.3.0|2|23
|
||||
1.3.6.1.4.1.16174.1.1.1.3.2.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.2.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.3.1.0|4|Sec Colo 2
|
||||
1.3.6.1.4.1.16174.1.1.1.3.3.2.0|4|23.2
|
||||
1.3.6.1.4.1.16174.1.1.1.3.3.3.0|2|23
|
||||
1.3.6.1.4.1.16174.1.1.1.3.3.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.3.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.4.1.0|4|Probe 4
|
||||
1.3.6.1.4.1.16174.1.1.1.3.4.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.4.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.4.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.4.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.5.1.0|4|Probe 5
|
||||
1.3.6.1.4.1.16174.1.1.1.3.5.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.5.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.5.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.5.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.6.1.0|4|Probe 6
|
||||
1.3.6.1.4.1.16174.1.1.1.3.6.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.6.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.6.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.6.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.7.1.0|4|Probe 7
|
||||
1.3.6.1.4.1.16174.1.1.1.3.7.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.7.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.7.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.7.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.8.1.0|4|Probe 8
|
||||
1.3.6.1.4.1.16174.1.1.1.3.8.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.8.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.8.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.8.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.9.1.0|4|Probe 9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.9.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.9.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.9.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.9.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.10.1.0|4|Probe 10
|
||||
1.3.6.1.4.1.16174.1.1.1.3.10.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.10.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.10.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.10.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.11.1.0|4|Probe 11
|
||||
1.3.6.1.4.1.16174.1.1.1.3.11.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.11.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.11.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.11.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.12.1.0|4|Probe 12
|
||||
1.3.6.1.4.1.16174.1.1.1.3.12.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.12.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.12.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.12.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.13.1.0|4|Probe 13
|
||||
1.3.6.1.4.1.16174.1.1.1.3.13.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.13.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.13.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.13.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.14.1.0|4|Probe 14
|
||||
1.3.6.1.4.1.16174.1.1.1.3.14.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.14.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.14.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.14.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.15.1.0|4|Probe 15
|
||||
1.3.6.1.4.1.16174.1.1.1.3.15.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.15.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.15.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.15.5.0|4|OPEN
|
||||
1.3.6.1.4.1.16174.1.1.1.3.16.1.0|4|Probe 16
|
||||
1.3.6.1.4.1.16174.1.1.1.3.16.2.0|4|-99.9
|
||||
1.3.6.1.4.1.16174.1.1.1.3.16.3.0|2|-100
|
||||
1.3.6.1.4.1.16174.1.1.1.3.16.4.0|2|0
|
||||
1.3.6.1.4.1.16174.1.1.1.3.16.5.0|4|OPEN
|
Reference in New Issue
Block a user