From 03d3660dfa767e6a48e77b9cb99745201a63192f Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Tue, 3 Sep 2024 09:02:02 -0500 Subject: [PATCH] Fix Cisco entity-sensor (#16351) * Fix Cisco entity-sensor make mw_to_dbm and uw_to_dbm handle negative numbers * fixes and update test data --- includes/common.php | 4 +- .../sensors/cisco-entity-sensor.inc.php | 10 +- tests/data/iosxr_asr9001.json | 152 ++-- tests/data/iosxr_asr9010.json | 680 +++++++++--------- tests/data/iosxr_asr9901.json | 124 ++-- tests/data/iosxr_ncs55a2.json | 12 +- 6 files changed, 491 insertions(+), 491 deletions(-) diff --git a/includes/common.php b/includes/common.php index e8844aea26..afba3f03a3 100644 --- a/includes/common.php +++ b/includes/common.php @@ -739,7 +739,7 @@ function string_to_float($value) */ function uw_to_dbm($value) { - return $value == 0 ? -60 : 10 * log10($value / 1000); + return $value <= 0 ? -60 : 10 * log10($value / 1000); } /** @@ -748,7 +748,7 @@ function uw_to_dbm($value) */ function mw_to_dbm($value) { - return $value == 0 ? -60 : 10 * log10($value); + return $value <= 0 ? -60 : 10 * log10($value); } /** diff --git a/includes/discovery/sensors/cisco-entity-sensor.inc.php b/includes/discovery/sensors/cisco-entity-sensor.inc.php index 2c3268a4a3..cc30b3efe1 100644 --- a/includes/discovery/sensors/cisco-entity-sensor.inc.php +++ b/includes/discovery/sensors/cisco-entity-sensor.inc.php @@ -228,12 +228,12 @@ if ($device['os_group'] == 'cisco') { // convert Watts to dbm $user_func = 'mw_to_dbm'; $type = 'dbm'; - $limit_low = 10 * log10($limit_low * 1000); - $warn_limit_low = 10 * log10($warn_limit_low * 1000); - $warn_limit = 10 * log10($warn_limit * 1000); - $limit = 10 * log10($limit * 1000); - $current = round(10 * log10($current * 1000), 3); $multiplier = 1000; + $limit_low = isset($limit_low) ? round(mw_to_dbm($limit_low * $multiplier), 3) : null; + $warn_limit_low = isset($limit_low) ? round(mw_to_dbm($warn_limit_low * $multiplier), 3) : null; + $warn_limit = isset($limit_low) ? round(mw_to_dbm($warn_limit * $multiplier), 3) : null; + $limit = isset($limit_low) ? round(mw_to_dbm($limit * $multiplier), 3) : null; + $current = mw_to_dbm($current * $multiplier); //echo("\n".$valid['sensor'].", $type, $device, $oid, $index, 'cisco-entity-sensor', $descr, $divisor, $multiplier, $limit_low, $warn_limit_low, $warn_limit, $limit, $current, $user_func"); discover_sensor($valid['sensor'], $type, $device, $oid, $index, 'cisco-entity-sensor', $descr, $divisor, $multiplier, $limit_low, $warn_limit_low, $warn_limit, $limit, $current, 'snmp', $entPhysicalIndex, $entry['entSensorMeasuredEntity'], $user_func); } diff --git a/tests/data/iosxr_asr9001.json b/tests/data/iosxr_asr9001.json index d596f4379c..b9defc5e6a 100644 --- a/tests/data/iosxr_asr9001.json +++ b/tests/data/iosxr_asr9001.json @@ -13797,11 +13797,11 @@ "group": null, "sensor_divisor": 10000000, "sensor_multiplier": 1000, - "sensor_current": -2.331, - "sensor_limit": 1.0016368896604, - "sensor_limit_warn": -0.0026065489343204, - "sensor_limit_low": -18.013429130456, - "sensor_limit_low_warn": -16.00326278519, + "sensor_current": -2.3306690616272, + "sensor_limit": 1.002, + "sensor_limit_warn": -0.003, + "sensor_limit_low": -18.013, + "sensor_limit_low_warn": -16.003, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "21", @@ -13822,11 +13822,11 @@ "group": null, "sensor_divisor": 10000000, "sensor_multiplier": 1000, - "sensor_current": -5.146, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": -2.9998893767789, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -18.996294548824, + "sensor_current": -5.145625189237, + "sensor_limit": 1, + "sensor_limit_warn": -3, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -18.996, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "23", @@ -13847,7 +13847,7 @@ "group": null, "sensor_divisor": 10000000, "sensor_multiplier": 1000, - "sensor_current": 0, + "sensor_current": -60, "sensor_limit": null, "sensor_limit_warn": null, "sensor_limit_low": null, @@ -13872,11 +13872,11 @@ "group": null, "sensor_divisor": 10000000, "sensor_multiplier": 1000, - "sensor_current": 0.521, + "sensor_current": 0.52078030484169, "sensor_limit": 0, - "sensor_limit_warn": -1.0001543745061, - "sensor_limit_low": -17.011469235903, - "sensor_limit_low_warn": -16.00326278519, + "sensor_limit_warn": -1, + "sensor_limit_low": -17.011, + "sensor_limit_low_warn": -16.003, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "44", @@ -13897,11 +13897,11 @@ "group": null, "sensor_divisor": 10000000, "sensor_multiplier": 1000, - "sensor_current": -1.75, - "sensor_limit": 2.0046744995016, - "sensor_limit_warn": 1.0016368896604, - "sensor_limit_low": -6.996219351293, - "sensor_limit_low_warn": -5.9963472665006, + "sensor_current": -1.7496355877865, + "sensor_limit": 2.005, + "sensor_limit_warn": 1.002, + "sensor_limit_low": -6.996, + "sensor_limit_low_warn": -5.996, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "21", @@ -13922,7 +13922,7 @@ "group": null, "sensor_divisor": 10000000, "sensor_multiplier": 1000, - "sensor_current": 0, + "sensor_current": -60, "sensor_limit": null, "sensor_limit_warn": null, "sensor_limit_low": null, @@ -13947,10 +13947,10 @@ "group": null, "sensor_divisor": 10000000, "sensor_multiplier": 1000, - "sensor_current": -1.195, - "sensor_limit": 3.9998505610245, - "sensor_limit_warn": 2.9998643613447, - "sensor_limit_low": -11.001794975729, + "sensor_current": -1.1952940719622, + "sensor_limit": 4, + "sensor_limit_warn": 3, + "sensor_limit_low": -11.002, "sensor_limit_low_warn": -10, "sensor_alert": 1, "sensor_custom": "No", @@ -13972,11 +13972,11 @@ "group": null, "sensor_divisor": 10000000, "sensor_multiplier": 1000, - "sensor_current": -5.605, + "sensor_current": -5.6050940961032, "sensor_limit": 0, - "sensor_limit_warn": -1.0001543745061, - "sensor_limit_low": -16.98970004336, - "sensor_limit_low_warn": -16.00326278519, + "sensor_limit_warn": -1, + "sensor_limit_low": -16.99, + "sensor_limit_low_warn": -16.003, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "42", @@ -13997,10 +13997,10 @@ "group": null, "sensor_divisor": 10000000, "sensor_multiplier": 1000, - "sensor_current": -2.113, - "sensor_limit": 4.0000234592796, - "sensor_limit_warn": 3.0000820255381, - "sensor_limit_low": -11.001794975729, + "sensor_current": -2.1126614117229, + "sensor_limit": 4, + "sensor_limit_warn": 3, + "sensor_limit_low": -11.002, "sensor_limit_low_warn": -10, "sensor_alert": 1, "sensor_custom": "No", @@ -14022,11 +14022,11 @@ "group": null, "sensor_divisor": 10000000, "sensor_multiplier": 1000, - "sensor_current": -4.492, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": -1.0001543745061, - "sensor_limit_low": -13.496924768681, - "sensor_limit_low_warn": -9.5000714307986, + "sensor_current": -4.4916039493421, + "sensor_limit": 1, + "sensor_limit_warn": -1, + "sensor_limit_low": -13.497, + "sensor_limit_low_warn": -9.5, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "23", @@ -18087,15 +18087,15 @@ "sensor_divisor": 10000000, "sensor_multiplier": 1000, "sensor_current": -2.3306690616272, - "sensor_limit": 1.0016368896604, - "sensor_limit_warn": -0.0026065489343204, - "sensor_limit_low": -18.013429130456, - "sensor_limit_low_warn": -16.00326278519, + "sensor_limit": 1.002, + "sensor_limit_warn": -0.003, + "sensor_limit_low": -18.013, + "sensor_limit_low_warn": -16.003, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "21", "entPhysicalIndex_measured": "ports", - "sensor_prev": -2.331, + "sensor_prev": -2.3306690616272, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -18112,15 +18112,15 @@ "sensor_divisor": 10000000, "sensor_multiplier": 1000, "sensor_current": -5.145625189237, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": -2.9998893767789, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -18.996294548824, + "sensor_limit": 1, + "sensor_limit_warn": -3, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -18.996, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "23", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.146, + "sensor_prev": -5.145625189237, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -18145,7 +18145,7 @@ "sensor_custom": "No", "entPhysicalIndex": "25", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -18163,14 +18163,14 @@ "sensor_multiplier": 1000, "sensor_current": 0.52078030484169, "sensor_limit": 0, - "sensor_limit_warn": -1.0001543745061, - "sensor_limit_low": -17.011469235903, - "sensor_limit_low_warn": -16.00326278519, + "sensor_limit_warn": -1, + "sensor_limit_low": -17.011, + "sensor_limit_low_warn": -16.003, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "44", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0.521, + "sensor_prev": 0.52078030484169, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -18187,15 +18187,15 @@ "sensor_divisor": 10000000, "sensor_multiplier": 1000, "sensor_current": -1.7496355877865, - "sensor_limit": 2.0046744995016, - "sensor_limit_warn": 1.0016368896604, - "sensor_limit_low": -6.996219351293, - "sensor_limit_low_warn": -5.9963472665006, + "sensor_limit": 2.005, + "sensor_limit_warn": 1.002, + "sensor_limit_low": -6.996, + "sensor_limit_low_warn": -5.996, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "21", "entPhysicalIndex_measured": "ports", - "sensor_prev": -1.75, + "sensor_prev": -1.7496355877865, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -18220,7 +18220,7 @@ "sensor_custom": "No", "entPhysicalIndex": "25", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -18237,15 +18237,15 @@ "sensor_divisor": 10000000, "sensor_multiplier": 1000, "sensor_current": -1.1952940719622, - "sensor_limit": 3.9998505610245, - "sensor_limit_warn": 2.9998643613447, - "sensor_limit_low": -11.001794975729, + "sensor_limit": 4, + "sensor_limit_warn": 3, + "sensor_limit_low": -11.002, "sensor_limit_low_warn": -10, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "44", "entPhysicalIndex_measured": "ports", - "sensor_prev": -1.195, + "sensor_prev": -1.1952940719622, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -18263,14 +18263,14 @@ "sensor_multiplier": 1000, "sensor_current": -5.6050940961032, "sensor_limit": 0, - "sensor_limit_warn": -1.0001543745061, - "sensor_limit_low": -16.98970004336, - "sensor_limit_low_warn": -16.00326278519, + "sensor_limit_warn": -1, + "sensor_limit_low": -16.99, + "sensor_limit_low_warn": -16.003, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "42", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.605, + "sensor_prev": -5.6050940961032, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -18287,15 +18287,15 @@ "sensor_divisor": 10000000, "sensor_multiplier": 1000, "sensor_current": -2.1126614117229, - "sensor_limit": 4.0000234592796, - "sensor_limit_warn": 3.0000820255381, - "sensor_limit_low": -11.001794975729, + "sensor_limit": 4, + "sensor_limit_warn": 3, + "sensor_limit_low": -11.002, "sensor_limit_low_warn": -10, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "42", "entPhysicalIndex_measured": "ports", - "sensor_prev": -2.113, + "sensor_prev": -2.1126614117229, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -18312,15 +18312,15 @@ "sensor_divisor": 10000000, "sensor_multiplier": 1000, "sensor_current": -4.4916039493421, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": -1.0001543745061, - "sensor_limit_low": -13.496924768681, - "sensor_limit_low_warn": -9.5000714307986, + "sensor_limit": 1, + "sensor_limit_warn": -1, + "sensor_limit_low": -13.497, + "sensor_limit_low_warn": -9.5, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "23", "entPhysicalIndex_measured": "ports", - "sensor_prev": -4.492, + "sensor_prev": -4.4916039493421, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null diff --git a/tests/data/iosxr_asr9010.json b/tests/data/iosxr_asr9010.json index 87050b6724..c035d1d386 100644 --- a/tests/data/iosxr_asr9010.json +++ b/tests/data/iosxr_asr9010.json @@ -20930,11 +20930,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -7.122, + "sensor_current": -7.1219827006977, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.01029995664, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.01, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "66", @@ -20955,7 +20955,7 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": 0, + "sensor_current": -60, "sensor_limit": null, "sensor_limit_warn": null, "sensor_limit_low": null, @@ -20980,11 +20980,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -5.452, - "sensor_limit": 0.9968064110925, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.565473235138, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_current": -5.4515513999149, + "sensor_limit": 0.997, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.565, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "40", @@ -21005,11 +21005,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -3.565, - "sensor_limit": 1.9975517725347, + "sensor_current": -3.5654732351381, + "sensor_limit": 1.998, "sensor_limit_warn": 0, - "sensor_limit_low": -9.0308998699194, - "sensor_limit_low_warn": -7.0114692359029, + "sensor_limit_low": -9.031, + "sensor_limit_low_warn": -7.011, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "13", @@ -21030,11 +21030,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -8.508, + "sensor_current": -8.5078088734462, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "31", @@ -21056,10 +21056,10 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -10, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "62", @@ -21080,11 +21080,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -6.091, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -6.0906489289662, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "69", @@ -21105,11 +21105,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -15.528, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_current": -15.528419686578, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "33", @@ -21130,11 +21130,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -8.665, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_current": -8.6646109162978, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "34", @@ -21155,11 +21155,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -5.346, - "sensor_limit": 3.4986008219233, - "sensor_limit_warn": 1.4983469671578, - "sensor_limit_low": -17.447274948967, - "sensor_limit_low_warn": -15.528419686578, + "sensor_current": -5.3461714855158, + "sensor_limit": 3.499, + "sensor_limit_warn": 1.498, + "sensor_limit_low": -17.447, + "sensor_limit_low_warn": -15.528, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "12", @@ -21180,11 +21180,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -13.665, + "sensor_current": -13.665315444204, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "66", @@ -21205,11 +21205,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -11.739, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_current": -11.739251972992, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "39", @@ -21230,11 +21230,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -6.126, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -6.1261017366127, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "71", @@ -21255,11 +21255,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -17.212, - "sensor_limit": 0.9968064110925, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_current": -17.212463990472, + "sensor_limit": 0.997, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "40", @@ -21280,11 +21280,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -5.935, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -5.9345981956604, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "67", @@ -21305,11 +21305,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -7.144, + "sensor_current": -7.1444269099223, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.01029995664, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.01, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "64", @@ -21330,11 +21330,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -15.376, - "sensor_limit": 2.9994290002277, + "sensor_current": -15.37602002101, + "sensor_limit": 2.999, "sensor_limit_warn": 0, - "sensor_limit_low": -26.98970004336, - "sensor_limit_low_warn": -23.97940008672, + "sensor_limit_low": -26.99, + "sensor_limit_low_warn": -23.979, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "69", @@ -21355,11 +21355,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -5.482, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -5.4821356447571, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "34", @@ -21380,11 +21380,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": 0, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_current": -60, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "63", @@ -21405,11 +21405,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -3.565, - "sensor_limit": 1.9975517725347, + "sensor_current": -3.5654732351381, + "sensor_limit": 1.998, "sensor_limit_warn": 0, - "sensor_limit_low": -9.0308998699194, - "sensor_limit_low_warn": -7.0114692359029, + "sensor_limit_low": -9.031, + "sensor_limit_low_warn": -7.011, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "12", @@ -21430,7 +21430,7 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": 0, + "sensor_current": -60, "sensor_limit": null, "sensor_limit_warn": null, "sensor_limit_low": null, @@ -21455,7 +21455,7 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": 0, + "sensor_current": -60, "sensor_limit": null, "sensor_limit_warn": null, "sensor_limit_low": null, @@ -21480,11 +21480,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -3.969, - "sensor_limit": 3.4986008219233, - "sensor_limit_warn": 1.4983469671578, - "sensor_limit_low": -17.447274948967, - "sensor_limit_low_warn": -15.528419686578, + "sensor_current": -3.9685562737982, + "sensor_limit": 3.499, + "sensor_limit_warn": 1.498, + "sensor_limit_low": -17.447, + "sensor_limit_low_warn": -15.528, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "13", @@ -21505,11 +21505,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -14.202, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_current": -14.202164033832, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "32", @@ -21530,11 +21530,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -7.212, + "sensor_current": -7.2124639904717, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.01029995664, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.01, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "31", @@ -21555,11 +21555,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -6.198, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -6.1978875828839, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "39", @@ -21580,10 +21580,10 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -5.654, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -21.549019599857, + "sensor_current": -5.654310959658, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -21.549, "sensor_limit_low_warn": -20, "sensor_alert": 1, "sensor_custom": "No", @@ -21605,11 +21605,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -6.055, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -6.0554831917378, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "62", @@ -21630,11 +21630,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": 0, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_current": -60, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "67", @@ -21655,11 +21655,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -7.1, + "sensor_current": -7.0996538863748, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.01029995664, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.01, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "36", @@ -21680,11 +21680,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -8.041, + "sensor_current": -8.0410034759077, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "64", @@ -21705,11 +21705,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -13.665, + "sensor_current": -13.665315444204, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "65", @@ -21730,11 +21730,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -10.969, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_current": -10.969100130081, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "81", @@ -21755,11 +21755,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -9.318, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_current": -9.3181413825384, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "37", @@ -21780,11 +21780,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -11.739, + "sensor_current": -11.739251972992, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "36", @@ -21805,11 +21805,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": 0, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -60, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "63", @@ -21830,7 +21830,7 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": 0, + "sensor_current": -60, "sensor_limit": null, "sensor_limit_warn": null, "sensor_limit_low": null, @@ -21855,7 +21855,7 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": 0, + "sensor_current": -60, "sensor_limit": null, "sensor_limit_warn": null, "sensor_limit_low": null, @@ -21880,7 +21880,7 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": 0, + "sensor_current": -60, "sensor_limit": null, "sensor_limit_warn": null, "sensor_limit_low": null, @@ -21905,11 +21905,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -5.884, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -5.8838029403677, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "32", @@ -21930,11 +21930,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -5.528, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -5.5284196865778, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "33", @@ -21955,11 +21955,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -7.19, + "sensor_current": -7.1896663275227, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.01029995664, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.01, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "65", @@ -21980,11 +21980,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -5.834, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -5.8335949266172, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "81", @@ -22005,11 +22005,11 @@ "group": null, "sensor_divisor": 1000000, "sensor_multiplier": 1000, - "sensor_current": -5.969, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_current": -5.9687947882418, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "37", @@ -31777,14 +31777,14 @@ "sensor_multiplier": 1000, "sensor_current": -7.1219827006977, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.01029995664, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.01, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "66", "entPhysicalIndex_measured": "ports", - "sensor_prev": -7.122, + "sensor_prev": -7.1219827006977, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -31809,7 +31809,7 @@ "sensor_custom": "No", "entPhysicalIndex": "50", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -31826,15 +31826,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -5.4515513999149, - "sensor_limit": 0.9968064110925, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.565473235138, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit": 0.997, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.565, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "40", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.452, + "sensor_prev": -5.4515513999149, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -31851,15 +31851,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -3.5654732351381, - "sensor_limit": 1.9975517725347, + "sensor_limit": 1.998, "sensor_limit_warn": 0, - "sensor_limit_low": -9.0308998699194, - "sensor_limit_low_warn": -7.0114692359029, + "sensor_limit_low": -9.031, + "sensor_limit_low_warn": -7.011, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "13", "entPhysicalIndex_measured": "ports", - "sensor_prev": -3.565, + "sensor_prev": -3.5654732351381, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -31877,14 +31877,14 @@ "sensor_multiplier": 1000, "sensor_current": -8.5078088734462, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "31", "entPhysicalIndex_measured": "ports", - "sensor_prev": -8.508, + "sensor_prev": -8.5078088734462, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -31901,10 +31901,10 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -10, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "62", @@ -31926,15 +31926,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -6.0906489289662, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "69", "entPhysicalIndex_measured": "ports", - "sensor_prev": -6.091, + "sensor_prev": -6.0906489289662, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -31951,15 +31951,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -15.528419686578, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "33", "entPhysicalIndex_measured": "ports", - "sensor_prev": -15.528, + "sensor_prev": -15.528419686578, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -31976,15 +31976,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -8.6646109162978, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "34", "entPhysicalIndex_measured": "ports", - "sensor_prev": -8.665, + "sensor_prev": -8.6646109162978, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32001,15 +32001,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -5.3461714855158, - "sensor_limit": 3.4986008219233, - "sensor_limit_warn": 1.4983469671578, - "sensor_limit_low": -17.447274948967, - "sensor_limit_low_warn": -15.528419686578, + "sensor_limit": 3.499, + "sensor_limit_warn": 1.498, + "sensor_limit_low": -17.447, + "sensor_limit_low_warn": -15.528, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "12", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.346, + "sensor_prev": -5.3461714855158, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32027,14 +32027,14 @@ "sensor_multiplier": 1000, "sensor_current": -13.665315444204, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "66", "entPhysicalIndex_measured": "ports", - "sensor_prev": -13.665, + "sensor_prev": -13.665315444204, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32051,15 +32051,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -11.739251972992, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "39", "entPhysicalIndex_measured": "ports", - "sensor_prev": -11.739, + "sensor_prev": -11.739251972992, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32076,15 +32076,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -6.1261017366127, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "71", "entPhysicalIndex_measured": "ports", - "sensor_prev": -6.126, + "sensor_prev": -6.1261017366127, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32101,15 +32101,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -17.212463990472, - "sensor_limit": 0.9968064110925, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit": 0.997, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "40", "entPhysicalIndex_measured": "ports", - "sensor_prev": -17.212, + "sensor_prev": -17.212463990472, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32126,15 +32126,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -5.9345981956604, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "67", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.935, + "sensor_prev": -5.9345981956604, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32152,14 +32152,14 @@ "sensor_multiplier": 1000, "sensor_current": -7.1444269099223, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.01029995664, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.01, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "64", "entPhysicalIndex_measured": "ports", - "sensor_prev": -7.144, + "sensor_prev": -7.1444269099223, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32176,15 +32176,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -15.37602002101, - "sensor_limit": 2.9994290002277, + "sensor_limit": 2.999, "sensor_limit_warn": 0, - "sensor_limit_low": -26.98970004336, - "sensor_limit_low_warn": -23.97940008672, + "sensor_limit_low": -26.99, + "sensor_limit_low_warn": -23.979, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "69", "entPhysicalIndex_measured": "ports", - "sensor_prev": -15.376, + "sensor_prev": -15.37602002101, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32201,15 +32201,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -5.4821356447571, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "34", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.482, + "sensor_prev": -5.4821356447571, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32226,15 +32226,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -60, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "63", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32251,15 +32251,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -3.5654732351381, - "sensor_limit": 1.9975517725347, + "sensor_limit": 1.998, "sensor_limit_warn": 0, - "sensor_limit_low": -9.0308998699194, - "sensor_limit_low_warn": -7.0114692359029, + "sensor_limit_low": -9.031, + "sensor_limit_low_warn": -7.011, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "12", "entPhysicalIndex_measured": "ports", - "sensor_prev": -3.565, + "sensor_prev": -3.5654732351381, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32284,7 +32284,7 @@ "sensor_custom": "No", "entPhysicalIndex": "49", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32309,7 +32309,7 @@ "sensor_custom": "No", "entPhysicalIndex": "80", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32326,15 +32326,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -3.9685562737982, - "sensor_limit": 3.4986008219233, - "sensor_limit_warn": 1.4983469671578, - "sensor_limit_low": -17.447274948967, - "sensor_limit_low_warn": -15.528419686578, + "sensor_limit": 3.499, + "sensor_limit_warn": 1.498, + "sensor_limit_low": -17.447, + "sensor_limit_low_warn": -15.528, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "13", "entPhysicalIndex_measured": "ports", - "sensor_prev": -3.969, + "sensor_prev": -3.9685562737982, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32351,15 +32351,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -14.202164033832, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "32", "entPhysicalIndex_measured": "ports", - "sensor_prev": -14.202, + "sensor_prev": -14.202164033832, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32377,14 +32377,14 @@ "sensor_multiplier": 1000, "sensor_current": -7.2124639904717, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.01029995664, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.01, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "31", "entPhysicalIndex_measured": "ports", - "sensor_prev": -7.212, + "sensor_prev": -7.2124639904717, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32401,15 +32401,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -6.1978875828839, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "39", "entPhysicalIndex_measured": "ports", - "sensor_prev": -6.198, + "sensor_prev": -6.1978875828839, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32426,15 +32426,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -5.654310959658, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -21.549, "sensor_limit_low_warn": -20, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "71", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.654, + "sensor_prev": -5.654310959658, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32451,15 +32451,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -6.0554831917378, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "62", "entPhysicalIndex_measured": "ports", - "sensor_prev": -6.055, + "sensor_prev": -6.0554831917378, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32476,15 +32476,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -60, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "67", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32502,14 +32502,14 @@ "sensor_multiplier": 1000, "sensor_current": -7.0996538863748, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.01029995664, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.01, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "36", "entPhysicalIndex_measured": "ports", - "sensor_prev": -7.1, + "sensor_prev": -7.0996538863748, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32527,14 +32527,14 @@ "sensor_multiplier": 1000, "sensor_current": -8.0410034759077, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "64", "entPhysicalIndex_measured": "ports", - "sensor_prev": -8.041, + "sensor_prev": -8.0410034759077, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32552,14 +32552,14 @@ "sensor_multiplier": 1000, "sensor_current": -13.665315444204, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "65", "entPhysicalIndex_measured": "ports", - "sensor_prev": -13.665, + "sensor_prev": -13.665315444204, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32576,15 +32576,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -10.969100130081, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "81", "entPhysicalIndex_measured": "ports", - "sensor_prev": -10.969, + "sensor_prev": -10.969100130081, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32601,15 +32601,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -9.3181413825384, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -22.218487496164, - "sensor_limit_low_warn": -21.549019599857, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -22.218, + "sensor_limit_low_warn": -21.549, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "37", "entPhysicalIndex_measured": "ports", - "sensor_prev": -9.318, + "sensor_prev": -9.3181413825384, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32627,14 +32627,14 @@ "sensor_multiplier": 1000, "sensor_current": -11.739251972992, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": -19.208187539524, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -19.208, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "36", "entPhysicalIndex_measured": "ports", - "sensor_prev": -11.739, + "sensor_prev": -11.739251972992, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32651,15 +32651,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -60, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "63", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32684,7 +32684,7 @@ "sensor_custom": "No", "entPhysicalIndex": "49", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32709,7 +32709,7 @@ "sensor_custom": "No", "entPhysicalIndex": "80", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32734,7 +32734,7 @@ "sensor_custom": "No", "entPhysicalIndex": "50", "entPhysicalIndex_measured": "ports", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32751,15 +32751,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -5.8838029403677, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "32", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.884, + "sensor_prev": -5.8838029403677, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32776,15 +32776,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -5.5284196865778, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "33", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.528, + "sensor_prev": -5.5284196865778, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32802,14 +32802,14 @@ "sensor_multiplier": 1000, "sensor_current": -7.1896663275227, "sensor_limit": 0, - "sensor_limit_warn": -3.0016227413275, - "sensor_limit_low": -13.01029995664, - "sensor_limit_low_warn": -9.5078197732982, + "sensor_limit_warn": -3.002, + "sensor_limit_low": -13.01, + "sensor_limit_low_warn": -9.508, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "65", "entPhysicalIndex_measured": "ports", - "sensor_prev": -7.19, + "sensor_prev": -7.1896663275227, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32826,15 +32826,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -5.8335949266172, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "81", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.834, + "sensor_prev": -5.8335949266172, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -32851,15 +32851,15 @@ "sensor_divisor": 1000000, "sensor_multiplier": 1000, "sensor_current": -5.9687947882418, - "sensor_limit": -1.9997064075587, - "sensor_limit_warn": -3.0016227413275, + "sensor_limit": -2, + "sensor_limit_warn": -3.002, "sensor_limit_low": -10, - "sensor_limit_low_warn": -9.0308998699194, + "sensor_limit_low_warn": -9.031, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "37", "entPhysicalIndex_measured": "ports", - "sensor_prev": -5.969, + "sensor_prev": -5.9687947882418, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null diff --git a/tests/data/iosxr_asr9901.json b/tests/data/iosxr_asr9901.json index 7e4fa53ffe..6b5c2e4953 100644 --- a/tests/data/iosxr_asr9901.json +++ b/tests/data/iosxr_asr9901.json @@ -10367,11 +10367,11 @@ "group": null, "sensor_divisor": 100000000, "sensor_multiplier": 1000, - "sensor_current": -4.787, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": null, - "sensor_limit_low": -13.496924768681, - "sensor_limit_low_warn": null, + "sensor_current": -4.7873112440161, + "sensor_limit": 1, + "sensor_limit_warn": -60, + "sensor_limit_low": -13.497, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "2990350", @@ -10392,11 +10392,11 @@ "group": null, "sensor_divisor": 100000000, "sensor_multiplier": 1000, - "sensor_current": -3.342, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": null, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": null, + "sensor_current": -3.3423144928062, + "sensor_limit": 1, + "sensor_limit_warn": -60, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "2990362", @@ -10417,7 +10417,7 @@ "group": null, "sensor_divisor": 100000000, "sensor_multiplier": 1000, - "sensor_current": 0, + "sensor_current": -60, "sensor_limit": null, "sensor_limit_warn": null, "sensor_limit_low": null, @@ -10442,7 +10442,7 @@ "group": null, "sensor_divisor": 100000000, "sensor_multiplier": 1000, - "sensor_current": 0, + "sensor_current": -60, "sensor_limit": null, "sensor_limit_warn": null, "sensor_limit_low": null, @@ -10467,11 +10467,11 @@ "group": null, "sensor_divisor": 100000000, "sensor_multiplier": 1000, - "sensor_current": 2.52, - "sensor_limit": 6.0021030640933, - "sensor_limit_warn": null, - "sensor_limit_low": -2.998156703778, - "sensor_limit_low_warn": null, + "sensor_current": 2.5197871006338, + "sensor_limit": 6.002, + "sensor_limit_warn": -60, + "sensor_limit_low": -2.998, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "3014926", @@ -10492,11 +10492,11 @@ "group": null, "sensor_divisor": 100000000, "sensor_multiplier": 1000, - "sensor_current": -2.113, - "sensor_limit": 3.9963911496427, - "sensor_limit_warn": null, + "sensor_current": -2.1126614117229, + "sensor_limit": 3.996, + "sensor_limit_warn": -60, "sensor_limit_low": -20, - "sensor_limit_low_warn": null, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "3014938", @@ -10517,11 +10517,11 @@ "group": null, "sensor_divisor": 100000000, "sensor_multiplier": 1000, - "sensor_current": -2.264, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": null, - "sensor_limit_low": -7.0005709997723, - "sensor_limit_low_warn": null, + "sensor_current": -2.2643295107394, + "sensor_limit": 1, + "sensor_limit_warn": -60, + "sensor_limit_low": -7.001, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "3072270", @@ -10542,11 +10542,11 @@ "group": null, "sensor_divisor": 100000000, "sensor_multiplier": 1000, - "sensor_current": -0.867, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": null, - "sensor_limit_low": -16.98970004336, - "sensor_limit_low_warn": null, + "sensor_current": -0.86716098239582, + "sensor_limit": 1, + "sensor_limit_warn": -60, + "sensor_limit_low": -16.99, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "3072282", @@ -15657,15 +15657,15 @@ "sensor_divisor": 100000000, "sensor_multiplier": 1000, "sensor_current": -4.7873112440161, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": null, - "sensor_limit_low": -13.496924768681, - "sensor_limit_low_warn": null, + "sensor_limit": 1, + "sensor_limit_warn": -60, + "sensor_limit_low": -13.497, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "2990350", "entPhysicalIndex_measured": "2990081", - "sensor_prev": -4.787, + "sensor_prev": -4.7873112440161, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -15682,15 +15682,15 @@ "sensor_divisor": 100000000, "sensor_multiplier": 1000, "sensor_current": -3.3423144928062, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": null, - "sensor_limit_low": -23.01029995664, - "sensor_limit_low_warn": null, + "sensor_limit": 1, + "sensor_limit_warn": -60, + "sensor_limit_low": -23.01, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "2990362", "entPhysicalIndex_measured": "2990081", - "sensor_prev": -3.342, + "sensor_prev": -3.3423144928062, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -15715,7 +15715,7 @@ "sensor_custom": "No", "entPhysicalIndex": "2994446", "entPhysicalIndex_measured": "2994177", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -15740,7 +15740,7 @@ "sensor_custom": "No", "entPhysicalIndex": "2994458", "entPhysicalIndex_measured": "2994177", - "sensor_prev": 0, + "sensor_prev": null, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -15757,15 +15757,15 @@ "sensor_divisor": 100000000, "sensor_multiplier": 1000, "sensor_current": 2.5197871006338, - "sensor_limit": 6.0021030640933, - "sensor_limit_warn": null, - "sensor_limit_low": -2.998156703778, - "sensor_limit_low_warn": null, + "sensor_limit": 6.002, + "sensor_limit_warn": -60, + "sensor_limit_low": -2.998, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "3014926", "entPhysicalIndex_measured": "3014657", - "sensor_prev": 2.52, + "sensor_prev": 2.5197871006338, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -15782,15 +15782,15 @@ "sensor_divisor": 100000000, "sensor_multiplier": 1000, "sensor_current": -2.1126614117229, - "sensor_limit": 3.9963911496427, - "sensor_limit_warn": null, + "sensor_limit": 3.996, + "sensor_limit_warn": -60, "sensor_limit_low": -20, - "sensor_limit_low_warn": null, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "3014938", "entPhysicalIndex_measured": "3014657", - "sensor_prev": -2.113, + "sensor_prev": -2.1126614117229, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -15807,15 +15807,15 @@ "sensor_divisor": 100000000, "sensor_multiplier": 1000, "sensor_current": -2.2643295107394, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": null, - "sensor_limit_low": -7.0005709997723, - "sensor_limit_low_warn": null, + "sensor_limit": 1, + "sensor_limit_warn": -60, + "sensor_limit_low": -7.001, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "3072270", "entPhysicalIndex_measured": "3072001", - "sensor_prev": -2.264, + "sensor_prev": -2.2643295107394, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null @@ -15832,15 +15832,15 @@ "sensor_divisor": 100000000, "sensor_multiplier": 1000, "sensor_current": -0.86716098239582, - "sensor_limit": 0.99991233544684, - "sensor_limit_warn": null, - "sensor_limit_low": -16.98970004336, - "sensor_limit_low_warn": null, + "sensor_limit": 1, + "sensor_limit_warn": -60, + "sensor_limit_low": -16.99, + "sensor_limit_low_warn": -60, "sensor_alert": 1, "sensor_custom": "No", "entPhysicalIndex": "3072282", "entPhysicalIndex_measured": "3072001", - "sensor_prev": -0.867, + "sensor_prev": -0.86716098239582, "user_func": "mw_to_dbm", "rrd_type": "GAUGE", "state_name": null diff --git a/tests/data/iosxr_ncs55a2.json b/tests/data/iosxr_ncs55a2.json index 8d6f06897e..993fd5893a 100644 --- a/tests/data/iosxr_ncs55a2.json +++ b/tests/data/iosxr_ncs55a2.json @@ -8837,8 +8837,8 @@ "ifName": "Null0", "portName": null, "ifIndex": 2, - "ifSpeed": 0, - "ifSpeed_prev": null, + "ifSpeed": null, + "ifSpeed_prev": 0, "ifConnectorPresent": "false", "ifOperStatus": "up", "ifOperStatus_prev": "up", @@ -13037,8 +13037,8 @@ "ifName": "Loopback0", "portName": null, "ifIndex": 45, - "ifSpeed": 0, - "ifSpeed_prev": null, + "ifSpeed": null, + "ifSpeed_prev": 0, "ifConnectorPresent": "false", "ifOperStatus": "up", "ifOperStatus_prev": "up", @@ -13137,8 +13137,8 @@ "ifName": "Loopback1", "portName": null, "ifIndex": 46, - "ifSpeed": 0, - "ifSpeed_prev": null, + "ifSpeed": null, + "ifSpeed_prev": 0, "ifConnectorPresent": "false", "ifOperStatus": "up", "ifOperStatus_prev": "up",