diff --git a/includes/definitions/discovery/avtech.yaml b/includes/definitions/discovery/avtech.yaml index 36c189f5fc..9708668524 100644 --- a/includes/definitions/discovery/avtech.yaml +++ b/includes/definitions/discovery/avtech.yaml @@ -23,17 +23,17 @@ modules: index: 0 descr: .1.3.6.1.4.1.20916.1.6.1.1.2.1.0 - # RoomAlert 4E sen1 - oid: .1.3.6.1.4.1.20916.1.6.1.2.2.1.0 - num_oid: '.1.3.6.1.4.1.20916.1.6.1.2.2.1.{{ $index }}' + oid: .1.3.6.1.4.1.20916.1.6.1.2.1.1.0 + num_oid: '.1.3.6.1.4.1.20916.1.6.1.2.1.1.{{ $index }}' divisor: 1 index: 1 - descr: .1.3.6.1.4.1.20916.1.6.1.2.1.6.0 + descr: .1.3.6.1.4.1.20916.1.6.1.2.1.8.0 - # RoomAlert 4E sen2 oid: .1.3.6.1.4.1.20916.1.6.1.2.2.1.0 num_oid: '.1.3.6.1.4.1.20916.1.6.1.2.2.1.{{ $index }}' divisor: 1 index: 2 - descr: .1.3.6.1.4.1.20916.1.6.1.2.2.6.0 + descr: .1.3.6.1.4.1.20916.1.6.1.2.2.8.0 - # RoomAlert 11E sensor 2 oid: .1.3.6.1.4.1.20916.1.3.1.2.1.0 diff --git a/includes/discovery/sensors/pre-cache/avtech.inc.php b/includes/discovery/sensors/pre-cache/avtech.inc.php index 9d0ced23ab..4c8d12e3d0 100644 --- a/includes/discovery/sensors/pre-cache/avtech.inc.php +++ b/includes/discovery/sensors/pre-cache/avtech.inc.php @@ -51,7 +51,7 @@ foreach (explode(PHP_EOL, $data) as $line) { } if (!$processed) { - $pre_cache[$oid] = [$value]; + $pre_cache[$oid] = [[$oid => $value]]; } } diff --git a/mibs/avtech/ROOMALERT4E.MIB b/mibs/avtech/ROOMALERT4E.MIB index 443e934f37..bf9d96f921 100644 --- a/mibs/avtech/ROOMALERT4E.MIB +++ b/mibs/avtech/ROOMALERT4E.MIB @@ -2,12 +2,12 @@ --defines ROOMALERT4E-MIB for SNMP agent extension of Room Alert 4E --Contents: Global Registration Module -- Room Alert OIDs - Enterprise 20916 ---Version: 1.0.1 ---Date: WEB_RELEASE_DATE_PLACEHOLDER +--Version: 4.2.4 +--Date: 15 February 2019 --Developed By: AVTECH Software, Inc. -- ---Copyright (c) COPYRIGHT_YEAR_PLACEHOLDER AVTECH Software, Inc. +--Copyright (c) 2019 AVTECH Software, Inc. -- ROOMALERT4E-MIB DEFINITIONS ::= BEGIN @@ -24,10 +24,10 @@ IMPORTS avtech OBJECT IDENTIFIER ::= { enterprises 20916 } products OBJECT IDENTIFIER ::= { avtech 1 } -ROOMALERT4E OBJECT IDENTIFIER ::= { products 6 } -sensors OBJECT IDENTIFIER ::= { ROOMALERT4E 1 } -signaltower OBJECT IDENTIFIER ::= { ROOMALERT4E 2 } -traps OBJECT IDENTIFIER ::= { ROOMALERT4E 3 } +roomalert4E OBJECT IDENTIFIER ::= { products 6 } +sensors OBJECT IDENTIFIER ::= { roomalert4E 1 } +signaltower OBJECT IDENTIFIER ::= { roomalert4E 2 } +traps OBJECT IDENTIFIER ::= { roomalert4E 3 } internal OBJECT IDENTIFIER ::= { sensors 1 } temperature OBJECT IDENTIFIER ::= { internal 1 } label OBJECT IDENTIFIER ::= { internal 2 } @@ -45,14 +45,14 @@ internal-tempf OBJECT-TYPE SYNTAX INTEGER(0..65535) ACCESS read-only STATUS mandatory - DESCRIPTION "The internal temperature reading in Fahrenheit. Because the SNMP Protocol does not support floating point numbers, values are scaled by 100 and should be divided by 100 to get the actual value." + DESCRIPTION "The internal temperature reading in Fahrenheit." ::= { temperature 1 } internal-tempc OBJECT-TYPE SYNTAX INTEGER(0..65535) ACCESS read-only STATUS mandatory - DESCRIPTION "The internal temperature reading in Celsius. Because the SNMP Protocol does not support floating point numbers, values are scaled by 100 and should be divided by 100 to get the actual value." + DESCRIPTION "The internal temperature reading in Celsius." ::= { temperature 2 } internal-label OBJECT-TYPE @@ -66,28 +66,28 @@ digital-sen1-1 OBJECT-TYPE SYNTAX INTEGER(0..65535) ACCESS read-only STATUS mandatory - DESCRIPTION "If this sensor is a Temperature or Temp/Humidity sensor, this value represents the current temperature in Celsius." + DESCRIPTION "If this sensor is a Temperature, Temp/Humidity, Temp/Analog, or Temp/Active Power sensor, this value represents the current temperature in Celsius." ::= { digital-sen1 1 } digital-sen1-2 OBJECT-TYPE SYNTAX INTEGER(0..65535) ACCESS read-only STATUS mandatory - DESCRIPTION "If this sensor is a Temperature or Temp/Humidity sensor, this value represents the current temperature in Fahrenheit." + DESCRIPTION "If this sensor is a Temperature, Temp/Humidity, Temp/Analog, or Temp/Active Power sensor, this value represents the current temperature in Fahrenheit." ::= { digital-sen1 2 } digital-sen1-3 OBJECT-TYPE SYNTAX INTEGER(0..65535) ACCESS read-only STATUS mandatory - DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current relative humidity in % Relative Humidity." + DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current relative humidity in % Relative Humidity. If this sensor is a Temp/Analog sensor, this value represents the current Voltage reading. If this is a Temp/Active Power sensor, this value represents the current power state (1=Power Detected, 0=No Power Detected)." ::= { digital-sen1 3 } digital-sen1-4 OBJECT-TYPE SYNTAX INTEGER(0..65535) ACCESS read-only STATUS mandatory - DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current heat index in Fahrenheit." + DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current heat index in Fahrenheit. If this sensor is a Temp/Analog sensor, this value represents the current custom reading." ::= { digital-sen1 4 } digital-sen1-5 OBJECT-TYPE @@ -97,39 +97,53 @@ digital-sen1-5 OBJECT-TYPE DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current heat index in Celsius." ::= { digital-sen1 5 } +digital-sen1-6 OBJECT-TYPE + SYNTAX INTEGER(0..65535) + ACCESS read-only + STATUS mandatory + DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current dew point in Celsius." +::= { digital-sen1 6 } + +digital-sen1-7 OBJECT-TYPE + SYNTAX INTEGER(0..65535) + ACCESS read-only + STATUS mandatory + DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current dew point in Fahrenheit." +::= { digital-sen1 7 } + digital-sen1-label OBJECT-TYPE SYNTAX OCTET STRING ACCESS read-only STATUS mandatory DESCRIPTION "The label of this sensor" -::= {digital-sen1 6} +::= {digital-sen1 8} digital-sen2-1 OBJECT-TYPE SYNTAX INTEGER(0..65535) ACCESS read-only STATUS mandatory - DESCRIPTION "If this sensor is a Temperature or Temp/Humidity sensor, this value represents the current temperature in Celsius." + DESCRIPTION "If this sensor is a Temperature, Temp/Humidity, Temp/Analog, or Temp/Active Power sensor, this value represents the current temperature in Celsius." ::= { digital-sen2 1 } digital-sen2-2 OBJECT-TYPE SYNTAX INTEGER(0..65535) ACCESS read-only STATUS mandatory - DESCRIPTION "If this sensor is a Temperature or Temp/Humidity sensor, this value represents the current temperature in Fahrenheit." + DESCRIPTION "If this sensor is a Temperature, Temp/Humidity, Temp/Analog, or Temp/Active Power sensor, this value represents the current temperature in Fahrenheit." ::= { digital-sen2 2 } digital-sen2-3 OBJECT-TYPE SYNTAX INTEGER(0..65535) ACCESS read-only STATUS mandatory - DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current relative humidity in % Relative Humidity." + DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current relative humidity in % Relative Humidity. If this sensor is a Temp/Analog sensor, this value represents the current Voltage reading. If this is a Temp/Active Power sensor, this value represents the current power state (1=Power Detected, 0=No Power Detected)." ::= { digital-sen2 3 } digital-sen2-4 OBJECT-TYPE SYNTAX INTEGER(0..65535) ACCESS read-only STATUS mandatory - DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current heat index in Fahrenheit." + DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current heat index in Fahrenheit. If this sensor is a Temp/Analog sensor, this value represents the current custom reading." ::= { digital-sen2 4 } digital-sen2-5 OBJECT-TYPE @@ -139,12 +153,26 @@ digital-sen2-5 OBJECT-TYPE DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current heat index in Celsius." ::= { digital-sen2 5 } +digital-sen2-6 OBJECT-TYPE + SYNTAX INTEGER(0..65535) + ACCESS read-only + STATUS mandatory + DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current dew point in Celsius." +::= { digital-sen2 6 } + +digital-sen2-7 OBJECT-TYPE + SYNTAX INTEGER(0..65535) + ACCESS read-only + STATUS mandatory + DESCRIPTION "If this sensor is a Temp/Humidity sensor, this value represents the current dew point in Fahrenheit." +::= { digital-sen2 7 } + digital-sen2-label OBJECT-TYPE SYNTAX OCTET STRING ACCESS read-only STATUS mandatory DESCRIPTION "The label of this sensor" -::= {digital-sen2 6} +::= {digital-sen2 8} switch-sen1 OBJECT-TYPE SYNTAX INTEGER(0..1) @@ -163,49 +191,49 @@ switch-label OBJECT-TYPE red-led OBJECT-TYPE SYNTAX INTEGER(0..1) ACCESS read-write - STATUS current + STATUS mandatory DESCRIPTION "The status of this Light Tower element (0 = OFF, 1 = ON)." ::= { signaltower 1 } amber-led OBJECT-TYPE SYNTAX INTEGER(0..1) ACCESS read-write - STATUS current + STATUS mandatory DESCRIPTION "The status of this Light Tower element (0 = OFF, 1 = ON)." ::= { signaltower 2 } green-led OBJECT-TYPE SYNTAX INTEGER(0..1) ACCESS read-write - STATUS current + STATUS mandatory DESCRIPTION "The status of this Light Tower element (0 = OFF, 1 = ON)." ::= { signaltower 3 } blue-led OBJECT-TYPE SYNTAX INTEGER(0..1) ACCESS read-write - STATUS current + STATUS mandatory DESCRIPTION "The status of this Light Tower element (0 = OFF, 1 = ON)." ::= { signaltower 4 } white-led OBJECT-TYPE SYNTAX INTEGER(0..1) ACCESS read-write - STATUS current + STATUS mandatory DESCRIPTION "The status of this Light Tower element (0 = OFF, 1 = ON)." ::= { signaltower 5 } alarm1 OBJECT-TYPE SYNTAX INTEGER(0..1) ACCESS read-write - STATUS current + STATUS mandatory DESCRIPTION "The status of this Light Tower element (0 = OFF, 1 = ON)." ::= { signaltower 6 } alarm2 OBJECT-TYPE SYNTAX INTEGER(0..1) ACCESS read-write - STATUS current + STATUS mandatory DESCRIPTION "The status of this Light Tower element (0 = OFF, 1 = ON)." ::= { signaltower 7 } @@ -217,10 +245,10 @@ alarmmessage OBJECT-TYPE ::= { traps 1 } --- ROOMALERT4E TRAPS +-- roomalert4E TRAPS room-alert-4e-snmp-trap TRAP-TYPE - ENTERPRISE ROOMALERT4E + ENTERPRISE roomalert4E VARIABLES { alarmmessage } DESCRIPTION "A room-alert-4e-snmp-trap indicates that an alarm condition has occurred on the sensor indicated diff --git a/tests/data/avtech_roomalert4e.json b/tests/data/avtech_roomalert4e.json new file mode 100644 index 0000000000..ed94018940 --- /dev/null +++ b/tests/data/avtech_roomalert4e.json @@ -0,0 +1,379 @@ +{ + "os": { + "discovery": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.20916.1.6", + "sysDescr": "Room Alert 4E v4.2.4", + "sysContact": null, + "version": null, + "hardware": null, + "features": null, + "os": "avtech", + "type": "environment", + "serial": null, + "icon": "avtech.svg", + "location": null + } + ] + }, + "poller": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.20916.1.6", + "sysDescr": "Room Alert 4E v4.2.4", + "sysContact": "", + "version": "v4.2.4", + "hardware": "Room Alert 4E", + "features": null, + "os": "avtech", + "type": "environment", + "serial": null, + "icon": "avtech.svg", + "location": "" + } + ] + } + }, + "ports": { + "discovery": { + "ports": [ + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "Network", + "ifName": "Network", + "portName": null, + "ifIndex": 1, + "ifSpeed": null, + "ifConnectorPresent": null, + "ifPromiscuousMode": null, + "ifHighSpeed": null, + "ifOperStatus": null, + "ifOperStatus_prev": null, + "ifAdminStatus": null, + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": null, + "ifType": "ethernetCsmacd", + "ifAlias": "Network", + "ifPhysAddress": null, + "ifHardType": null, + "ifLastChange": 0, + "ifVlan": "", + "ifTrunk": null, + "counter_in": null, + "counter_out": null, + "ignore": 0, + "disabled": 0, + "detailed": 0, + "deleted": 0, + "pagpOperationMode": null, + "pagpPortState": null, + "pagpPartnerDeviceId": null, + "pagpPartnerLearnMethod": null, + "pagpPartnerIfIndex": null, + "pagpPartnerGroupIfIndex": null, + "pagpPartnerDeviceName": null, + "pagpEthcOperationMode": null, + "pagpDeviceId": null, + "pagpGroupIfIndex": null, + "ifInUcastPkts": null, + "ifInUcastPkts_prev": null, + "ifInUcastPkts_delta": null, + "ifInUcastPkts_rate": null, + "ifOutUcastPkts": null, + "ifOutUcastPkts_prev": null, + "ifOutUcastPkts_delta": null, + "ifOutUcastPkts_rate": null, + "ifInErrors": null, + "ifInErrors_prev": null, + "ifInErrors_delta": null, + "ifInErrors_rate": null, + "ifOutErrors": null, + "ifOutErrors_prev": null, + "ifOutErrors_delta": null, + "ifOutErrors_rate": null, + "ifInOctets": null, + "ifInOctets_prev": null, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": null, + "ifOutOctets_prev": null, + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": null, + "ifInNUcastPkts_prev": null, + "ifInNUcastPkts_delta": null, + "ifInNUcastPkts_rate": null, + "ifOutNUcastPkts": null, + "ifOutNUcastPkts_prev": null, + "ifOutNUcastPkts_delta": null, + "ifOutNUcastPkts_rate": null, + "ifInDiscards": null, + "ifInDiscards_prev": null, + "ifInDiscards_delta": null, + "ifInDiscards_rate": null, + "ifOutDiscards": null, + "ifOutDiscards_prev": null, + "ifOutDiscards_delta": null, + "ifOutDiscards_rate": null, + "ifInUnknownProtos": null, + "ifInUnknownProtos_prev": null, + "ifInUnknownProtos_delta": null, + "ifInUnknownProtos_rate": null, + "ifInBroadcastPkts": null, + "ifInBroadcastPkts_prev": null, + "ifInBroadcastPkts_delta": null, + "ifInBroadcastPkts_rate": null, + "ifOutBroadcastPkts": null, + "ifOutBroadcastPkts_prev": null, + "ifOutBroadcastPkts_delta": null, + "ifOutBroadcastPkts_rate": null, + "ifInMulticastPkts": null, + "ifInMulticastPkts_prev": null, + "ifInMulticastPkts_delta": null, + "ifInMulticastPkts_rate": null, + "ifOutMulticastPkts": null, + "ifOutMulticastPkts_prev": null, + "ifOutMulticastPkts_delta": null, + "ifOutMulticastPkts_rate": null + } + ] + }, + "poller": { + "ports": [ + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "Network", + "ifName": "Network", + "portName": null, + "ifIndex": 1, + "ifSpeed": 10000000, + "ifConnectorPresent": null, + "ifPromiscuousMode": null, + "ifHighSpeed": null, + "ifOperStatus": "up", + "ifOperStatus_prev": null, + "ifAdminStatus": "up", + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": 1500, + "ifType": "ethernetCsmacd", + "ifAlias": "Network", + "ifPhysAddress": "0080a3cc9a1c", + "ifHardType": null, + "ifLastChange": 0, + "ifVlan": "", + "ifTrunk": null, + "counter_in": null, + "counter_out": null, + "ignore": 0, + "disabled": 0, + "detailed": 0, + "deleted": 0, + "pagpOperationMode": null, + "pagpPortState": null, + "pagpPartnerDeviceId": null, + "pagpPartnerLearnMethod": null, + "pagpPartnerIfIndex": null, + "pagpPartnerGroupIfIndex": null, + "pagpPartnerDeviceName": null, + "pagpEthcOperationMode": null, + "pagpDeviceId": null, + "pagpGroupIfIndex": null, + "ifInUcastPkts": 114845, + "ifInUcastPkts_prev": 0, + "ifInUcastPkts_delta": null, + "ifInUcastPkts_rate": null, + "ifOutUcastPkts": 109000, + "ifOutUcastPkts_prev": 0, + "ifOutUcastPkts_delta": null, + "ifOutUcastPkts_rate": null, + "ifInErrors": 0, + "ifInErrors_prev": 0, + "ifInErrors_delta": null, + "ifInErrors_rate": null, + "ifOutErrors": 0, + "ifOutErrors_prev": 0, + "ifOutErrors_delta": null, + "ifOutErrors_rate": null, + "ifInOctets": 11115271, + "ifInOctets_prev": 0, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": 13995694, + "ifOutOctets_prev": 0, + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": 0, + "ifInNUcastPkts_prev": 0, + "ifInNUcastPkts_delta": null, + "ifInNUcastPkts_rate": null, + "ifOutNUcastPkts": 2319, + "ifOutNUcastPkts_prev": 0, + "ifOutNUcastPkts_delta": null, + "ifOutNUcastPkts_rate": null, + "ifInDiscards": 0, + "ifInDiscards_prev": 0, + "ifInDiscards_delta": null, + "ifInDiscards_rate": null, + "ifOutDiscards": 0, + "ifOutDiscards_prev": 0, + "ifOutDiscards_delta": null, + "ifOutDiscards_rate": null, + "ifInUnknownProtos": 0, + "ifInUnknownProtos_prev": 0, + "ifInUnknownProtos_delta": null, + "ifInUnknownProtos_rate": null, + "ifInBroadcastPkts": 0, + "ifInBroadcastPkts_prev": 0, + "ifInBroadcastPkts_delta": null, + "ifInBroadcastPkts_rate": null, + "ifOutBroadcastPkts": 0, + "ifOutBroadcastPkts_prev": 0, + "ifOutBroadcastPkts_delta": null, + "ifOutBroadcastPkts_rate": null, + "ifInMulticastPkts": 0, + "ifInMulticastPkts_prev": 0, + "ifInMulticastPkts_delta": null, + "ifInMulticastPkts_rate": null, + "ifOutMulticastPkts": 0, + "ifOutMulticastPkts_prev": 0, + "ifOutMulticastPkts_delta": null, + "ifOutMulticastPkts_rate": null + } + ] + } + }, + "sensors": { + "discovery": { + "sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.20916.1.6.1.3.1.0", + "sensor_index": "0", + "sensor_type": "switch", + "sensor_descr": "Switch Sen 1", + "group": "", + "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": "switch" + }, + { + "sensor_deleted": 0, + "sensor_class": "temperature", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.20916.1.6.1.1.1.2.0", + "sensor_index": "0", + "sensor_type": "avtech", + "sensor_descr": "Internal Sensor", + "group": "", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 22, + "sensor_limit": 42, + "sensor_limit_warn": null, + "sensor_limit_low": 12, + "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.20916.1.6.1.2.1.1.0", + "sensor_index": "1", + "sensor_type": "avtech", + "sensor_descr": "Ext Sensor 1", + "group": "", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 23, + "sensor_limit": 43, + "sensor_limit_warn": null, + "sensor_limit_low": 13, + "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.20916.1.6.1.2.2.1.0", + "sensor_index": "2", + "sensor_type": "avtech", + "sensor_descr": "Ext Sensor 2", + "group": "", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 23, + "sensor_limit": 43, + "sensor_limit_warn": null, + "sensor_limit_low": 13, + "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": "switch", + "state_descr": "Off", + "state_draw_graph": 1, + "state_value": 0, + "state_generic_value": -1 + }, + { + "state_name": "switch", + "state_descr": "On", + "state_draw_graph": 1, + "state_value": 1, + "state_generic_value": 0 + } + ] + }, + "poller": "matches discovery" + } +} diff --git a/tests/snmpsim/avtech_roomalert4e.snmprec b/tests/snmpsim/avtech_roomalert4e.snmprec new file mode 100644 index 0000000000..9e8ca34711 --- /dev/null +++ b/tests/snmpsim/avtech_roomalert4e.snmprec @@ -0,0 +1,66 @@ +1.3.6.1.2.1.1.1.0|4|Room Alert 4E v4.2.4 +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.20916.1.6 +1.3.6.1.2.1.1.3.0|67|33671831 +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.2.2.1.1.1|2|1 +1.3.6.1.2.1.2.2.1.2.1|4|Network +1.3.6.1.2.1.2.2.1.3.1|2|6 +1.3.6.1.2.1.2.2.1.4.1|2|1500 +1.3.6.1.2.1.2.2.1.5.1|66|10000000 +1.3.6.1.2.1.2.2.1.6.1|4x|0080A3CC9A1C +1.3.6.1.2.1.2.2.1.7.1|2|1 +1.3.6.1.2.1.2.2.1.8.1|2|1 +1.3.6.1.2.1.2.2.1.9.1|67|0 +1.3.6.1.2.1.2.2.1.10.1|65|11115271 +1.3.6.1.2.1.2.2.1.11.1|65|114845 +1.3.6.1.2.1.2.2.1.12.1|65|0 +1.3.6.1.2.1.2.2.1.13.1|65|0 +1.3.6.1.2.1.2.2.1.14.1|65|0 +1.3.6.1.2.1.2.2.1.15.1|65|0 +1.3.6.1.2.1.2.2.1.16.1|65|13995694 +1.3.6.1.2.1.2.2.1.17.1|65|109000 +1.3.6.1.2.1.2.2.1.18.1|65|2319 +1.3.6.1.2.1.2.2.1.19.1|65|0 +1.3.6.1.2.1.2.2.1.20.1|65|0 +1.3.6.1.2.1.4.20.1.2.10.0.11.104|2|1 +1.3.6.1.2.1.4.20.1.3.10.0.11.104|64|255.255.255.0 +1.3.6.1.2.1.5.1.0|65|3411 +1.3.6.1.2.1.5.2.0|65|0 +1.3.6.1.2.1.5.3.0|65|0 +1.3.6.1.2.1.5.4.0|65|0 +1.3.6.1.2.1.5.5.0|65|0 +1.3.6.1.2.1.5.6.0|65|0 +1.3.6.1.2.1.5.7.0|65|0 +1.3.6.1.2.1.5.8.0|65|3411 +1.3.6.1.2.1.5.9.0|65|0 +1.3.6.1.2.1.5.10.0|65|0 +1.3.6.1.2.1.5.11.0|65|0 +1.3.6.1.2.1.5.12.0|65|0 +1.3.6.1.2.1.5.13.0|65|0 +1.3.6.1.2.1.5.14.0|65|3411 +1.3.6.1.2.1.5.15.0|65|0 +1.3.6.1.2.1.5.16.0|65|0 +1.3.6.1.2.1.5.17.0|65|0 +1.3.6.1.2.1.5.18.0|65|0 +1.3.6.1.2.1.5.19.0|65|0 +1.3.6.1.2.1.5.20.0|65|0 +1.3.6.1.2.1.5.21.0|65|0 +1.3.6.1.2.1.5.22.0|65|3411 +1.3.6.1.2.1.5.23.0|65|0 +1.3.6.1.2.1.5.24.0|65|0 +1.3.6.1.2.1.5.25.0|65|0 +1.3.6.1.2.1.5.26.0|65|0 +1.3.6.1.4.1.20916.1.6.1.1.1.1.0|2|73 +1.3.6.1.4.1.20916.1.6.1.1.1.2.0|2|22 +1.3.6.1.4.1.20916.1.6.1.1.2.1.0|4|Internal Sensor +1.3.6.1.4.1.20916.1.6.1.2.1.1.0|2|23 +1.3.6.1.4.1.20916.1.6.1.2.1.2.0|2|73 +1.3.6.1.4.1.20916.1.6.1.2.1.8.0|4|Ext Sensor 1 +1.3.6.1.4.1.20916.1.6.1.2.2.1.0|2|23 +1.3.6.1.4.1.20916.1.6.1.2.2.2.0|2|73 +1.3.6.1.4.1.20916.1.6.1.2.2.8.0|4|Ext Sensor 2 +1.3.6.1.4.1.20916.1.6.1.3.1.0|2|0 +1.3.6.1.4.1.20916.1.6.1.3.2.0|4|Switch Sen 1 +1.3.6.1.4.1.20916.1.6.3.1.0|4|