newdevice: Updated Arista entity-physical support to use high/low values from device (#7156)

* fix: Fixed the high/low thresholds for Arista devices

* final updates

* push threshold changes

* more updates

* another update

* updated entity-sensor for current value calc

* hoping final update
This commit is contained in:
Neil Lathwood
2017-09-07 14:49:32 +01:00
committed by Tony Murray
parent fea2f37f20
commit f7e14df90e
5 changed files with 289 additions and 28 deletions

View File

@@ -61,6 +61,7 @@ function poll_sensor($device, $class)
$mibdir = null;
$sensor_value = trim(str_replace('"', '', $snmp_data[$sensor['sensor_oid']]));
echo "HERE $sensor_value END".PHP_EOL;
if (file_exists('includes/polling/sensors/'. $class .'/'. $device['os'] .'.inc.php')) {
require 'includes/polling/sensors/'. $class .'/'. $device['os'] .'.inc.php';