Neil Lathwood a5eddc0393 Updated dlink support with additional health,mempools and processors (#9464)
* 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
2018-12-19 11:29:00 -06:00

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');
}