mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
RouterOS runtime quirk on first discovery (#14945)
(assume version is > 6.47 if it isn't fetched yet) fixes #14935
This commit is contained in:
@@ -799,7 +799,7 @@ function get_device_divisor($device, $os_version, $sensor_type, $oid)
|
||||
}
|
||||
|
||||
if (Str::startsWith($oid, '.1.3.6.1.2.1.33.1.2.3.')) {
|
||||
if ($device['os'] == 'routeros' && version_compare($device['version'], '6.47', '<')) {
|
||||
if ($device['os'] == 'routeros' && $device['version'] && version_compare($device['version'], '6.47', '<')) {
|
||||
return 60;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user