mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
AirFiber additional modulation rates, fix gpsSync (#9563)
* Add QAM1024 modulation for AirFiber Move sensors to yaml * Fix 0 index * add additional data make compatible with old sensors * Fix whitespace
This commit is contained in:
@@ -1039,7 +1039,7 @@ function discovery_process(&$valid, $device, $sensor_type, $pre_cache)
|
||||
$value = ($value / $divisor) * $multiplier;
|
||||
}
|
||||
|
||||
$uindex = str_replace('{{ $index }}', $index, $data['index'] ?: $index);
|
||||
$uindex = str_replace('{{ $index }}', $index, isset($data['index']) ? $data['index'] : $index);
|
||||
discover_sensor($valid['sensor'], $sensor_type, $device, $oid, $uindex, $sensor_name, $descr, $divisor, $multiplier, $low_limit, $low_warn_limit, $warn_limit, $high_limit, $value, 'snmp', $entPhysicalIndex, $entPhysicalIndex_measured, $user_function);
|
||||
|
||||
if ($sensor_type === 'state') {
|
||||
|
Reference in New Issue
Block a user