newdevice: Added further QNAP Turbo NAS detection #5229 (#5804)

* newdevice: Added further QNAP Turbo NAS detection #5229

* reverted to us linux.inc.php for detection

* removed last sysMfgName reference
This commit is contained in:
Neil Lathwood
2017-02-09 09:00:08 +00:00
committed by GitHub
parent f7d65d0ee2
commit 5e2ef216f9
3 changed files with 5 additions and 0 deletions

View File

@ -25,5 +25,7 @@ if (starts_with($sysDescr, 'Linux') || starts_with($sysObjectId, '.1.3.6.1.4.1.8
} elseif (starts_with($wrt, 'Tomato ')) {
$os = 'tomato';
}
} elseif (preg_match('/^QNAP Systems/', snmp_get($device, "entPhysicalMfgName.1", "-Ovqn", "ENTITY-MIB"))) {
$os = 'qnap';
}
}

View File

@ -1365,6 +1365,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
public function testQnap()
{
$this->checkOS('qnap');
$this->checkOS('qnap', 'qnap-ts431');
}
public function testQuanta()

View File

@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Linux TS-X31 4.2.2
1.3.6.1.2.1.47.1.1.1.1.12.1|4|QNAP Systems, Inc.