add synology Disk Station Manager recognition

git-svn-id: http://www.observium.org/svn/observer/trunk@3084 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-04-24 19:19:27 +00:00
parent f63d49372d
commit 3f4696677a
4 changed files with 31 additions and 8 deletions
+13 -7
View File
@@ -6,17 +6,23 @@ if (!$os)
## Specific Linux-derivatives
if ($os == "linux") {
if ($os == "linux")
{
## Check for QNAP Systems TurboNAS
$entPhysicalMfgName = snmp_get($device, "ENTITY-MIB::entPhysicalMfgName.1", "-Osqnv");
if (strpos($entPhysicalMfgName, "QNAP") !== FALSE) { $os = "qnap";}
elseif(strstr($sysObjectId, ".1.3.6.1.4.1.5528.100.20.10.2014")) { $os = "netbotz"; }
elseif(strstr($sysDescr, "endian")) { $os = "endian"; }
elseif(preg_match("/Cisco Small Business/", $sysDescr)) { $os = "ciscosmblinux"; }
}
if(strstr($sysObjectId, ".1.3.6.1.4.1.5528.100.20.10.2014")) { $os = "netbotz"; }
elseif (strstr($sysDescr, "endian")) { $os = "endian"; }
elseif (preg_match("/Cisco Small Business/", $sysDescr)) { $os = "ciscosmblinux"; }
elseif (strpos($entPhysicalMfgName, "QNAP") !== FALSE) { $os = "qnap"; }
else
{
## Check for Synology DSM
$hrSystemInitialLoadParameters = trim(snmp_get($device, "hrSystemInitialLoadParameters.0", "-Osqnv"));
if (strpos($hrSystemInitialLoadParameters, "syno_hw_version") !== FALSE) { $os = "dsm"; }
}
}
}
?>