diff --git a/includes/definitions/discovery/hwg-poseidon.yaml b/includes/definitions/discovery/hwg-poseidon.yaml index 62b46e57c7..ad52e290d3 100644 --- a/includes/definitions/discovery/hwg-poseidon.yaml +++ b/includes/definitions/discovery/hwg-poseidon.yaml @@ -36,7 +36,7 @@ modules: - oid: inpTable value: inpValue - num_oid: '.1.3.6.1.4.1.21796.4.1.1.1.2.{{ $index }}' + num_oid: '.1.3.6.1.4.1.21796.3.3.1.1.2.{{ $index }}' descr: inpName index: 'inpValue.{{ $index }}' state_name: inpValue @@ -46,7 +46,7 @@ modules: - oid: inpTable value: inpAlarmState - num_oid: '.1.3.6.1.4.1.21796.4.1.1.1.4.{{ $index }}' + num_oid: '.1.3.6.1.4.1.21796.3.3.1.1.5.{{ $index }}' descr: 'alarm : {{ $inpName }}' index: 'inpAlarmState.{{ $index }}' state_name: inpAlarmState @@ -56,7 +56,7 @@ modules: - oid: sensTable value: sensState - num_oid: '.1.3.6.1.4.1.21796.4.1.3.1.3.{{ $index }}' + num_oid: '.1.3.6.1.4.1.21796.3.3.3.1.4.{{ $index }}' descr: sensName index: 'sensState.{{ $index }}' state_name: sensName @@ -65,5 +65,3 @@ modules: - { descr: normal, graph: 0, value: 1, generic: 0 } - { descr: alarmstate, graph: 0, value: 2, generic: 2 } - { descr: alarm, graph: 0, value: 3, generic: 2 } - - diff --git a/tests/data/hwg-poseidon.json b/tests/data/hwg-poseidon.json index 810b34e336..4755b5fbe7 100644 --- a/tests/data/hwg-poseidon.json +++ b/tests/data/hwg-poseidon.json @@ -34,7 +34,7 @@ "group": null, "sensor_divisor": 10, "sensor_multiplier": 1, - "sensor_current": 30.3, + "sensor_current": 29.6, "sensor_limit": 70, "sensor_limit_warn": null, "sensor_limit_low": 30, @@ -58,7 +58,7 @@ "group": null, "sensor_divisor": 10, "sensor_multiplier": 1, - "sensor_current": 29.6, + "sensor_current": 31.8, "sensor_limit": 70, "sensor_limit_warn": null, "sensor_limit_low": 30, @@ -82,7 +82,7 @@ "group": null, "sensor_divisor": 10, "sensor_multiplier": 1, - "sensor_current": 28.7, + "sensor_current": 34, "sensor_limit": 70, "sensor_limit_warn": null, "sensor_limit_low": 30, @@ -106,7 +106,7 @@ "group": null, "sensor_divisor": 10, "sensor_multiplier": 1, - "sensor_current": 20.6, + "sensor_current": 29.3, "sensor_limit": 70, "sensor_limit_warn": null, "sensor_limit_low": 30, @@ -123,7 +123,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.1", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.5.1", "sensor_index": "inpAlarmState.1", "sensor_type": "inpAlarmState", "sensor_descr": "alarm : Binary 1", @@ -147,7 +147,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.2", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.5.2", "sensor_index": "inpAlarmState.2", "sensor_type": "inpAlarmState", "sensor_descr": "alarm : Binary 2", @@ -171,7 +171,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.3", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.5.3", "sensor_index": "inpAlarmState.3", "sensor_type": "inpAlarmState", "sensor_descr": "alarm : Binary 3", @@ -195,7 +195,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.4", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.5.4", "sensor_index": "inpAlarmState.4", "sensor_type": "inpAlarmState", "sensor_descr": "alarm : Binary 4", @@ -219,7 +219,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.5", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.5.5", "sensor_index": "inpAlarmState.5", "sensor_type": "inpAlarmState", "sensor_descr": "alarm : Binary 5", @@ -243,7 +243,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.6", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.5.6", "sensor_index": "inpAlarmState.6", "sensor_type": "inpAlarmState", "sensor_descr": "alarm : Binary 6", @@ -267,7 +267,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.1", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.2.1", "sensor_index": "inpValue.1", "sensor_type": "inpValue", "sensor_descr": "Binary 1", @@ -291,7 +291,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.2", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.2.2", "sensor_index": "inpValue.2", "sensor_type": "inpValue", "sensor_descr": "Binary 2", @@ -315,7 +315,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.3", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.2.3", "sensor_index": "inpValue.3", "sensor_type": "inpValue", "sensor_descr": "Binary 3", @@ -339,7 +339,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.4", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.2.4", "sensor_index": "inpValue.4", "sensor_type": "inpValue", "sensor_descr": "Binary 4", @@ -363,7 +363,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.5", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.2.5", "sensor_index": "inpValue.5", "sensor_type": "inpValue", "sensor_descr": "Binary 5", @@ -387,7 +387,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.6", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.1.1.2.6", "sensor_index": "inpValue.6", "sensor_type": "inpValue", "sensor_descr": "Binary 6", @@ -411,7 +411,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.1", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.4.1", "sensor_index": "sensState.1", "sensor_type": "sensName", "sensor_descr": "H.Servidores", @@ -435,7 +435,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.2", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.4.2", "sensor_index": "sensState.2", "sensor_type": "sensName", "sensor_descr": "H.Network", @@ -459,7 +459,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.3", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.4.3", "sensor_index": "sensState.3", "sensor_type": "sensName", "sensor_descr": "H.Ambiente", @@ -483,7 +483,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.4", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.4.4", "sensor_index": "sensState.4", "sensor_type": "sensName", "sensor_descr": "H.C4c", @@ -507,7 +507,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.5", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.4.5", "sensor_index": "sensState.5", "sensor_type": "sensName", "sensor_descr": "T.Network", @@ -531,7 +531,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.6", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.4.6", "sensor_index": "sensState.6", "sensor_type": "sensName", "sensor_descr": "T.C4c", @@ -555,7 +555,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.7", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.4.7", "sensor_index": "sensState.7", "sensor_type": "sensName", "sensor_descr": "T.Ambiente", @@ -579,7 +579,7 @@ "sensor_deleted": 0, "sensor_class": "state", "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.8", + "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.4.8", "sensor_index": "sensState.8", "sensor_type": "sensName", "sensor_descr": "T.Servidores", @@ -610,10 +610,10 @@ "group": null, "sensor_divisor": 10, "sensor_multiplier": 1, - "sensor_current": 24.9, - "sensor_limit": 44.9, + "sensor_current": 28.5, + "sensor_limit": 48.5, "sensor_limit_warn": null, - "sensor_limit_low": 14.9, + "sensor_limit_low": 18.5, "sensor_limit_low_warn": null, "sensor_alert": 1, "sensor_custom": "No", @@ -634,10 +634,10 @@ "group": null, "sensor_divisor": 10, "sensor_multiplier": 1, - "sensor_current": 31.1, - "sensor_limit": 51.1, + "sensor_current": 29.1, + "sensor_limit": 49.1, "sensor_limit_warn": null, - "sensor_limit_low": 21.1, + "sensor_limit_low": 19.1, "sensor_limit_low_warn": null, "sensor_alert": 1, "sensor_custom": "No", @@ -658,10 +658,10 @@ "group": null, "sensor_divisor": 10, "sensor_multiplier": 1, - "sensor_current": 25.7, - "sensor_limit": 45.7, + "sensor_current": 26.8, + "sensor_limit": 46.8, "sensor_limit_warn": null, - "sensor_limit_low": 15.7, + "sensor_limit_low": 16.8, "sensor_limit_low_warn": null, "sensor_alert": 1, "sensor_custom": "No", @@ -682,10 +682,10 @@ "group": null, "sensor_divisor": 10, "sensor_multiplier": 1, - "sensor_current": 23.6, - "sensor_limit": 43.6, + "sensor_current": 29, + "sensor_limit": 49, "sensor_limit_warn": null, - "sensor_limit_low": 13.6, + "sensor_limit_low": 19, "sensor_limit_low_warn": null, "sensor_alert": 1, "sensor_custom": "No", @@ -755,739 +755,6 @@ } ] }, - "poller": { - "sensors": [ - { - "sensor_deleted": 0, - "sensor_class": "humidity", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.6.1", - "sensor_index": "sensTable.1", - "sensor_type": "hwg-poseidon", - "sensor_descr": "H.Servidores", - "group": null, - "sensor_divisor": 10, - "sensor_multiplier": 1, - "sensor_current": 30.3, - "sensor_limit": 70, - "sensor_limit_warn": null, - "sensor_limit_low": 30, - "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": "humidity", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.6.2", - "sensor_index": "sensTable.2", - "sensor_type": "hwg-poseidon", - "sensor_descr": "H.Network", - "group": null, - "sensor_divisor": 10, - "sensor_multiplier": 1, - "sensor_current": 29.6, - "sensor_limit": 70, - "sensor_limit_warn": null, - "sensor_limit_low": 30, - "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": "humidity", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.6.3", - "sensor_index": "sensTable.3", - "sensor_type": "hwg-poseidon", - "sensor_descr": "H.Ambiente", - "group": null, - "sensor_divisor": 10, - "sensor_multiplier": 1, - "sensor_current": 28.7, - "sensor_limit": 70, - "sensor_limit_warn": null, - "sensor_limit_low": 30, - "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": "humidity", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.6.4", - "sensor_index": "sensTable.4", - "sensor_type": "hwg-poseidon", - "sensor_descr": "H.C4c", - "group": null, - "sensor_divisor": 10, - "sensor_multiplier": 1, - "sensor_current": 20.6, - "sensor_limit": 70, - "sensor_limit_warn": null, - "sensor_limit_low": 30, - "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.21796.4.1.1.1.4.1", - "sensor_index": "inpAlarmState.1", - "sensor_type": "inpAlarmState", - "sensor_descr": "alarm : Binary 1", - "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": "inpAlarmState" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.2", - "sensor_index": "inpAlarmState.2", - "sensor_type": "inpAlarmState", - "sensor_descr": "alarm : Binary 2", - "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": "inpAlarmState" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.3", - "sensor_index": "inpAlarmState.3", - "sensor_type": "inpAlarmState", - "sensor_descr": "alarm : Binary 3", - "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": "inpAlarmState" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.4", - "sensor_index": "inpAlarmState.4", - "sensor_type": "inpAlarmState", - "sensor_descr": "alarm : Binary 4", - "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": "inpAlarmState" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.5", - "sensor_index": "inpAlarmState.5", - "sensor_type": "inpAlarmState", - "sensor_descr": "alarm : Binary 5", - "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": "inpAlarmState" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.4.6", - "sensor_index": "inpAlarmState.6", - "sensor_type": "inpAlarmState", - "sensor_descr": "alarm : Binary 6", - "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": "inpAlarmState" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.1", - "sensor_index": "inpValue.1", - "sensor_type": "inpValue", - "sensor_descr": "Binary 1", - "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": "inpValue" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.2", - "sensor_index": "inpValue.2", - "sensor_type": "inpValue", - "sensor_descr": "Binary 2", - "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": "inpValue" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.3", - "sensor_index": "inpValue.3", - "sensor_type": "inpValue", - "sensor_descr": "Binary 3", - "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": "inpValue" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.4", - "sensor_index": "inpValue.4", - "sensor_type": "inpValue", - "sensor_descr": "Binary 4", - "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": "inpValue" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.5", - "sensor_index": "inpValue.5", - "sensor_type": "inpValue", - "sensor_descr": "Binary 5", - "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": "inpValue" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.1.1.2.6", - "sensor_index": "inpValue.6", - "sensor_type": "inpValue", - "sensor_descr": "Binary 6", - "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": "inpValue" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.1", - "sensor_index": "sensState.1", - "sensor_type": "sensName", - "sensor_descr": "H.Servidores", - "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": 1, - "user_func": null, - "state_name": "sensName" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.2", - "sensor_index": "sensState.2", - "sensor_type": "sensName", - "sensor_descr": "H.Network", - "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": 1, - "user_func": null, - "state_name": "sensName" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.3", - "sensor_index": "sensState.3", - "sensor_type": "sensName", - "sensor_descr": "H.Ambiente", - "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": 1, - "user_func": null, - "state_name": "sensName" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.4", - "sensor_index": "sensState.4", - "sensor_type": "sensName", - "sensor_descr": "H.C4c", - "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": 1, - "user_func": null, - "state_name": "sensName" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.5", - "sensor_index": "sensState.5", - "sensor_type": "sensName", - "sensor_descr": "T.Network", - "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": 1, - "user_func": null, - "state_name": "sensName" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.6", - "sensor_index": "sensState.6", - "sensor_type": "sensName", - "sensor_descr": "T.C4c", - "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": 1, - "user_func": null, - "state_name": "sensName" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.7", - "sensor_index": "sensState.7", - "sensor_type": "sensName", - "sensor_descr": "T.Ambiente", - "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": 1, - "user_func": null, - "state_name": "sensName" - }, - { - "sensor_deleted": 0, - "sensor_class": "state", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.4.1.3.1.3.8", - "sensor_index": "sensState.8", - "sensor_type": "sensName", - "sensor_descr": "T.Servidores", - "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": 1, - "user_func": null, - "state_name": "sensName" - }, - { - "sensor_deleted": 0, - "sensor_class": "temperature", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.6.5", - "sensor_index": "sensTable.5", - "sensor_type": "hwg-poseidon", - "sensor_descr": "T.Network", - "group": null, - "sensor_divisor": 10, - "sensor_multiplier": 1, - "sensor_current": 24.9, - "sensor_limit": 44.9, - "sensor_limit_warn": null, - "sensor_limit_low": 14.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 - }, - { - "sensor_deleted": 0, - "sensor_class": "temperature", - "poller_type": "snmp", - "sensor_oid": ".1.3.6.1.4.1.21796.3.3.3.1.6.6", - "sensor_index": "sensTable.6", - "sensor_type": "hwg-poseidon", - "sensor_descr": "T.C4c", - "group": null, - "sensor_divisor": 10, - "sensor_multiplier": 1, - "sensor_current": 31.1, - "sensor_limit": 51.1, - "sensor_limit_warn": null, - "sensor_limit_low": 21.1, - "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.21796.3.3.3.1.6.7", - "sensor_index": "sensTable.7", - "sensor_type": "hwg-poseidon", - "sensor_descr": "T.Ambiente", - "group": null, - "sensor_divisor": 10, - "sensor_multiplier": 1, - "sensor_current": 25.7, - "sensor_limit": 45.7, - "sensor_limit_warn": null, - "sensor_limit_low": 15.7, - "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.21796.3.3.3.1.6.8", - "sensor_index": "sensTable.8", - "sensor_type": "hwg-poseidon", - "sensor_descr": "T.Servidores", - "group": null, - "sensor_divisor": 10, - "sensor_multiplier": 1, - "sensor_current": 23.6, - "sensor_limit": 43.6, - "sensor_limit_warn": null, - "sensor_limit_low": 13.6, - "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": "inpAlarmState", - "state_descr": "normal", - "state_draw_graph": 0, - "state_value": 0, - "state_generic_value": 0 - }, - { - "state_name": "inpAlarmState", - "state_descr": "alarm", - "state_draw_graph": 0, - "state_value": 1, - "state_generic_value": 2 - }, - { - "state_name": "inpValue", - "state_descr": "open", - "state_draw_graph": 0, - "state_value": 0, - "state_generic_value": 0 - }, - { - "state_name": "inpValue", - "state_descr": "closed", - "state_draw_graph": 0, - "state_value": 1, - "state_generic_value": 2 - }, - { - "state_name": "sensName", - "state_descr": "invalid", - "state_draw_graph": 0, - "state_value": 0, - "state_generic_value": 2 - }, - { - "state_name": "sensName", - "state_descr": "normal", - "state_draw_graph": 0, - "state_value": 1, - "state_generic_value": 0 - }, - { - "state_name": "sensName", - "state_descr": "alarmstate", - "state_draw_graph": 0, - "state_value": 2, - "state_generic_value": 2 - }, - { - "state_name": "sensName", - "state_descr": "alarm", - "state_draw_graph": 0, - "state_value": 3, - "state_generic_value": 2 - } - ] - } + "poller": "matches discovery" } -} +} \ No newline at end of file diff --git a/tests/snmpsim/hwg-poseidon.snmprec b/tests/snmpsim/hwg-poseidon.snmprec index 99cac32148..584f3f1dbc 100644 --- a/tests/snmpsim/hwg-poseidon.snmprec +++ b/tests/snmpsim/hwg-poseidon.snmprec @@ -1,24 +1,24 @@ 1.3.6.1.2.1.1.1.0|4|Poseidon 4002 SNMP Supervisor v2.0.15 1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.21796.3.3 -1.3.6.1.2.1.1.3.0|67|17937314 +1.3.6.1.2.1.1.3.0|67|82193864 1.3.6.1.2.1.1.4.0|4| 1.3.6.1.2.1.1.5.0|4| 1.3.6.1.2.1.1.6.0|4| -1.3.6.1.2.1.11.1.0|65|7426548 -1.3.6.1.2.1.11.2.0|65|7426536 -1.3.6.1.2.1.11.3.0|65|14 -1.3.6.1.2.1.11.4.0|65|6 +1.3.6.1.2.1.11.1.0|65|8030565 +1.3.6.1.2.1.11.2.0|65|8030549 +1.3.6.1.2.1.11.3.0|65|18 +1.3.6.1.2.1.11.4.0|65|0 1.3.6.1.2.1.11.5.0|65|0 1.3.6.1.2.1.11.6.0|65|0 1.3.6.1.2.1.11.8.0|65|0 -1.3.6.1.2.1.11.9.0|65|865108 +1.3.6.1.2.1.11.9.0|65|3666200 1.3.6.1.2.1.11.10.0|65|0 1.3.6.1.2.1.11.11.0|65|0 1.3.6.1.2.1.11.12.0|65|0 -1.3.6.1.2.1.11.13.0|65|7593657 +1.3.6.1.2.1.11.13.0|65|8087580 1.3.6.1.2.1.11.14.0|65|0 -1.3.6.1.2.1.11.15.0|65|1078569 -1.3.6.1.2.1.11.16.0|65|6347973 +1.3.6.1.2.1.11.15.0|65|4061700 +1.3.6.1.2.1.11.16.0|65|3968860 1.3.6.1.2.1.11.17.0|65|0 1.3.6.1.2.1.11.18.0|65|0 1.3.6.1.2.1.11.19.0|65|0 @@ -29,9 +29,8 @@ 1.3.6.1.2.1.11.25.0|65|0 1.3.6.1.2.1.11.26.0|65|0 1.3.6.1.2.1.11.27.0|65|0 -1.3.6.1.2.1.11.28.0|65|7426552 -1.3.6.1.2.1.11.29.0|65|8 -1.3.6.1.2.1.11.30.0|2|1 +1.3.6.1.2.1.11.28.0|65|8030571 +1.3.6.1.2.1.11.29.0|65|2 1.3.6.1.4.1.21796.3.3.1.1.2.1|2|0 1.3.6.1.4.1.21796.3.3.1.1.2.2|2|0 1.3.6.1.4.1.21796.3.3.1.1.2.3|2|0 @@ -56,14 +55,6 @@ 1.3.6.1.4.1.21796.3.3.1.1.5.4|2|0 1.3.6.1.4.1.21796.3.3.1.1.5.5|2|0 1.3.6.1.4.1.21796.3.3.1.1.5.6|2|0 -1.3.6.1.4.1.21796.3.3.2.1.2.1|2|0 -1.3.6.1.4.1.21796.3.3.2.1.2.2|2|0 -1.3.6.1.4.1.21796.3.3.2.1.3.1|4|BinOut 1 -1.3.6.1.4.1.21796.3.3.2.1.3.2|4|BinOut 2 -1.3.6.1.4.1.21796.3.3.2.1.4.1|2|0 -1.3.6.1.4.1.21796.3.3.2.1.4.2|2|0 -1.3.6.1.4.1.21796.3.3.2.1.5.1|2|0 -1.3.6.1.4.1.21796.3.3.2.1.5.2|2|0 1.3.6.1.4.1.21796.3.3.3.1.2.1|4|H.Servidores 1.3.6.1.4.1.21796.3.3.3.1.2.2|4|H.Network 1.3.6.1.4.1.21796.3.3.3.1.2.3|4|H.Ambiente @@ -80,30 +71,30 @@ 1.3.6.1.4.1.21796.3.3.3.1.4.6|2|1 1.3.6.1.4.1.21796.3.3.3.1.4.7|2|1 1.3.6.1.4.1.21796.3.3.3.1.4.8|2|1 -1.3.6.1.4.1.21796.3.3.3.1.5.1|4|30.3 %RH -1.3.6.1.4.1.21796.3.3.3.1.5.2|4|29.6 %RH -1.3.6.1.4.1.21796.3.3.3.1.5.3|4|28.7 %RH -1.3.6.1.4.1.21796.3.3.3.1.5.4|4|20.6 %RH -1.3.6.1.4.1.21796.3.3.3.1.5.5|4|24.9 C -1.3.6.1.4.1.21796.3.3.3.1.5.6|4|31.1 C -1.3.6.1.4.1.21796.3.3.3.1.5.7|4|25.7 C -1.3.6.1.4.1.21796.3.3.3.1.5.8|4|23.6 C -1.3.6.1.4.1.21796.3.3.3.1.6.1|2|303 -1.3.6.1.4.1.21796.3.3.3.1.6.2|2|296 -1.3.6.1.4.1.21796.3.3.3.1.6.3|2|287 -1.3.6.1.4.1.21796.3.3.3.1.6.4|2|206 -1.3.6.1.4.1.21796.3.3.3.1.6.5|2|249 -1.3.6.1.4.1.21796.3.3.3.1.6.6|2|311 -1.3.6.1.4.1.21796.3.3.3.1.6.7|2|257 -1.3.6.1.4.1.21796.3.3.3.1.6.8|2|236 -1.3.6.1.4.1.21796.3.3.3.1.7.1|2|303 -1.3.6.1.4.1.21796.3.3.3.1.7.2|2|296 -1.3.6.1.4.1.21796.3.3.3.1.7.3|2|287 -1.3.6.1.4.1.21796.3.3.3.1.7.4|2|206 -1.3.6.1.4.1.21796.3.3.3.1.7.5|2|249 -1.3.6.1.4.1.21796.3.3.3.1.7.6|2|311 -1.3.6.1.4.1.21796.3.3.3.1.7.7|2|257 -1.3.6.1.4.1.21796.3.3.3.1.7.8|2|236 +1.3.6.1.4.1.21796.3.3.3.1.5.1|4|29.6 %RH +1.3.6.1.4.1.21796.3.3.3.1.5.2|4|31.8 %RH +1.3.6.1.4.1.21796.3.3.3.1.5.3|4|34.0 %RH +1.3.6.1.4.1.21796.3.3.3.1.5.4|4|29.3 %RH +1.3.6.1.4.1.21796.3.3.3.1.5.5|4|28.5 C +1.3.6.1.4.1.21796.3.3.3.1.5.6|4|29.0 C +1.3.6.1.4.1.21796.3.3.3.1.5.7|4|26.9 C +1.3.6.1.4.1.21796.3.3.3.1.5.8|4|29.0 C +1.3.6.1.4.1.21796.3.3.3.1.6.1|2|296 +1.3.6.1.4.1.21796.3.3.3.1.6.2|2|318 +1.3.6.1.4.1.21796.3.3.3.1.6.3|2|340 +1.3.6.1.4.1.21796.3.3.3.1.6.4|2|293 +1.3.6.1.4.1.21796.3.3.3.1.6.5|2|285 +1.3.6.1.4.1.21796.3.3.3.1.6.6|2|291 +1.3.6.1.4.1.21796.3.3.3.1.6.7|2|268 +1.3.6.1.4.1.21796.3.3.3.1.6.8|2|290 +1.3.6.1.4.1.21796.3.3.3.1.7.1|2|296 +1.3.6.1.4.1.21796.3.3.3.1.7.2|2|318 +1.3.6.1.4.1.21796.3.3.3.1.7.3|2|340 +1.3.6.1.4.1.21796.3.3.3.1.7.4|2|293 +1.3.6.1.4.1.21796.3.3.3.1.7.5|2|285 +1.3.6.1.4.1.21796.3.3.3.1.7.6|2|290 +1.3.6.1.4.1.21796.3.3.3.1.7.7|2|269 +1.3.6.1.4.1.21796.3.3.3.1.7.8|2|290 1.3.6.1.4.1.21796.3.3.3.1.8.1|2|8202 1.3.6.1.4.1.21796.3.3.3.1.8.2|2|1350 1.3.6.1.4.1.21796.3.3.3.1.8.3|2|5716 @@ -128,46 +119,3 @@ 1.3.6.1.4.1.21796.3.3.3.1.10.6|4|C 1.3.6.1.4.1.21796.3.3.3.1.10.7|4|C 1.3.6.1.4.1.21796.3.3.3.1.10.8|4|C -1.3.6.1.4.1.21796.3.3.50.1.0|66|0 -1.3.6.1.4.1.21796.3.3.70.1.0|4|00:0A:59:03:18:BD -1.3.6.1.4.1.21796.3.3.99.1.1.0|2|0 -1.3.6.1.4.1.21796.3.3.99.1.2.1.2.1|4|H.Servidores -1.3.6.1.4.1.21796.3.3.99.1.2.1.2.2|4|H.Network -1.3.6.1.4.1.21796.3.3.99.1.2.1.2.3|4|H.Ambiente -1.3.6.1.4.1.21796.3.3.99.1.2.1.2.4|4|H.C4c -1.3.6.1.4.1.21796.3.3.99.1.2.1.2.5|4|T.Network -1.3.6.1.4.1.21796.3.3.99.1.2.1.2.6|4|T.C4c -1.3.6.1.4.1.21796.3.3.99.1.2.1.2.7|4|T.Ambiente -1.3.6.1.4.1.21796.3.3.99.1.2.1.2.8|4|T.Servidores -1.3.6.1.4.1.21796.3.3.99.1.2.1.5.1|2|8 -1.3.6.1.4.1.21796.3.3.99.1.2.1.5.2|2|8 -1.3.6.1.4.1.21796.3.3.99.1.2.1.5.3|2|8 -1.3.6.1.4.1.21796.3.3.99.1.2.1.5.4|2|8 -1.3.6.1.4.1.21796.3.3.99.1.2.1.5.5|2|8 -1.3.6.1.4.1.21796.3.3.99.1.2.1.5.6|2|8 -1.3.6.1.4.1.21796.3.3.99.1.2.1.5.7|2|8 -1.3.6.1.4.1.21796.3.3.99.1.2.1.5.8|2|8 -1.3.6.1.4.1.21796.3.3.99.1.2.1.6.1|2|100 -1.3.6.1.4.1.21796.3.3.99.1.2.1.6.2|2|100 -1.3.6.1.4.1.21796.3.3.99.1.2.1.6.3|2|100 -1.3.6.1.4.1.21796.3.3.99.1.2.1.6.4|2|100 -1.3.6.1.4.1.21796.3.3.99.1.2.1.6.5|2|100 -1.3.6.1.4.1.21796.3.3.99.1.2.1.6.6|2|100 -1.3.6.1.4.1.21796.3.3.99.1.2.1.6.7|2|100 -1.3.6.1.4.1.21796.3.3.99.1.2.1.6.8|2|100 -1.3.6.1.4.1.21796.3.3.99.1.2.1.7.1|2|600 -1.3.6.1.4.1.21796.3.3.99.1.2.1.7.2|2|600 -1.3.6.1.4.1.21796.3.3.99.1.2.1.7.3|2|600 -1.3.6.1.4.1.21796.3.3.99.1.2.1.7.4|2|600 -1.3.6.1.4.1.21796.3.3.99.1.2.1.7.5|2|600 -1.3.6.1.4.1.21796.3.3.99.1.2.1.7.6|2|600 -1.3.6.1.4.1.21796.3.3.99.1.2.1.7.7|2|600 -1.3.6.1.4.1.21796.3.3.99.1.2.1.7.8|2|600 -1.3.6.1.4.1.21796.3.3.99.1.2.1.8.1|2|0 -1.3.6.1.4.1.21796.3.3.99.1.2.1.8.2|2|0 -1.3.6.1.4.1.21796.3.3.99.1.2.1.8.3|2|0 -1.3.6.1.4.1.21796.3.3.99.1.2.1.8.4|2|0 -1.3.6.1.4.1.21796.3.3.99.1.2.1.8.5|2|0 -1.3.6.1.4.1.21796.3.3.99.1.2.1.8.6|2|0 -1.3.6.1.4.1.21796.3.3.99.1.2.1.8.7|2|0 -1.3.6.1.4.1.21796.3.3.99.1.2.1.8.8|2|0