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
This commit is contained in:
Tony Murray 2024-09-03 09:02:02 -05:00 committed by GitHub
parent d8097b0c21
commit 03d3660dfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 491 additions and 491 deletions

View File

@ -739,7 +739,7 @@ function string_to_float($value)
*/ */
function uw_to_dbm($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) function mw_to_dbm($value)
{ {
return $value == 0 ? -60 : 10 * log10($value); return $value <= 0 ? -60 : 10 * log10($value);
} }
/** /**

View File

@ -228,12 +228,12 @@ if ($device['os_group'] == 'cisco') {
// convert Watts to dbm // convert Watts to dbm
$user_func = 'mw_to_dbm'; $user_func = 'mw_to_dbm';
$type = '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; $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"); //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); 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);
} }

View File

@ -13797,11 +13797,11 @@
"group": null, "group": null,
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -2.331, "sensor_current": -2.3306690616272,
"sensor_limit": 1.0016368896604, "sensor_limit": 1.002,
"sensor_limit_warn": -0.0026065489343204, "sensor_limit_warn": -0.003,
"sensor_limit_low": -18.013429130456, "sensor_limit_low": -18.013,
"sensor_limit_low_warn": -16.00326278519, "sensor_limit_low_warn": -16.003,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "21", "entPhysicalIndex": "21",
@ -13822,11 +13822,11 @@
"group": null, "group": null,
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -5.146, "sensor_current": -5.145625189237,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": -2.9998893767789, "sensor_limit_warn": -3,
"sensor_limit_low": -23.01029995664, "sensor_limit_low": -23.01,
"sensor_limit_low_warn": -18.996294548824, "sensor_limit_low_warn": -18.996,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "23", "entPhysicalIndex": "23",
@ -13847,7 +13847,7 @@
"group": null, "group": null,
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": 0, "sensor_current": -60,
"sensor_limit": null, "sensor_limit": null,
"sensor_limit_warn": null, "sensor_limit_warn": null,
"sensor_limit_low": null, "sensor_limit_low": null,
@ -13872,11 +13872,11 @@
"group": null, "group": null,
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": 0.521, "sensor_current": 0.52078030484169,
"sensor_limit": 0, "sensor_limit": 0,
"sensor_limit_warn": -1.0001543745061, "sensor_limit_warn": -1,
"sensor_limit_low": -17.011469235903, "sensor_limit_low": -17.011,
"sensor_limit_low_warn": -16.00326278519, "sensor_limit_low_warn": -16.003,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "44", "entPhysicalIndex": "44",
@ -13897,11 +13897,11 @@
"group": null, "group": null,
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -1.75, "sensor_current": -1.7496355877865,
"sensor_limit": 2.0046744995016, "sensor_limit": 2.005,
"sensor_limit_warn": 1.0016368896604, "sensor_limit_warn": 1.002,
"sensor_limit_low": -6.996219351293, "sensor_limit_low": -6.996,
"sensor_limit_low_warn": -5.9963472665006, "sensor_limit_low_warn": -5.996,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "21", "entPhysicalIndex": "21",
@ -13922,7 +13922,7 @@
"group": null, "group": null,
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": 0, "sensor_current": -60,
"sensor_limit": null, "sensor_limit": null,
"sensor_limit_warn": null, "sensor_limit_warn": null,
"sensor_limit_low": null, "sensor_limit_low": null,
@ -13947,10 +13947,10 @@
"group": null, "group": null,
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -1.195, "sensor_current": -1.1952940719622,
"sensor_limit": 3.9998505610245, "sensor_limit": 4,
"sensor_limit_warn": 2.9998643613447, "sensor_limit_warn": 3,
"sensor_limit_low": -11.001794975729, "sensor_limit_low": -11.002,
"sensor_limit_low_warn": -10, "sensor_limit_low_warn": -10,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
@ -13972,11 +13972,11 @@
"group": null, "group": null,
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -5.605, "sensor_current": -5.6050940961032,
"sensor_limit": 0, "sensor_limit": 0,
"sensor_limit_warn": -1.0001543745061, "sensor_limit_warn": -1,
"sensor_limit_low": -16.98970004336, "sensor_limit_low": -16.99,
"sensor_limit_low_warn": -16.00326278519, "sensor_limit_low_warn": -16.003,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "42", "entPhysicalIndex": "42",
@ -13997,10 +13997,10 @@
"group": null, "group": null,
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -2.113, "sensor_current": -2.1126614117229,
"sensor_limit": 4.0000234592796, "sensor_limit": 4,
"sensor_limit_warn": 3.0000820255381, "sensor_limit_warn": 3,
"sensor_limit_low": -11.001794975729, "sensor_limit_low": -11.002,
"sensor_limit_low_warn": -10, "sensor_limit_low_warn": -10,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
@ -14022,11 +14022,11 @@
"group": null, "group": null,
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -4.492, "sensor_current": -4.4916039493421,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": -1.0001543745061, "sensor_limit_warn": -1,
"sensor_limit_low": -13.496924768681, "sensor_limit_low": -13.497,
"sensor_limit_low_warn": -9.5000714307986, "sensor_limit_low_warn": -9.5,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "23", "entPhysicalIndex": "23",
@ -18087,15 +18087,15 @@
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -2.3306690616272, "sensor_current": -2.3306690616272,
"sensor_limit": 1.0016368896604, "sensor_limit": 1.002,
"sensor_limit_warn": -0.0026065489343204, "sensor_limit_warn": -0.003,
"sensor_limit_low": -18.013429130456, "sensor_limit_low": -18.013,
"sensor_limit_low_warn": -16.00326278519, "sensor_limit_low_warn": -16.003,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "21", "entPhysicalIndex": "21",
"entPhysicalIndex_measured": "ports", "entPhysicalIndex_measured": "ports",
"sensor_prev": -2.331, "sensor_prev": -2.3306690616272,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -18112,15 +18112,15 @@
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -5.145625189237, "sensor_current": -5.145625189237,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": -2.9998893767789, "sensor_limit_warn": -3,
"sensor_limit_low": -23.01029995664, "sensor_limit_low": -23.01,
"sensor_limit_low_warn": -18.996294548824, "sensor_limit_low_warn": -18.996,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "23", "entPhysicalIndex": "23",
"entPhysicalIndex_measured": "ports", "entPhysicalIndex_measured": "ports",
"sensor_prev": -5.146, "sensor_prev": -5.145625189237,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -18145,7 +18145,7 @@
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "25", "entPhysicalIndex": "25",
"entPhysicalIndex_measured": "ports", "entPhysicalIndex_measured": "ports",
"sensor_prev": 0, "sensor_prev": null,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -18163,14 +18163,14 @@
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": 0.52078030484169, "sensor_current": 0.52078030484169,
"sensor_limit": 0, "sensor_limit": 0,
"sensor_limit_warn": -1.0001543745061, "sensor_limit_warn": -1,
"sensor_limit_low": -17.011469235903, "sensor_limit_low": -17.011,
"sensor_limit_low_warn": -16.00326278519, "sensor_limit_low_warn": -16.003,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "44", "entPhysicalIndex": "44",
"entPhysicalIndex_measured": "ports", "entPhysicalIndex_measured": "ports",
"sensor_prev": 0.521, "sensor_prev": 0.52078030484169,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -18187,15 +18187,15 @@
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -1.7496355877865, "sensor_current": -1.7496355877865,
"sensor_limit": 2.0046744995016, "sensor_limit": 2.005,
"sensor_limit_warn": 1.0016368896604, "sensor_limit_warn": 1.002,
"sensor_limit_low": -6.996219351293, "sensor_limit_low": -6.996,
"sensor_limit_low_warn": -5.9963472665006, "sensor_limit_low_warn": -5.996,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "21", "entPhysicalIndex": "21",
"entPhysicalIndex_measured": "ports", "entPhysicalIndex_measured": "ports",
"sensor_prev": -1.75, "sensor_prev": -1.7496355877865,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -18220,7 +18220,7 @@
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "25", "entPhysicalIndex": "25",
"entPhysicalIndex_measured": "ports", "entPhysicalIndex_measured": "ports",
"sensor_prev": 0, "sensor_prev": null,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -18237,15 +18237,15 @@
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -1.1952940719622, "sensor_current": -1.1952940719622,
"sensor_limit": 3.9998505610245, "sensor_limit": 4,
"sensor_limit_warn": 2.9998643613447, "sensor_limit_warn": 3,
"sensor_limit_low": -11.001794975729, "sensor_limit_low": -11.002,
"sensor_limit_low_warn": -10, "sensor_limit_low_warn": -10,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "44", "entPhysicalIndex": "44",
"entPhysicalIndex_measured": "ports", "entPhysicalIndex_measured": "ports",
"sensor_prev": -1.195, "sensor_prev": -1.1952940719622,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -18263,14 +18263,14 @@
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -5.6050940961032, "sensor_current": -5.6050940961032,
"sensor_limit": 0, "sensor_limit": 0,
"sensor_limit_warn": -1.0001543745061, "sensor_limit_warn": -1,
"sensor_limit_low": -16.98970004336, "sensor_limit_low": -16.99,
"sensor_limit_low_warn": -16.00326278519, "sensor_limit_low_warn": -16.003,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "42", "entPhysicalIndex": "42",
"entPhysicalIndex_measured": "ports", "entPhysicalIndex_measured": "ports",
"sensor_prev": -5.605, "sensor_prev": -5.6050940961032,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -18287,15 +18287,15 @@
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -2.1126614117229, "sensor_current": -2.1126614117229,
"sensor_limit": 4.0000234592796, "sensor_limit": 4,
"sensor_limit_warn": 3.0000820255381, "sensor_limit_warn": 3,
"sensor_limit_low": -11.001794975729, "sensor_limit_low": -11.002,
"sensor_limit_low_warn": -10, "sensor_limit_low_warn": -10,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "42", "entPhysicalIndex": "42",
"entPhysicalIndex_measured": "ports", "entPhysicalIndex_measured": "ports",
"sensor_prev": -2.113, "sensor_prev": -2.1126614117229,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -18312,15 +18312,15 @@
"sensor_divisor": 10000000, "sensor_divisor": 10000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -4.4916039493421, "sensor_current": -4.4916039493421,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": -1.0001543745061, "sensor_limit_warn": -1,
"sensor_limit_low": -13.496924768681, "sensor_limit_low": -13.497,
"sensor_limit_low_warn": -9.5000714307986, "sensor_limit_low_warn": -9.5,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "23", "entPhysicalIndex": "23",
"entPhysicalIndex_measured": "ports", "entPhysicalIndex_measured": "ports",
"sensor_prev": -4.492, "sensor_prev": -4.4916039493421,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null

File diff suppressed because it is too large Load Diff

View File

@ -10367,11 +10367,11 @@
"group": null, "group": null,
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -4.787, "sensor_current": -4.7873112440161,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -13.496924768681, "sensor_limit_low": -13.497,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "2990350", "entPhysicalIndex": "2990350",
@ -10392,11 +10392,11 @@
"group": null, "group": null,
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -3.342, "sensor_current": -3.3423144928062,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -23.01029995664, "sensor_limit_low": -23.01,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "2990362", "entPhysicalIndex": "2990362",
@ -10417,7 +10417,7 @@
"group": null, "group": null,
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": 0, "sensor_current": -60,
"sensor_limit": null, "sensor_limit": null,
"sensor_limit_warn": null, "sensor_limit_warn": null,
"sensor_limit_low": null, "sensor_limit_low": null,
@ -10442,7 +10442,7 @@
"group": null, "group": null,
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": 0, "sensor_current": -60,
"sensor_limit": null, "sensor_limit": null,
"sensor_limit_warn": null, "sensor_limit_warn": null,
"sensor_limit_low": null, "sensor_limit_low": null,
@ -10467,11 +10467,11 @@
"group": null, "group": null,
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": 2.52, "sensor_current": 2.5197871006338,
"sensor_limit": 6.0021030640933, "sensor_limit": 6.002,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -2.998156703778, "sensor_limit_low": -2.998,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "3014926", "entPhysicalIndex": "3014926",
@ -10492,11 +10492,11 @@
"group": null, "group": null,
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -2.113, "sensor_current": -2.1126614117229,
"sensor_limit": 3.9963911496427, "sensor_limit": 3.996,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -20, "sensor_limit_low": -20,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "3014938", "entPhysicalIndex": "3014938",
@ -10517,11 +10517,11 @@
"group": null, "group": null,
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -2.264, "sensor_current": -2.2643295107394,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -7.0005709997723, "sensor_limit_low": -7.001,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "3072270", "entPhysicalIndex": "3072270",
@ -10542,11 +10542,11 @@
"group": null, "group": null,
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -0.867, "sensor_current": -0.86716098239582,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -16.98970004336, "sensor_limit_low": -16.99,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "3072282", "entPhysicalIndex": "3072282",
@ -15657,15 +15657,15 @@
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -4.7873112440161, "sensor_current": -4.7873112440161,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -13.496924768681, "sensor_limit_low": -13.497,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "2990350", "entPhysicalIndex": "2990350",
"entPhysicalIndex_measured": "2990081", "entPhysicalIndex_measured": "2990081",
"sensor_prev": -4.787, "sensor_prev": -4.7873112440161,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -15682,15 +15682,15 @@
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -3.3423144928062, "sensor_current": -3.3423144928062,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -23.01029995664, "sensor_limit_low": -23.01,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "2990362", "entPhysicalIndex": "2990362",
"entPhysicalIndex_measured": "2990081", "entPhysicalIndex_measured": "2990081",
"sensor_prev": -3.342, "sensor_prev": -3.3423144928062,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -15715,7 +15715,7 @@
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "2994446", "entPhysicalIndex": "2994446",
"entPhysicalIndex_measured": "2994177", "entPhysicalIndex_measured": "2994177",
"sensor_prev": 0, "sensor_prev": null,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -15740,7 +15740,7 @@
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "2994458", "entPhysicalIndex": "2994458",
"entPhysicalIndex_measured": "2994177", "entPhysicalIndex_measured": "2994177",
"sensor_prev": 0, "sensor_prev": null,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -15757,15 +15757,15 @@
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": 2.5197871006338, "sensor_current": 2.5197871006338,
"sensor_limit": 6.0021030640933, "sensor_limit": 6.002,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -2.998156703778, "sensor_limit_low": -2.998,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "3014926", "entPhysicalIndex": "3014926",
"entPhysicalIndex_measured": "3014657", "entPhysicalIndex_measured": "3014657",
"sensor_prev": 2.52, "sensor_prev": 2.5197871006338,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -15782,15 +15782,15 @@
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -2.1126614117229, "sensor_current": -2.1126614117229,
"sensor_limit": 3.9963911496427, "sensor_limit": 3.996,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -20, "sensor_limit_low": -20,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "3014938", "entPhysicalIndex": "3014938",
"entPhysicalIndex_measured": "3014657", "entPhysicalIndex_measured": "3014657",
"sensor_prev": -2.113, "sensor_prev": -2.1126614117229,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -15807,15 +15807,15 @@
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -2.2643295107394, "sensor_current": -2.2643295107394,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -7.0005709997723, "sensor_limit_low": -7.001,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "3072270", "entPhysicalIndex": "3072270",
"entPhysicalIndex_measured": "3072001", "entPhysicalIndex_measured": "3072001",
"sensor_prev": -2.264, "sensor_prev": -2.2643295107394,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null
@ -15832,15 +15832,15 @@
"sensor_divisor": 100000000, "sensor_divisor": 100000000,
"sensor_multiplier": 1000, "sensor_multiplier": 1000,
"sensor_current": -0.86716098239582, "sensor_current": -0.86716098239582,
"sensor_limit": 0.99991233544684, "sensor_limit": 1,
"sensor_limit_warn": null, "sensor_limit_warn": -60,
"sensor_limit_low": -16.98970004336, "sensor_limit_low": -16.99,
"sensor_limit_low_warn": null, "sensor_limit_low_warn": -60,
"sensor_alert": 1, "sensor_alert": 1,
"sensor_custom": "No", "sensor_custom": "No",
"entPhysicalIndex": "3072282", "entPhysicalIndex": "3072282",
"entPhysicalIndex_measured": "3072001", "entPhysicalIndex_measured": "3072001",
"sensor_prev": -0.867, "sensor_prev": -0.86716098239582,
"user_func": "mw_to_dbm", "user_func": "mw_to_dbm",
"rrd_type": "GAUGE", "rrd_type": "GAUGE",
"state_name": null "state_name": null

View File

@ -8837,8 +8837,8 @@
"ifName": "Null0", "ifName": "Null0",
"portName": null, "portName": null,
"ifIndex": 2, "ifIndex": 2,
"ifSpeed": 0, "ifSpeed": null,
"ifSpeed_prev": null, "ifSpeed_prev": 0,
"ifConnectorPresent": "false", "ifConnectorPresent": "false",
"ifOperStatus": "up", "ifOperStatus": "up",
"ifOperStatus_prev": "up", "ifOperStatus_prev": "up",
@ -13037,8 +13037,8 @@
"ifName": "Loopback0", "ifName": "Loopback0",
"portName": null, "portName": null,
"ifIndex": 45, "ifIndex": 45,
"ifSpeed": 0, "ifSpeed": null,
"ifSpeed_prev": null, "ifSpeed_prev": 0,
"ifConnectorPresent": "false", "ifConnectorPresent": "false",
"ifOperStatus": "up", "ifOperStatus": "up",
"ifOperStatus_prev": "up", "ifOperStatus_prev": "up",
@ -13137,8 +13137,8 @@
"ifName": "Loopback1", "ifName": "Loopback1",
"portName": null, "portName": null,
"ifIndex": 46, "ifIndex": 46,
"ifSpeed": 0, "ifSpeed": null,
"ifSpeed_prev": null, "ifSpeed_prev": 0,
"ifConnectorPresent": "false", "ifConnectorPresent": "false",
"ifOperStatus": "up", "ifOperStatus": "up",
"ifOperStatus_prev": "up", "ifOperStatus_prev": "up",