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:
Adam Amstrong
2011-03-29 13:48:03 +00:00
parent 86fe5825eb
commit 6b8550c551
4 changed files with 58 additions and 25 deletions
+14 -1
View File
@@ -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";}
}
}
?>
?>