diff --git a/doc/Developing/os/Health-Information.md b/doc/Developing/os/Health-Information.md index ba2a95f4e0..49b95c48cd 100644 --- a/doc/Developing/os/Health-Information.md +++ b/doc/Developing/os/Health-Information.md @@ -29,6 +29,8 @@ Currently we have support for the following health metrics along with the values | quality_factor | dB | | chromatic_disperision | ps/nm | | ber | ratio | +| eer | eer | +| waterflow | l/m | #### Simple health discovery diff --git a/html/includes/graphs/device/eer.inc.php b/html/includes/graphs/device/eer.inc.php new file mode 100644 index 0000000000..95051df87e --- /dev/null +++ b/html/includes/graphs/device/eer.inc.php @@ -0,0 +1,7 @@ + 'indent', 'ber' => 'sort-amount-desc', 'quality_factor' => 'arrows', + 'eer' => 'snowflake-o', + 'waterflow' => 'tint', ); foreach (array('fanspeed','humidity','temperature','signal') as $item) { diff --git a/html/pages/device/health.inc.php b/html/pages/device/health.inc.php index 0a9e091d6f..913c30b4fd 100644 --- a/html/pages/device/health.inc.php +++ b/html/pages/device/health.inc.php @@ -5,27 +5,29 @@ $diskio = get_disks($device['device_id']); $mempools = dbFetchCell('select count(*) from mempools WHERE device_id = ?', array($device['device_id'])) + count_mib_mempools($device); $processor = dbFetchCell('select count(*) from processors WHERE device_id = ?', array($device['device_id'])) + count_mib_processors($device); -$charge = dbFetchCell("select count(*) from sensors WHERE sensor_class='charge' AND device_id = ?", array($device['device_id'])); -$temperatures = dbFetchCell("select count(*) from sensors WHERE sensor_class='temperature' AND device_id = ?", array($device['device_id'])); -$humidity = dbFetchCell("select count(*) from sensors WHERE sensor_class='humidity' AND device_id = ?", array($device['device_id'])); -$fans = dbFetchCell("select count(*) from sensors WHERE sensor_class='fanspeed' AND device_id = ?", array($device['device_id'])); -$volts = dbFetchCell("select count(*) from sensors WHERE sensor_class='voltage' AND device_id = ?", array($device['device_id'])); -$current = dbFetchCell("select count(*) from sensors WHERE sensor_class='current' AND device_id = ?", array($device['device_id'])); -$freqs = dbFetchCell("select count(*) from sensors WHERE sensor_class='frequency' AND device_id = ?", array($device['device_id'])); -$runtime = dbFetchCell("select count(*) from sensors WHERE sensor_class='runtime' AND device_id = ?", array($device['device_id'])); -$power = dbFetchCell("select count(*) from sensors WHERE sensor_class='power' AND device_id = ?", array($device['device_id'])); -$dBm = dbFetchCell("select count(*) from sensors WHERE sensor_class='dBm' AND device_id = ?", array($device['device_id'])); -$states = dbFetchCell("select count(*) from sensors WHERE sensor_class='state' AND device_id = ?", array($device['device_id'])); -$load = dbFetchCell("select count(*) from sensors WHERE sensor_class='load' AND device_id = ?", array($device['device_id'])); -$signal = dbFetchCell("select count(*) from sensors WHERE sensor_class='signal' AND device_id = ?", array($device['device_id'])); -$airflow = dbFetchCell("select count(*) from sensors WHERE sensor_class='airflow' AND device_id = ?", array($device['device_id'])); -$snr = dbFetchCell("select count(*) from sensors WHERE sensor_class='snr' AND device_id = ?", array($device['device_id'])); -$pressure = dbFetchCell("select count(*) from sensors WHERE sensor_class='pressure' AND device_id = ?", array($device['device_id'])); -$cooling = dbFetchCell("select count(*) from sensors WHERE sensor_class='cooling' AND device_id = ?", array($device['device_id'])); -$delay = dbFetchCell("select count(*) from sensors WHERE sensor_class='delay' AND device_id = ?", array($device['device_id'])); -$quality_factor = dbFetchCell("select count(*) from sensors WHERE sensor_class='quality_factor' AND device_id = ?", array($device['device_id'])); +$charge = dbFetchCell("select count(*) from sensors WHERE sensor_class='charge' AND device_id = ?", array($device['device_id'])); +$temperatures = dbFetchCell("select count(*) from sensors WHERE sensor_class='temperature' AND device_id = ?", array($device['device_id'])); +$humidity = dbFetchCell("select count(*) from sensors WHERE sensor_class='humidity' AND device_id = ?", array($device['device_id'])); +$fans = dbFetchCell("select count(*) from sensors WHERE sensor_class='fanspeed' AND device_id = ?", array($device['device_id'])); +$volts = dbFetchCell("select count(*) from sensors WHERE sensor_class='voltage' AND device_id = ?", array($device['device_id'])); +$current = dbFetchCell("select count(*) from sensors WHERE sensor_class='current' AND device_id = ?", array($device['device_id'])); +$freqs = dbFetchCell("select count(*) from sensors WHERE sensor_class='frequency' AND device_id = ?", array($device['device_id'])); +$runtime = dbFetchCell("select count(*) from sensors WHERE sensor_class='runtime' AND device_id = ?", array($device['device_id'])); +$power = dbFetchCell("select count(*) from sensors WHERE sensor_class='power' AND device_id = ?", array($device['device_id'])); +$dBm = dbFetchCell("select count(*) from sensors WHERE sensor_class='dBm' AND device_id = ?", array($device['device_id'])); +$states = dbFetchCell("select count(*) from sensors WHERE sensor_class='state' AND device_id = ?", array($device['device_id'])); +$load = dbFetchCell("select count(*) from sensors WHERE sensor_class='load' AND device_id = ?", array($device['device_id'])); +$signal = dbFetchCell("select count(*) from sensors WHERE sensor_class='signal' AND device_id = ?", array($device['device_id'])); +$airflow = dbFetchCell("select count(*) from sensors WHERE sensor_class='airflow' AND device_id = ?", array($device['device_id'])); +$snr = dbFetchCell("select count(*) from sensors WHERE sensor_class='snr' AND device_id = ?", array($device['device_id'])); +$pressure = dbFetchCell("select count(*) from sensors WHERE sensor_class='pressure' AND device_id = ?", array($device['device_id'])); +$cooling = dbFetchCell("select count(*) from sensors WHERE sensor_class='cooling' AND device_id = ?", array($device['device_id'])); +$delay = dbFetchCell("select count(*) from sensors WHERE sensor_class='delay' AND device_id = ?", array($device['device_id'])); +$quality_factor = dbFetchCell("select count(*) from sensors WHERE sensor_class='quality_factor' AND device_id = ?", array($device['device_id'])); $chromatic_dispersion = dbFetchCell("select count(*) from sensors WHERE sensor_class='chromatic_dispersion' AND device_id = ?", array($device['device_id'])); -$ber = dbFetchCell("select count(*) from sensors WHERE sensor_class='ber' AND device_id = ?", array($device['device_id'])); +$ber = dbFetchCell("select count(*) from sensors WHERE sensor_class='ber' AND device_id = ?", array($device['device_id'])); +$eer = dbFetchCell("select count(*) from sensors WHERE sensor_class='eer' AND device_id = ?", array($device['device_id'])); +$waterflow = dbFetchCell("select count(*) from sensors WHERE sensor_class='waterflow' AND device_id = ?", array($device['device_id'])); unset($datas); $datas[] = 'overview'; @@ -129,32 +131,42 @@ if ($ber) { $datas[] = 'ber'; } -$type_text['overview'] = 'Overview'; -$type_text['charge'] = 'Battery Charge'; -$type_text['temperature'] = 'Temperature'; -$type_text['humidity'] = 'Humidity'; -$type_text['mempool'] = 'Memory'; -$type_text['storage'] = 'Disk Usage'; -$type_text['diskio'] = 'Disk I/O'; -$type_text['processor'] = 'Processor'; -$type_text['voltage'] = 'Voltage'; -$type_text['fanspeed'] = 'Fanspeed'; -$type_text['frequency'] = 'Frequency'; -$type_text['runtime'] = 'Runtime remaining'; -$type_text['current'] = 'Current'; -$type_text['power'] = 'Power'; -$type_text['dbm'] = 'dBm'; -$type_text['state'] = 'State'; -$type_text['load'] = 'Load'; -$type_text['signal'] = 'Signal'; -$type_text['airflow'] = 'Airflow'; -$type_text['snr'] = 'SNR'; -$type_text['pressure'] = 'Pressure'; -$type_text['cooling'] = 'Cooling'; -$type_text['delay'] = 'Delay'; -$type_text['quality_factor'] = 'Quality factor'; -$type_text['chromatic_dispersion'] = 'Chromatic Dispersion'; -$type_text['ber'] = 'Bit Error Rate'; +if ($eer) { + $datas[] = 'eer'; +} + +if ($waterflow) { + $datas[] = 'waterflow'; +} + +$type_text['overview'] = 'Overview'; +$type_text['charge'] = 'Battery Charge'; +$type_text['temperature'] = 'Temperature'; +$type_text['humidity'] = 'Humidity'; +$type_text['mempool'] = 'Memory'; +$type_text['storage'] = 'Disk Usage'; +$type_text['diskio'] = 'Disk I/O'; +$type_text['processor'] = 'Processor'; +$type_text['voltage'] = 'Voltage'; +$type_text['fanspeed'] = 'Fanspeed'; +$type_text['frequency'] = 'Frequency'; +$type_text['runtime'] = 'Runtime remaining'; +$type_text['current'] = 'Current'; +$type_text['power'] = 'Power'; +$type_text['dbm'] = 'dBm'; +$type_text['state'] = 'State'; +$type_text['load'] = 'Load'; +$type_text['signal'] = 'Signal'; +$type_text['airflow'] = 'Airflow'; +$type_text['snr'] = 'SNR'; +$type_text['pressure'] = 'Pressure'; +$type_text['cooling'] = 'Cooling'; +$type_text['delay'] = 'Delay'; +$type_text['quality_factor'] = 'Quality factor'; +$type_text['chromatic_dispersion'] = 'Chromatic Dispersion'; +$type_text['ber'] = 'Bit Error Rate'; +$type_text['eer'] = 'Energy Efficiency Ratio'; +$type_text['waterflow'] = 'Water Flow Rate'; $link_array = array( 'page' => 'device', diff --git a/html/pages/device/health/eer.inc.php b/html/pages/device/health/eer.inc.php new file mode 100644 index 0000000000..e372e152ac --- /dev/null +++ b/html/pages/device/health/eer.inc.php @@ -0,0 +1,7 @@ +", + "sysObjectID": ".1.3.6.1.4.1.9839.2606.1", + "sysDescr": "Rittal IT Chiller", + "sysContact": null, + "version": null, + "hardware": "", + "features": null, + "location": null, + "os": "pcoweb-rittalchiller", + "type": "environment", + "serial": null, + "icon": "rittal.svg" + } + ] + }, + "poller": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.9839.2606.1", + "sysDescr": "Rittal IT Chiller", + "sysContact": "", + "version": null, + "hardware": "", + "features": null, + "location": "", + "os": "pcoweb-rittalchiller", + "type": "environment", + "serial": null, + "icon": "rittal.svg" + } + ] + } + }, + "sensors": { + "discovery": { + "sensors": [ + { + "sensor_deleted": "0", + "sensor_class": "current", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.74.0", + "sensor_index": "amp-value.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Current Consumption", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "1", + "sensor_limit": "1.5", + "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": null + }, + { + "sensor_deleted": "0", + "sensor_class": "humidity", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.90.0", + "sensor_index": "pp1.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Hydraulic Pump 1 Speed", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "100", + "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.9839.2.1.2.91.0", + "sensor_index": "pp2.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Hydraulic Pump 2 Speed", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "0", + "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": "power", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.103.0", + "sensor_index": "analogObjects.103.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Power Consumption", + "sensor_divisor": "1", + "sensor_multiplier": "100", + "sensor_current": "700", + "sensor_limit": "1050", + "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": null + }, + { + "sensor_deleted": "0", + "sensor_class": "temperature", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.140.0", + "sensor_index": "analogObjects.140.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Temperature Ambient", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "3.6", + "sensor_limit": "23.6", + "sensor_limit_warn": null, + "sensor_limit_low": "-6.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.9839.2.1.2.137.0", + "sensor_index": "analogObjects.137.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Temperature Out", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "17.9", + "sensor_limit": "37.9", + "sensor_limit_warn": null, + "sensor_limit_low": "7.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.9839.2.1.2.136.0", + "sensor_index": "analogObjects.136.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Temperature In", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "18", + "sensor_limit": "38", + "sensor_limit_warn": null, + "sensor_limit_low": "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": "pressure", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.138.0", + "sensor_index": "analogObjects.138.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Hydraulic Pressure (Suction)", + "sensor_divisor": "1", + "sensor_multiplier": "10", + "sensor_current": "160", + "sensor_limit": "168", + "sensor_limit_warn": null, + "sensor_limit_low": "152", + "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": "pressure", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.133.0", + "sensor_index": "analogObjects.133.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Hydraulic Pressure (Discharge)", + "sensor_divisor": "1", + "sensor_multiplier": "10", + "sensor_current": "370", + "sensor_limit": "388.5", + "sensor_limit_warn": null, + "sensor_limit_low": "351.5", + "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": "pressure", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.77.0", + "sensor_index": "pressione1.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Condensation Pressure 1", + "sensor_divisor": "1", + "sensor_multiplier": "10", + "sensor_current": "700", + "sensor_limit": "735", + "sensor_limit_warn": null, + "sensor_limit_low": "665", + "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": "pressure", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.78.0", + "sensor_index": "pressione2.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Condensation Pressure 2", + "sensor_divisor": "1", + "sensor_multiplier": "10", + "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": "cooling", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.100.0", + "sensor_index": "cooling-capacity.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Free Cooling Capacity", + "sensor_divisor": "1", + "sensor_multiplier": "100", + "sensor_current": "33900", + "sensor_limit": "35595", + "sensor_limit_warn": null, + "sensor_limit_low": "32205", + "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": "cooling", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.101.0", + "sensor_index": "freecooling-capacity.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Compressor Cooling Capacity", + "sensor_divisor": "1", + "sensor_multiplier": "100", + "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": "cooling", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.102.0", + "sensor_index": "total-capacity.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Total cooling Capacity", + "sensor_divisor": "1", + "sensor_multiplier": "100", + "sensor_current": "33900", + "sensor_limit": "35595", + "sensor_limit_warn": null, + "sensor_limit_low": "32205", + "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": "eer", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.3.120.0", + "sensor_index": "analogObjects.120.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Energy Efficiency Ratio", + "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": null + }, + { + "sensor_deleted": "0", + "sensor_class": "waterflow", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.73.0", + "sensor_index": "flow-value.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Water Flow Rate", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "141.3", + "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": null + } + ], + "state_indexes": [] + }, + "poller": { + "sensors": [ + { + "sensor_deleted": "0", + "sensor_class": "current", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.74.0", + "sensor_index": "amp-value.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Current Consumption", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "1", + "sensor_limit": "1.5", + "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": null + }, + { + "sensor_deleted": "0", + "sensor_class": "humidity", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.90.0", + "sensor_index": "pp1.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Hydraulic Pump 1 Speed", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "100", + "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.9839.2.1.2.91.0", + "sensor_index": "pp2.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Hydraulic Pump 2 Speed", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "0", + "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": "power", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.103.0", + "sensor_index": "analogObjects.103.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Power Consumption", + "sensor_divisor": "1", + "sensor_multiplier": "100", + "sensor_current": "700", + "sensor_limit": "1050", + "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": null + }, + { + "sensor_deleted": "0", + "sensor_class": "temperature", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.140.0", + "sensor_index": "analogObjects.140.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Temperature Ambient", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "3.6", + "sensor_limit": "23.6", + "sensor_limit_warn": null, + "sensor_limit_low": "-6.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.9839.2.1.2.137.0", + "sensor_index": "analogObjects.137.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Temperature Out", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "17.9", + "sensor_limit": "37.9", + "sensor_limit_warn": null, + "sensor_limit_low": "7.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.9839.2.1.2.136.0", + "sensor_index": "analogObjects.136.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Temperature In", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "18", + "sensor_limit": "38", + "sensor_limit_warn": null, + "sensor_limit_low": "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": "pressure", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.138.0", + "sensor_index": "analogObjects.138.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Hydraulic Pressure (Suction)", + "sensor_divisor": "1", + "sensor_multiplier": "10", + "sensor_current": "160", + "sensor_limit": "168", + "sensor_limit_warn": null, + "sensor_limit_low": "152", + "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": "pressure", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.133.0", + "sensor_index": "analogObjects.133.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Hydraulic Pressure (Discharge)", + "sensor_divisor": "1", + "sensor_multiplier": "10", + "sensor_current": "370", + "sensor_limit": "388.5", + "sensor_limit_warn": null, + "sensor_limit_low": "351.5", + "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": "pressure", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.77.0", + "sensor_index": "pressione1.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Condensation Pressure 1", + "sensor_divisor": "1", + "sensor_multiplier": "10", + "sensor_current": "700", + "sensor_limit": "735", + "sensor_limit_warn": null, + "sensor_limit_low": "665", + "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": "pressure", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.78.0", + "sensor_index": "pressione2.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Condensation Pressure 2", + "sensor_divisor": "1", + "sensor_multiplier": "10", + "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": "cooling", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.100.0", + "sensor_index": "cooling-capacity.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Free Cooling Capacity", + "sensor_divisor": "1", + "sensor_multiplier": "100", + "sensor_current": "33900", + "sensor_limit": "35595", + "sensor_limit_warn": null, + "sensor_limit_low": "32205", + "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": "cooling", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.101.0", + "sensor_index": "freecooling-capacity.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Compressor Cooling Capacity", + "sensor_divisor": "1", + "sensor_multiplier": "100", + "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": "cooling", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.102.0", + "sensor_index": "total-capacity.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Total cooling Capacity", + "sensor_divisor": "1", + "sensor_multiplier": "100", + "sensor_current": "33900", + "sensor_limit": "35595", + "sensor_limit_warn": null, + "sensor_limit_low": "32205", + "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": "eer", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.3.120.0", + "sensor_index": "analogObjects.120.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Energy Efficiency Ratio", + "sensor_divisor": "1", + "sensor_multiplier": "1", + "sensor_current": "48", + "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": "0", + "user_func": null, + "state_name": null + }, + { + "sensor_deleted": "0", + "sensor_class": "waterflow", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.9839.2.1.2.73.0", + "sensor_index": "flow-value.0", + "sensor_type": "pcoweb-rittalchiller", + "sensor_descr": "Water Flow Rate", + "sensor_divisor": "10", + "sensor_multiplier": "1", + "sensor_current": "141.3", + "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": null + } + ], + "state_indexes": [] + } + } +} \ No newline at end of file diff --git a/tests/snmpsim/pcoweb-rittalchiller.snmprec b/tests/snmpsim/pcoweb-rittalchiller.snmprec index a751c26909..d3d3b97611 100644 --- a/tests/snmpsim/pcoweb-rittalchiller.snmprec +++ b/tests/snmpsim/pcoweb-rittalchiller.snmprec @@ -1,2 +1,178 @@ 1.3.6.1.2.1.1.1.0|4|Rittal IT Chiller 1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.9839.2606.1 +1.3.6.1.2.1.1.3.0|67|281177388 +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.1.2|2|2 +1.3.6.1.2.1.2.2.1.2.1|4|lo +1.3.6.1.2.1.2.2.1.2.2|4|eth0 +1.3.6.1.2.1.2.2.1.3.1|2|24 +1.3.6.1.2.1.2.2.1.3.2|2|6 +1.3.6.1.2.1.2.2.1.4.1|2|16436 +1.3.6.1.2.1.2.2.1.4.2|2|1500 +1.3.6.1.2.1.2.2.1.5.1|66|10000000 +1.3.6.1.2.1.2.2.1.5.2|66|10000000 +1.3.6.1.2.1.2.2.1.6.1|4| +1.3.6.1.2.1.2.2.1.6.2|4x|000A5C1065DD +1.3.6.1.2.1.2.2.1.7.1|2|1 +1.3.6.1.2.1.2.2.1.7.2|2|1 +1.3.6.1.2.1.2.2.1.8.1|2|1 +1.3.6.1.2.1.2.2.1.8.2|2|1 +1.3.6.1.2.1.2.2.1.10.1|65|31717028 +1.3.6.1.2.1.2.2.1.10.2|65|856022279 +1.3.6.1.2.1.2.2.1.11.1|65|157706 +1.3.6.1.2.1.2.2.1.11.2|65|8984368 +1.3.6.1.2.1.2.2.1.13.1|65|0 +1.3.6.1.2.1.2.2.1.13.2|65|3710 +1.3.6.1.2.1.2.2.1.14.1|65|0 +1.3.6.1.2.1.2.2.1.14.2|65|4 +1.3.6.1.2.1.2.2.1.16.1|65|31717028 +1.3.6.1.2.1.2.2.1.16.2|65|0 +1.3.6.1.2.1.2.2.1.17.1|65|157706 +1.3.6.1.2.1.2.2.1.17.2|65|5671997 +1.3.6.1.2.1.2.2.1.19.1|65|0 +1.3.6.1.2.1.2.2.1.19.2|65|0 +1.3.6.1.2.1.2.2.1.20.1|65|0 +1.3.6.1.2.1.2.2.1.20.2|65|0 +1.3.6.1.2.1.2.2.1.21.1|66|0 +1.3.6.1.2.1.2.2.1.21.2|66|0 +1.3.6.1.2.1.2.2.1.22.1|6|0.0 +1.3.6.1.2.1.2.2.1.22.2|6|0.0 +1.3.6.1.2.1.4.3.0|65|5775772 +1.3.6.1.2.1.4.4.0|65|0 +1.3.6.1.2.1.4.5.0|65|0 +1.3.6.1.2.1.4.6.0|65|0 +1.3.6.1.2.1.4.7.0|65|0 +1.3.6.1.2.1.4.8.0|65|0 +1.3.6.1.2.1.4.9.0|65|5308469 +1.3.6.1.2.1.4.10.0|65|5758900 +1.3.6.1.2.1.4.11.0|65|78848 +1.3.6.1.2.1.4.12.0|65|0 +1.3.6.1.2.1.4.14.0|65|0 +1.3.6.1.2.1.4.15.0|65|0 +1.3.6.1.2.1.4.16.0|65|0 +1.3.6.1.2.1.4.17.0|65|0 +1.3.6.1.2.1.4.18.0|65|0 +1.3.6.1.2.1.4.19.0|65|0 +1.3.6.1.2.1.4.20.1.2.10.1.22.31|2|2 +1.3.6.1.2.1.4.20.1.2.127.0.0.1|2|1 +1.3.6.1.2.1.4.20.1.3.10.1.22.31|64|255.255.255.0 +1.3.6.1.2.1.4.20.1.3.127.0.0.1|64|255.0.0.0 +1.3.6.1.2.1.4.22.1.2.2.10.1.22.1|4x|001B17000130 +1.3.6.1.2.1.5.1.0|65|450178 +1.3.6.1.2.1.5.2.0|65|5486 +1.3.6.1.2.1.5.3.0|65|84564 +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|365614 +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|444474 +1.3.6.1.2.1.5.15.0|65|0 +1.3.6.1.2.1.5.16.0|65|78860 +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|365614 +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.2.1.6.5.0|65|0 +1.3.6.1.2.1.6.6.0|65|10364 +1.3.6.1.2.1.6.7.0|65|0 +1.3.6.1.2.1.6.8.0|65|73 +1.3.6.1.2.1.6.9.0|66|0 +1.3.6.1.2.1.6.10.0|65|155860 +1.3.6.1.2.1.6.11.0|65|173649 +1.3.6.1.2.1.6.12.0|65|118 +1.3.6.1.2.1.6.14.0|65|0 +1.3.6.1.2.1.6.15.0|65|0 +1.3.6.1.2.1.7.1.0|65|5055095 +1.3.6.1.2.1.7.2.0|65|78860 +1.3.6.1.2.1.7.3.0|65|0 +1.3.6.1.2.1.7.4.0|65|5140777 +1.3.6.1.2.1.11.1.0|65|5055161 +1.3.6.1.2.1.11.2.0|65|5055158 +1.3.6.1.2.1.11.3.0|65|0 +1.3.6.1.2.1.11.4.0|65|6 +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|0 +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|32282158 +1.3.6.1.2.1.11.14.0|65|0 +1.3.6.1.2.1.11.15.0|65|2677335 +1.3.6.1.2.1.11.16.0|65|9520 +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 +1.3.6.1.2.1.11.20.0|65|0 +1.3.6.1.2.1.11.21.0|65|0 +1.3.6.1.2.1.11.22.0|65|0 +1.3.6.1.2.1.11.24.0|65|0 +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|5055156 +1.3.6.1.2.1.11.29.0|65|4 +1.3.6.1.2.1.11.30.0|2|2 +1.3.6.1.2.1.11.31.0|65|0 +1.3.6.1.2.1.11.32.0|65|0 +1.3.6.1.4.1.2021.4.3.0|2|0 +1.3.6.1.4.1.2021.4.4.0|2|0 +1.3.6.1.4.1.2021.4.5.0|2|14860 +1.3.6.1.4.1.2021.4.6.0|2|1276 +1.3.6.1.4.1.2021.4.11.0|2|1280 +1.3.6.1.4.1.2021.4.13.0|2|0 +1.3.6.1.4.1.2021.4.14.0|2|860 +1.3.6.1.4.1.2021.4.15.0|2|5640 +1.3.6.1.4.1.2021.10.1.5.1|2|40 +1.3.6.1.4.1.2021.10.1.5.2|2|17 +1.3.6.1.4.1.2021.10.1.5.3|2|11 +1.3.6.1.4.1.2021.11.1.0|2|1 +1.3.6.1.4.1.2021.11.2.0|4|systemStats +1.3.6.1.4.1.2021.11.3.0|2|0 +1.3.6.1.4.1.2021.11.4.0|2|0 +1.3.6.1.4.1.2021.11.5.0|2|0 +1.3.6.1.4.1.2021.11.6.0|2|0 +1.3.6.1.4.1.2021.11.7.0|2|6 +1.3.6.1.4.1.2021.11.8.0|2|8 +1.3.6.1.4.1.2021.11.9.0|2|4 +1.3.6.1.4.1.2021.11.10.0|2|4 +1.3.6.1.4.1.2021.11.11.0|2|90 +1.3.6.1.4.1.2021.11.50.0|65|19396780 +1.3.6.1.4.1.2021.11.51.0|65|418207 +1.3.6.1.4.1.2021.11.52.0|65|21249416 +1.3.6.1.4.1.2021.11.53.0|65|387922247 +1.3.6.1.4.1.2021.11.59.0|65|539814649 +1.3.6.1.4.1.2021.11.60.0|65|1152952676 +1.3.6.1.4.1.9839.2.1.2.73.0|2|1413 +1.3.6.1.4.1.9839.2.1.2.74.0|2|10 +1.3.6.1.4.1.9839.2.1.2.77.0|2|70 +1.3.6.1.4.1.9839.2.1.2.78.0|2|0 +1.3.6.1.4.1.9839.2.1.2.90.0|2|1000 +1.3.6.1.4.1.9839.2.1.2.91.0|2|0 +1.3.6.1.4.1.9839.2.1.2.100.0|2|339 +1.3.6.1.4.1.9839.2.1.2.101.0|2|0 +1.3.6.1.4.1.9839.2.1.2.102.0|2|339 +1.3.6.1.4.1.9839.2.1.2.103.0|2|7 +1.3.6.1.4.1.9839.2.1.2.120.0|2|0 +1.3.6.1.4.1.9839.2.1.2.133.0|2|37 +1.3.6.1.4.1.9839.2.1.2.136.0|2|180 +1.3.6.1.4.1.9839.2.1.2.137.0|2|179 +1.3.6.1.4.1.9839.2.1.2.138.0|2|16 +1.3.6.1.4.1.9839.2.1.2.140.0|2|36 +1.3.6.1.4.1.9839.2.1.3.120.0|2|48