mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Merge pull request #1360 from arnoldthebat/issue-1358
Added HOST-RESOURCES-MIB:: to allow detection of Synology devices
This commit is contained in:
@@ -35,6 +35,7 @@ Contributors to LibreNMS:
|
|||||||
- Christian Marg <marg@rz.tu-clausthal.de> (einhirn)
|
- Christian Marg <marg@rz.tu-clausthal.de> (einhirn)
|
||||||
- Louis Rossouw <lrossouw@gmail.com> (spinza)
|
- Louis Rossouw <lrossouw@gmail.com> (spinza)
|
||||||
- Clint Armstrong <clint@clintarmstrong.net> (clinta)
|
- Clint Armstrong <clint@clintarmstrong.net> (clinta)
|
||||||
|
- Tony Ditchfield <tony.ditchfield@gmail.com> (arnoldthebat)
|
||||||
|
|
||||||
[1]: http://observium.org/ "Observium web site"
|
[1]: http://observium.org/ "Observium web site"
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ if (!$os)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Check for Synology DSM
|
// Check for Synology DSM
|
||||||
$hrSystemInitialLoadParameters = trim(snmp_get($device, "hrSystemInitialLoadParameters.0", "-Osqnv"));
|
$hrSystemInitialLoadParameters = trim(snmp_get($device, "HOST-RESOURCES-MIB::hrSystemInitialLoadParameters.0", "-Osqnv"));
|
||||||
|
|
||||||
if (strpos($hrSystemInitialLoadParameters, "syno_hw_version") !== FALSE) { $os = "dsm"; }
|
if (strpos($hrSystemInitialLoadParameters, "syno_hw_version") !== FALSE) { $os = "dsm"; }
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user