mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Vendor Dantherm (#11603)
* Build support for Dantherm CC3000 Cooling Controller * add missing files + test data * Create dantherm-os.json * Update dantherm-os.json * Update dantherm-os.yaml * Update dantherm-os.yaml * Update dantherm-os.json Co-authored-by: Tony Murray <murraytony@gmail.com> Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
This commit is contained in:
parent
fb162f16b8
commit
b3f78ec510
BIN
html/images/os/dantherm.png
Normal file
BIN
html/images/os/dantherm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.0 KiB |
12
includes/definitions/dantherm-os.yaml
Normal file
12
includes/definitions/dantherm-os.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
os: dantherm-os
|
||||
text: 'Dantherm'
|
||||
type: network
|
||||
icon: dantherm
|
||||
group: dantherm
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_processor, text: 'CPU Usage' }
|
||||
- { graph: device_mempool, text: 'Memory Usage' }
|
||||
discovery:
|
||||
- sysDescr:
|
||||
- 'FreeCooling Controller, SNMP V1.0'
|
59
includes/definitions/discovery/dantherm-os.yaml
Normal file
59
includes/definitions/discovery/dantherm-os.yaml
Normal file
@ -0,0 +1,59 @@
|
||||
mib: DANTHERM-COOLING-MIB
|
||||
modules:
|
||||
sensors:
|
||||
temperature:
|
||||
data:
|
||||
-
|
||||
oid: onBoardTempr
|
||||
value: onBoardTempr
|
||||
index: onBoardTempr.{{ $index }}
|
||||
num_oid: .1.3.6.1.4.1.46651.1.1.1.{{ $index }}
|
||||
descr: onBoard Tempr
|
||||
-
|
||||
oid: roomTempr
|
||||
value: roomTempr
|
||||
index: roomTempr.{{ $index }}
|
||||
num_oid: .1.3.6.1.4.1.46651.1.1.2.{{ $index }}
|
||||
descr: room Tempr
|
||||
-
|
||||
oid: hotSpotTempr
|
||||
value: hotSpotTempr
|
||||
index: hotSpotTempr.{{ $index }}
|
||||
num_oid: .1.3.6.1.4.1.46651.1.1.3.{{ $index }}
|
||||
descr: hotSpot Tempr
|
||||
fanspeed:
|
||||
data:
|
||||
-
|
||||
oid: fan1RPM
|
||||
value: fan1RPM
|
||||
index: fan1RPM.{{ $index }}
|
||||
num_oid: .1.3.6.1.4.1.46651.1.1.8.{{ $index }}
|
||||
descr: fan1 RPM
|
||||
-
|
||||
oid: fan2RPM
|
||||
value: fan2RPM
|
||||
index: fan2RPM.{{ $index }}
|
||||
num_oid: .1.3.6.1.4.1.46651.1.1.9.{{ $index }}
|
||||
descr: fan2 RPM
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: fan1Status
|
||||
value: fan1Status
|
||||
num_oid: .1.3.6.1.4.1.46651.1.1.18.{{ $index }}
|
||||
descr: Fan 1 operation status
|
||||
state_name: fan1Status_states
|
||||
states:
|
||||
- { value: 0, descr: Off }
|
||||
- { value: 1, descr: On }
|
||||
- { value: 2, descr: Emergency/Boost }
|
||||
-
|
||||
oid: fan2Status
|
||||
value: fan2Status
|
||||
num_oid: .1.3.6.1.4.1.46651.1.1.19.{{ $index }}
|
||||
descr: Fan 2 operation status
|
||||
state_name: fan2Status_states
|
||||
states:
|
||||
- { value: 0, descr: Off }
|
||||
- { value: 1, descr: On }
|
||||
- { value: 2, descr: Emergency/Boost }
|
2776
mibs/dantherm/DANTHERM-COOLING-MIB
Normal file
2776
mibs/dantherm/DANTHERM-COOLING-MIB
Normal file
File diff suppressed because it is too large
Load Diff
259
tests/data/dantherm-os.json
Normal file
259
tests/data/dantherm-os.json
Normal file
@ -0,0 +1,259 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.0",
|
||||
"sysDescr": "FreeCooling Controller, SNMP V1.0",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "dantherm-os",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "dantherm.png",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.0",
|
||||
"sysDescr": "FreeCooling Controller, SNMP V1.0",
|
||||
"sysContact": "<private>",
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "dantherm-os",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "dantherm.png",
|
||||
"location": "<private>"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sensors": {
|
||||
"discovery": {
|
||||
"sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "fanspeed",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.46651.1.1.8.0",
|
||||
"sensor_index": "fan1RPM.0",
|
||||
"sensor_type": "dantherm-os",
|
||||
"sensor_descr": "fan1 RPM",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 480,
|
||||
"sensor_limit": 864,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 384,
|
||||
"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": "fanspeed",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.46651.1.1.9.0",
|
||||
"sensor_index": "fan2RPM.0",
|
||||
"sensor_type": "dantherm-os",
|
||||
"sensor_descr": "fan2 RPM",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 0,
|
||||
"sensor_limit": 0,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 0,
|
||||
"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": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.46651.1.1.18.0",
|
||||
"sensor_index": "0",
|
||||
"sensor_type": "fan1Status_states",
|
||||
"sensor_descr": "Fan 1 operation status",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 1,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": "fan1Status_states"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.46651.1.1.19.0",
|
||||
"sensor_index": "0",
|
||||
"sensor_type": "fan2Status_states",
|
||||
"sensor_descr": "Fan 2 operation status",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 1,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": "fan2Status_states"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "temperature",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.46651.1.1.3.0",
|
||||
"sensor_index": "hotSpotTempr.0",
|
||||
"sensor_type": "dantherm-os",
|
||||
"sensor_descr": "hotSpot Tempr",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": -41,
|
||||
"sensor_limit": -21,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": -51,
|
||||
"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.46651.1.1.1.0",
|
||||
"sensor_index": "onBoardTempr.0",
|
||||
"sensor_type": "dantherm-os",
|
||||
"sensor_descr": "onBoard Tempr",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 34,
|
||||
"sensor_limit": 54,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 24,
|
||||
"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.46651.1.1.2.0",
|
||||
"sensor_index": "roomTempr.0",
|
||||
"sensor_type": "dantherm-os",
|
||||
"sensor_descr": "room Tempr",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 19,
|
||||
"sensor_limit": 39,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 9,
|
||||
"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": [
|
||||
{
|
||||
"state_name": "fan1Status_states",
|
||||
"state_descr": "Off",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 0,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "fan1Status_states",
|
||||
"state_descr": "On",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "fan1Status_states",
|
||||
"state_descr": "Emergency/Boost",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "fan2Status_states",
|
||||
"state_descr": "Off",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 0,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "fan2Status_states",
|
||||
"state_descr": "On",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "fan2Status_states",
|
||||
"state_descr": "Emergency/Boost",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
13
tests/snmpsim/dantherm-os.snmprec
Normal file
13
tests/snmpsim/dantherm-os.snmprec
Normal file
@ -0,0 +1,13 @@
|
||||
1.3.6.1.2.1.1.1.0|4|FreeCooling Controller, SNMP V1.0
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.0
|
||||
1.3.6.1.2.1.1.3.0|67|736007630
|
||||
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.46651.1.1.1.0|2|34
|
||||
1.3.6.1.4.1.46651.1.1.2.0|2|19
|
||||
1.3.6.1.4.1.46651.1.1.3.0|2|-41
|
||||
1.3.6.1.4.1.46651.1.1.8.0|2|480
|
||||
1.3.6.1.4.1.46651.1.1.9.0|2|0
|
||||
1.3.6.1.4.1.46651.1.1.18.0|2|1
|
||||
1.3.6.1.4.1.46651.1.1.19.0|2|1
|
Loading…
Reference in New Issue
Block a user