mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 08:03:30 +02:00
Basic QNAP Turbo NAS support. (versions and hardware).
git-svn-id: http://www.observium.org/svn/observer/trunk@1989 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -3,6 +3,19 @@
|
||||
if (!$os)
|
||||
{
|
||||
if (preg_match("/^Linux/", $sysDescr)) { $os = "linux"; }
|
||||
|
||||
|
||||
## Specific Linux-derivatives
|
||||
|
||||
if($os == "linux") {
|
||||
|
||||
## Check for QNAP Systems TurboNAS
|
||||
$entPhysicalMfgName = snmp_get($device, "ENTITY-MIB::entPhysicalMfgName.1", "-Osqnv");
|
||||
|
||||
if(strpos($entPhysicalMfgName, "QNAP") !== FALSE) { $os = "qnap";}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user