Adam Amstrong 7eb42ecefc tings, yo.
git-svn-id: http://www.observium.org/svn/observer/trunk@2662 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-07 17:59:12 +00:00

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"; }
}
}
?>