mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Updated dlink support with additional health,mempools and processors * Update dlink.inc.php * Update dlink.inc.php * Added test data * add tests/data/dlink_dgs-1510-28.json * actual data for the new items
13 lines
500 B
PHP
13 lines
500 B
PHP
<?php
|
|
|
|
$Descr_string = $device['sysDescr'];
|
|
$Descr_chopper = preg_split('/[ ]+/', "$Descr_string");
|
|
|
|
$hardware = $Descr_chopper[0].' Rev. '.str_replace('"', '', snmp_get($device, '.1.3.6.1.4.1.171.12.11.1.9.4.1.12.1', '-Oqv'));
|
|
$version = snmp_get($device, '.1.3.6.1.4.1.171.12.11.1.9.4.1.11.1', '-Oqv');
|
|
$serial = snmp_get($device, '.1.3.6.1.4.1.171.12.11.1.9.4.1.17.1', '-Oqv');
|
|
|
|
if (!$version) {
|
|
$version = snmp_get($device, 'dEntityExtVersionRuntime.1', '-Oqv', 'DLINKSW-ENTITY-EXT-MIB');
|
|
}
|