mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
# -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -4,11 +4,11 @@ if (!$os)
|
||||
{
|
||||
if (preg_match("/^Linux/", $sysDescr)) { $os = "linux"; }
|
||||
|
||||
## Specific Linux-derivatives
|
||||
/// Specific Linux-derivatives
|
||||
|
||||
if ($os == "linux")
|
||||
{
|
||||
## Check for QNAP Systems TurboNAS
|
||||
/// Check for QNAP Systems TurboNAS
|
||||
$entPhysicalMfgName = snmp_get($device, "ENTITY-MIB::entPhysicalMfgName.1", "-Osqnv");
|
||||
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.5528.100.20.10.2014")) { $os = "netbotz"; }
|
||||
@@ -17,13 +17,13 @@ if (!$os)
|
||||
elseif (strpos($entPhysicalMfgName, "QNAP") !== FALSE) { $os = "qnap"; }
|
||||
else
|
||||
{
|
||||
## Check for Synology DSM
|
||||
/// Check for Synology DSM
|
||||
$hrSystemInitialLoadParameters = trim(snmp_get($device, "hrSystemInitialLoadParameters.0", "-Osqnv"));
|
||||
|
||||
if (strpos($hrSystemInitialLoadParameters, "syno_hw_version") !== FALSE) { $os = "dsm"; }
|
||||
else
|
||||
{
|
||||
## Check for Carel PCOweb
|
||||
/// Check for Carel PCOweb
|
||||
$roomTemp = trim(snmp_get($device,"roomTemp.0", "-OqvU", "CAREL-ug40cdz-MIB"));
|
||||
|
||||
if (is_numeric($roomTemp))
|
||||
|
||||
Reference in New Issue
Block a user