mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
recognize synology hardware
git-svn-id: http://www.observium.org/svn/observer/trunk@3085 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -76,6 +76,19 @@ elseif ($device['os'] == "dsm")
|
||||
# FIXME only the build, not the actual version number, so won't use this.. yet?
|
||||
# list(,,,$version,) = explode(" ",$poll_device['sysDescr'],5);
|
||||
# $version = "Build " . trim($version,'#');
|
||||
|
||||
$hrSystemInitialLoadParameters = trim(snmp_get($device, "hrSystemInitialLoadParameters.0", "-Osqnv"));
|
||||
|
||||
$options = explode(" ",$hrSystemInitialLoadParameters);
|
||||
|
||||
foreach ($options as $option)
|
||||
{
|
||||
list($key,$value) = explode("=",$option,2);
|
||||
if ($key == "syno_hw_version")
|
||||
{
|
||||
$hardware = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user