Added WLD version 2 device support (#13849)

This commit is contained in:
PipoCanaja
2022-03-14 22:33:10 +01:00
committed by GitHub
parent c13975524c
commit c28cb759aa
5 changed files with 240 additions and 1 deletions

View File

@@ -17,6 +17,11 @@ modules:
- { descr: invalid, graph: 0, value: 0, generic: 2 }
- { descr: normal, graph: 0, value: 1, generic: 0 }
- { descr: alarm, graph: 0, value: 3, generic: 2 }
skip_values:
-
oid: wldValue
op: '='
value: 2
-
oid: wldTable
value: wldValue

View File

@@ -10,3 +10,5 @@ discovery:
-
sysObjectID:
- .1.3.6.1.4.1.21796.4.9
sysDescr_except:
- 'WLD2'

View File

@@ -17,5 +17,6 @@ discovery:
-
sysObjectID:
- .1.3.6.1.4.1.21796.4.1
- .1.3.6.1.4.1.21796.4.9
sysDescr:
- 'HWg-WLD'
- 'WLD'

View File

@@ -0,0 +1,201 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.21796.4.9",
"sysDescr": "WLD2 1.4.3",
"sysContact": "<private>",
"version": null,
"hardware": null,
"features": null,
"os": "hwg-wld",
"type": "environment",
"serial": "27F5010000000008",
"icon": "hwg.svg",
"location": "<private>"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.21796.4.5.4.1.3.1",
"sensor_index": "wldState.1",
"sensor_type": "wldState",
"sensor_descr": "\"Sonde Nord\" state",
"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": "wldState"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.21796.4.5.4.1.6.1",
"sensor_index": "wldValue.1",
"sensor_type": "wldValue",
"sensor_descr": "\"Sonde Nord\" detailed state",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"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": "wldValue"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.21796.4.5.4.1.6.2",
"sensor_index": "wldValue.2",
"sensor_type": "wldValue",
"sensor_descr": "\"Water 502\" detailed state",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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": "wldValue"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.21796.4.5.4.1.6.3",
"sensor_index": "wldValue.3",
"sensor_type": "wldValue",
"sensor_descr": "\"Water 503\" detailed state",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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": "wldValue"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.21796.4.5.4.1.6.4",
"sensor_index": "wldValue.4",
"sensor_type": "wldValue",
"sensor_descr": "\"Water 504\" detailed state",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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": "wldValue"
}
],
"state_indexes": [
{
"state_name": "wldState",
"state_descr": "invalid",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 2
},
{
"state_name": "wldState",
"state_descr": "normal",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "wldState",
"state_descr": "alarm",
"state_draw_graph": 0,
"state_value": 3,
"state_generic_value": 2
},
{
"state_name": "wldValue",
"state_descr": "normal",
"state_draw_graph": 0,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "wldValue",
"state_descr": "flooded",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "wldValue",
"state_descr": "disconnect",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 3
},
{
"state_name": "wldValue",
"state_descr": "invalid",
"state_draw_graph": 0,
"state_value": 3,
"state_generic_value": 2
}
]
},
"poller": "matches discovery"
}
}

View File

@@ -0,0 +1,30 @@
1.3.6.1.2.1.1.1.0|4|WLD2 1.4.3
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.21796.4.9
1.3.6.1.2.1.1.3.0|67|131800
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.21796.4.5.4.1.1.1|2|1
1.3.6.1.4.1.21796.4.5.4.1.1.2|2|2
1.3.6.1.4.1.21796.4.5.4.1.1.3|2|3
1.3.6.1.4.1.21796.4.5.4.1.1.4|2|4
1.3.6.1.4.1.21796.4.5.4.1.2.1|4|Sonde Nord
1.3.6.1.4.1.21796.4.5.4.1.2.2|4|Water 502
1.3.6.1.4.1.21796.4.5.4.1.2.3|4|Water 503
1.3.6.1.4.1.21796.4.5.4.1.2.4|4|Water 504
1.3.6.1.4.1.21796.4.5.4.1.3.1|2|1
1.3.6.1.4.1.21796.4.5.4.1.3.2|2|3
1.3.6.1.4.1.21796.4.5.4.1.3.3|2|3
1.3.6.1.4.1.21796.4.5.4.1.3.4|2|3
1.3.6.1.4.1.21796.4.5.4.1.4.1|4|27F5010000000008
1.3.6.1.4.1.21796.4.5.4.1.4.2|4|27F6010000000051
1.3.6.1.4.1.21796.4.5.4.1.4.3|4|27F7010000000066
1.3.6.1.4.1.21796.4.5.4.1.4.4|4|27F8010000000042
1.3.6.1.4.1.21796.4.5.4.1.5.1|2|501
1.3.6.1.4.1.21796.4.5.4.1.5.2|2|502
1.3.6.1.4.1.21796.4.5.4.1.5.3|2|503
1.3.6.1.4.1.21796.4.5.4.1.5.4|2|504
1.3.6.1.4.1.21796.4.5.4.1.6.1|2|0
1.3.6.1.4.1.21796.4.5.4.1.6.2|2|2
1.3.6.1.4.1.21796.4.5.4.1.6.3|2|2
1.3.6.1.4.1.21796.4.5.4.1.6.4|2|2