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
This commit is contained in:
Neil Lathwood
2018-12-19 17:29:00 +00:00
committed by Tony Murray
parent 7093b362bb
commit a5eddc0393
89 changed files with 59811 additions and 7106 deletions

View File

@@ -97,6 +97,9 @@ discovery:
mkdir($config['install_dir'] . "/mibs/$vendor/");
}
rename($config['temp_dir'] . "/{$options['o']}.mib", $config['install_dir'] . "/mibs/$vendor/$mib_name");
} elseif ($mib_name) {
$tmp_mib = explode('/', $mib_name);
$mib_name = array_pop($tmp_mib);
}
$tables = `{$config['snmptranslate']} -M {$config['mib_dir']}:{$config['mib_dir']}/$vendor -m $mib_name -TB '.*Table$' -Os`;
@@ -121,7 +124,7 @@ discovery:
-
oid: $table_name
value: $value
num_oid: {$tmp_table[$value]}.{{ \$index }}
num_oid: '{$tmp_table[$value]}.{{ \$index }}'
descr: $descr";
if ($multiplier) {
$discovery[$type] .= "\n multiplier: $multiplier";