mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
more code cleanup
git-svn-id: http://www.observium.org/svn/observer/trunk@2517 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -7,12 +7,12 @@ 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";}
|
||||
if (strpos($entPhysicalMfgName, "QNAP") !== FALSE) { $os = "qnap";}
|
||||
elseif(strstr($sysObjectId, ".1.3.6.1.4.1.5528.100.20.10.2014")) { $os = "netbotz"; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user