mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 08:02:23 +02:00
remove old position for checkers and update related files
git-svn-id: http://www.observium.org/svn/observer/trunk@241 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
} elseif ($device['os'] == "Linux") {
|
||||
list(,,$version) = explode (" ", $sysDescr);
|
||||
if(strstr($sysDescr, "386")|| strstr($sysDescr, "486")||strstr($sysDescr, "586")||strstr($sysDescr, "686")) { $hardware = "Generic x86"; }
|
||||
if(strstr($sysDescr, "x86_64")) { $hardware = "Generic x86_64"; }
|
||||
if(strstr($sysDescr, "x86_64")) { $hardware = "Generic x86 64-bit"; }
|
||||
$cmd = "snmpget -O qv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'] . " .1.3.6.1.4.1.2021.7890.1.101.1";
|
||||
$features = trim(`$cmd`);
|
||||
$features = str_replace("No Such Object available on this agent at this OID", "", $features);
|
||||
|
||||
Reference in New Issue
Block a user