mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@2662 61d68cd4-352d-0410-923a-c4978735b2b8
23 lines
503 B
PHP
Executable File
23 lines
503 B
PHP
Executable File
<?php
|
|
|
|
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";}
|
|
elseif(strstr($sysObjectId, ".1.3.6.1.4.1.5528.100.20.10.2014")) { $os = "netbotz"; }
|
|
elseif(strstr($sysDescr, "endian")) { $os = "endian"; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|