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 (#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:
committed by
Tony Murray
parent
7093b362bb
commit
a5eddc0393
@@ -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";
|
||||
|
Reference in New Issue
Block a user