mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Updated the arista initial current value for dbm sensors (#6771)
* fixed spelling mistake in process_config * fix: Updated the arista initial current value for dbm sensors
This commit is contained in:
committed by
Tony Murray
parent
3d953b37f0
commit
924137ebd8
@ -115,7 +115,7 @@ if (is_array($oids)) {
|
||||
// Check to make sure we've not already seen this sensor via cisco's entity sensor mib
|
||||
if ($type == "power" && $device['os'] == "arista_eos" && preg_match("/DOM (R|T)x Power/i", $descr)) {
|
||||
$type = "dbm";
|
||||
$current = round(10 * log10($sensor_value / 10000), 3);
|
||||
$current = round(10 * log10($entry['entPhySensorValue'] / 10000), 3);
|
||||
$multiplier = 1;
|
||||
$divisor = 1;
|
||||
discover_sensor($valid['sensor'], $type, $device, $oid, $index, 'entity-sensor', $descr, $divisor, $multiplier, null, null, null, null, $current, 'snmp', $entPhysicalIndex, $entry['entSensorMeasuredEntity']);
|
||||
|
Reference in New Issue
Block a user